Mercurial > mplayer.hg
changeset 35582:373c7154ec54
Rename consts & avoid using a GNU extension.
author | upsuper |
---|---|
date | Thu, 13 Dec 2012 05:19:29 +0000 |
parents | a50eb4e27138 |
children | c0e00a10a620 |
files | libmpcodecs/vf_ass.c |
diffstat | 1 files changed, 16 insertions(+), 14 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/vf_ass.c Thu Dec 13 05:19:25 2012 +0000 +++ b/libmpcodecs/vf_ass.c Thu Dec 13 05:19:29 2012 +0000 @@ -63,8 +63,10 @@ #if HAVE_SSE4 -DECLARE_ASM_CONST(16, uint32_t, SSE_32BIT_80H[4]) = { [0 ... 3] = 0x80 }; -DECLARE_ASM_CONST(16, uint32_t, SSE_32BIT_MAP[4]) = { [0 ... 3] = 0x102 }; +DECLARE_ASM_CONST(16, uint32_t, sse_int32_80h[4]) + = { 0x80, 0x80, 0x80, 0x80 }; +DECLARE_ASM_CONST(16, uint32_t, sse_int32_map_factor[4]) + = { 0x102, 0x102, 0x102, 0x102 }; #endif // HAVE_SSE4 @@ -239,10 +241,10 @@ "movdqa %%xmm0, %%xmm1 \n\t" "punpcklwd %%xmm7, %%xmm0 \n\t" "punpckhwd %%xmm7, %%xmm1 \n\t" - "pmulld "MANGLE(SSE_32BIT_MAP)", %%xmm0 \n\t" - "pmulld "MANGLE(SSE_32BIT_MAP)", %%xmm1 \n\t" - "paddd "MANGLE(SSE_32BIT_80H)", %%xmm0 \n\t" - "paddd "MANGLE(SSE_32BIT_80H)", %%xmm1 \n\t" + "pmulld "MANGLE(sse_int32_map_factor)", %%xmm0 \n\t" + "pmulld "MANGLE(sse_int32_map_factor)", %%xmm1 \n\t" + "paddd "MANGLE(sse_int32_80h)", %%xmm0 \n\t" + "paddd "MANGLE(sse_int32_80h)", %%xmm1 \n\t" "psrld $8, %%xmm0 \n\t" "psrld $8, %%xmm1 \n\t" "movdqa %%xmm0, %%xmm2 \n\t" @@ -450,14 +452,14 @@ "punpckhwd %%xmm7, %%xmm1 \n\t" \ "punpcklwd %%xmm7, %%xmm2 \n\t" \ "punpckhwd %%xmm7, %%xmm3 \n\t" \ - "pmulld "MANGLE(SSE_32BIT_MAP)", %%xmm0 \n\t" \ - "pmulld "MANGLE(SSE_32BIT_MAP)", %%xmm1 \n\t" \ - "pmulld "MANGLE(SSE_32BIT_MAP)", %%xmm2 \n\t" \ - "pmulld "MANGLE(SSE_32BIT_MAP)", %%xmm3 \n\t" \ - "paddd "MANGLE(SSE_32BIT_80H)", %%xmm0 \n\t" \ - "paddd "MANGLE(SSE_32BIT_80H)", %%xmm1 \n\t" \ - "paddd "MANGLE(SSE_32BIT_80H)", %%xmm2 \n\t" \ - "paddd "MANGLE(SSE_32BIT_80H)", %%xmm3 \n\t" \ + "pmulld "MANGLE(sse_int32_map_factor)", %%xmm0 \n\t"\ + "pmulld "MANGLE(sse_int32_map_factor)", %%xmm1 \n\t"\ + "pmulld "MANGLE(sse_int32_map_factor)", %%xmm2 \n\t"\ + "pmulld "MANGLE(sse_int32_map_factor)", %%xmm3 \n\t"\ + "paddd "MANGLE(sse_int32_80h)", %%xmm0 \n\t" \ + "paddd "MANGLE(sse_int32_80h)", %%xmm1 \n\t" \ + "paddd "MANGLE(sse_int32_80h)", %%xmm2 \n\t" \ + "paddd "MANGLE(sse_int32_80h)", %%xmm3 \n\t" \ "psrld $8, %%xmm0 \n\t" \ "psrld $8, %%xmm1 \n\t" \ "psrld $8, %%xmm2 \n\t" \