summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoren Merritt <pengvado@akuvian.org>2012-02-26 09:05:29 -0800
committerRonald S. Bultje <rsbultje@gmail.com>2012-03-03 20:39:59 -0800
commit0f53d0cf4ba17c1ebf1f976e4dde1a4c32c37e9d (patch)
tree97f20ddbd3eee751bd04a3379e48977eab491f72
parent6aa6e3e814ce1023844f916309f6091f231346fd (diff)
x86inc: don't "bake" stack_offset in named arguments.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
-rw-r--r--libavutil/x86/x86inc.asm5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavutil/x86/x86inc.asm b/libavutil/x86/x86inc.asm
index b20bb9a3a0..76a7b29b86 100644
--- a/libavutil/x86/x86inc.asm
+++ b/libavutil/x86/x86inc.asm
@@ -251,6 +251,8 @@ DECLARE_REG_TMP_SIZE 0,1,2,3,4,5,6,7,8,9
%endrep
%endif
+ %xdefine %%stack_offset stack_offset
+ %undef stack_offset ; so that the current value of stack_offset doesn't get baked in by xdefine
%assign %%i 0
%rep %0
%xdefine %1q r %+ %%i %+ q
@@ -262,7 +264,8 @@ DECLARE_REG_TMP_SIZE 0,1,2,3,4,5,6,7,8,9
%assign %%i %%i+1
%rotate 1
%endrep
- %assign n_arg_names %%i
+ %xdefine stack_offset %%stack_offset
+ %assign n_arg_names %0
%endmacro
%if WIN64 ; Windows x64 ;=================================================