]> git.sesse.net Git - x264/commitdiff
x86inc: Sync minor changes from ffmpeg/libav
authorHenrik Gramner <henrik@gramner.com>
Mon, 3 Aug 2015 19:05:11 +0000 (21:05 +0200)
committerAnton Mitrofanov <BugMaster@narod.ru>
Tue, 18 Aug 2015 22:00:20 +0000 (01:00 +0300)
common/x86/x86inc.asm

index c0fa7230ff9faa2fe4c6b94486c4b9b3be6adee1..a0076ace4f1334f8ecee89d4ef559daa619f5550 100644 (file)
     %define r%1w %2w
     %define r%1b %2b
     %define r%1h %2h
+    %define %2q %2
     %if %0 == 2
         %define r%1m  %2d
         %define r%1mp %2
@@ -997,13 +998,13 @@ INIT_XMM
 
 ; Append cpuflags to the callee's name iff the appended name is known and the plain name isn't
 %macro call 1
-    call_internal %1, %1 %+ SUFFIX
+    call_internal %1 %+ SUFFIX, %1
 %endmacro
 %macro call_internal 2
-    %xdefine %%i %1
-    %ifndef cglobaled_%1
-        %ifdef cglobaled_%2
-            %xdefine %%i %2
+    %xdefine %%i %2
+    %ifndef cglobaled_%2
+        %ifdef cglobaled_%1
+            %xdefine %%i %1
         %endif
     %endif
     call %%i