From: Loren Merritt Date: Sat, 1 Mar 2014 02:57:56 +0000 (+0000) Subject: x86inc: free up variable name "n" in global namespace X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=974f2e78e0cb25e06fedbcfef70f80938f22988b;p=libx264 x86inc: free up variable name "n" in global namespace --- diff --git a/common/x86/pixel-a.asm b/common/x86/pixel-a.asm index 3cb24368..9791e866 100644 --- a/common/x86/pixel-a.asm +++ b/common/x86/pixel-a.asm @@ -1265,7 +1265,7 @@ VAR2_8x8_AVX2 16, 7 ; clobber: m3..m7 ; out: %1 = satd %macro SATD_4x4_MMX 3 - %xdefine %%n n%1 + %xdefine %%n nn%1 %assign offset %2*SIZEOF_PIXEL LOAD_DIFF m4, m3, none, [r0+ offset], [r2+ offset] LOAD_DIFF m5, m3, none, [r0+ r1+offset], [r2+ r3+offset] diff --git a/common/x86/x86inc.asm b/common/x86/x86inc.asm index eb851b8b..abeddf9e 100644 --- a/common/x86/x86inc.asm +++ b/common/x86/x86inc.asm @@ -803,12 +803,12 @@ SECTION .note.GNU-stack noalloc noexec nowrite progbits %assign %%i 0 %rep 8 CAT_XDEFINE m, %%i, mm %+ %%i - CAT_XDEFINE nmm, %%i, %%i + CAT_XDEFINE nnmm, %%i, %%i %assign %%i %%i+1 %endrep %rep 8 CAT_UNDEF m, %%i - CAT_UNDEF nmm, %%i + CAT_UNDEF nnmm, %%i %assign %%i %%i+1 %endrep INIT_CPUFLAGS %1 @@ -829,7 +829,7 @@ SECTION .note.GNU-stack noalloc noexec nowrite progbits %assign %%i 0 %rep num_mmregs CAT_XDEFINE m, %%i, xmm %+ %%i - CAT_XDEFINE nxmm, %%i, %%i + CAT_XDEFINE nnxmm, %%i, %%i %assign %%i %%i+1 %endrep INIT_CPUFLAGS %1 @@ -899,7 +899,7 @@ INIT_XMM %endrep %rep %0/2 %xdefine m%1 %%tmp%2 - CAT_XDEFINE n, m%1, %1 + CAT_XDEFINE nn, m%1, %1 %rotate 2 %endrep %endmacro @@ -917,16 +917,16 @@ INIT_XMM %xdefine %%tmp m%1 %xdefine m%1 m%2 %xdefine m%2 %%tmp - CAT_XDEFINE n, m%1, %1 - CAT_XDEFINE n, m%2, %2 + CAT_XDEFINE nn, m%1, %1 + CAT_XDEFINE nn, m%2, %2 %rotate 1 %endrep %endmacro %macro SWAP_INTERNAL_NAME 2-* - %xdefine %%args n %+ %1 + %xdefine %%args nn %+ %1 %rep %0-1 - %xdefine %%args %%args, n %+ %2 + %xdefine %%args %%args, nn %+ %2 %rotate 1 %endrep SWAP_INTERNAL_NUM %%args @@ -953,7 +953,7 @@ INIT_XMM %assign %%i 0 %rep num_mmregs CAT_XDEFINE m, %%i, %1_m %+ %%i - CAT_XDEFINE n, m %+ %%i, %%i + CAT_XDEFINE nn, m %+ %%i, %%i %assign %%i %%i+1 %endrep %endif