On 03/01/2012 11:26 PM, Ronald S. Bultje wrote:

> From: Loren Merritt <[email protected]>
> 
> Signed-off-by: Ronald S. Bultje <[email protected]>
> ---
>  libavutil/x86/x86inc.asm |    5 ++++-
>  1 files changed, 4 insertions(+), 1 deletions(-)
> 
> diff --git a/libavutil/x86/x86inc.asm b/libavutil/x86/x86inc.asm
> index b20bb9a..76a7b29 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 ;=================================================


LGTM.

-Justin

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to