From: Loren Merritt Date: Sun, 18 Oct 2009 21:47:18 +0000 (+0000) Subject: sync yasm macros to ffmpeg X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f6431055381c311aa08bfb9335bd1adb9bd8be3e;p=libx264 sync yasm macros to ffmpeg --- diff --git a/common/x86/x86inc.asm b/common/x86/x86inc.asm index 15990d58..da99925d 100644 --- a/common/x86/x86inc.asm +++ b/common/x86/x86inc.asm @@ -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