]> granicus.if.org Git - libx264/commitdiff
sync yasm macros to ffmpeg
authorLoren Merritt <pengvado@akuvian.org>
Sun, 18 Oct 2009 21:47:18 +0000 (21:47 +0000)
committerLoren Merritt <pengvado@akuvian.org>
Sun, 18 Oct 2009 21:47:18 +0000 (21:47 +0000)
common/x86/x86inc.asm

index 15990d58d0c169f9cbc72a44658fc610850b574b..da99925d6df139ad5516f2ba7a613906a3879ba5 100644 (file)
@@ -85,7 +85,7 @@
 ; PROLOGUE can also be invoked by adding the same options to cglobal
 
 ; e.g.
-; cglobal foo, 2,3, dst, src, tmp
+; cglobal foo, 2,3,0, dst, src, tmp
 ; declares a function (foo), taking two args (dst and src) and one local variable (tmp)
 
 ; TODO Some functions can use some args directly from the stack. If they're the
@@ -222,6 +222,7 @@ DECLARE_REG_TMP_SIZE 0,1,2,3,4,5,6,7
             CAT_UNDEF arg_name %+ %%i, d
             CAT_UNDEF arg_name %+ %%i, w
             CAT_UNDEF arg_name %+ %%i, b
+            CAT_UNDEF arg_name %+ %%i, m
             CAT_UNDEF arg_name, %%i
             %assign %%i %%i+1
         %endrep
@@ -233,6 +234,7 @@ DECLARE_REG_TMP_SIZE 0,1,2,3,4,5,6,7
         %xdefine %1d r %+ %%i %+ d
         %xdefine %1w r %+ %%i %+ w
         %xdefine %1b r %+ %%i %+ b
+        %xdefine %1m r %+ %%i %+ m
         CAT_XDEFINE arg_name, %%i, %1
         %assign %%i %%i+1
         %rotate 1
@@ -434,9 +436,9 @@ DECLARE_REG 6, ebp, ebp, bp, null, [esp + stack_offset + 28]
 ; Symbol prefix for C linkage
 %macro cglobal 1-2+
     %ifdef PREFIX
-        %xdefine %1.skip_prologue _%1.skip_prologue
-        %xdefine %1 _%1
+        %xdefine %1 _ %+ %1
     %endif
+    %xdefine %1.skip_prologue %1 %+ .skip_prologue
     %ifidn __OUTPUT_FORMAT__,elf
         global %1:function hidden
     %else