[x264-devel] commit: sync yasm macros to ffmpeg (Loren Merritt )
git version control
git at videolan.org
Sun Oct 18 23:47:30 CEST 2009
x264 | branch: master | Loren Merritt <pengvado at akuvian.org> | Sun Oct 18 21:47:18 2009 +0000| [813fe72062362a9ee7733fa160e14f5c27ae5fef] | committer: Loren Merritt
sync yasm macros to ffmpeg
> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=813fe72062362a9ee7733fa160e14f5c27ae5fef
---
common/x86/x86inc.asm | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/common/x86/x86inc.asm b/common/x86/x86inc.asm
index 15990d5..da99925 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
More information about the x264-devel
mailing list