diff options
author | Loren Merritt <lorenm@u.washington.edu> | 2012-07-27 09:33:41 -0700 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2012-07-28 08:29:45 -0700 |
commit | f8d8fe255d15f3f4a5b793234ae1a59cf055ae7c (patch) | |
tree | b27cca85a96fbd52607d89b634d2445dd81e690e /libavutil/x86 | |
parent | 96c9cc10947a374b99f56970959cdedbbb1e4331 (diff) | |
download | ffmpeg-f8d8fe255d15f3f4a5b793234ae1a59cf055ae7c.tar.gz |
x86inc: clip num_args to 7 on x86-32.
This allows us to unconditionally set the cglobal num_args
parameter to a bigger value, thus making writing yasm code
even easier than before.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Diffstat (limited to 'libavutil/x86')
-rw-r--r-- | libavutil/x86/x86inc.asm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavutil/x86/x86inc.asm b/libavutil/x86/x86inc.asm index 1030f10a32..7a75951cf6 100644 --- a/libavutil/x86/x86inc.asm +++ b/libavutil/x86/x86inc.asm @@ -441,6 +441,9 @@ DECLARE_ARG 7, 8, 9, 10, 11, 12, 13, 14 %macro PROLOGUE 2-4+ ; #args, #regs, #xmm_regs, arg_names... %assign num_args %1 %assign regs_used %2 + %if num_args > 7 + %assign num_args 7 + %endif %if regs_used > 7 %assign regs_used 7 %endif |