[FFmpeg-cvslog] x86inc: clip num_args to 7 on x86-32.

Loren Merritt git at videolan.org
Sun Jul 29 02:26:24 CEST 2012


ffmpeg | branch: master | Loren Merritt <lorenm at u.washington.edu> | Fri Jul 27 09:33:41 2012 -0700| [f8d8fe255d15f3f4a5b793234ae1a59cf055ae7c] | committer: Ronald S. Bultje

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 at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f8d8fe255d15f3f4a5b793234ae1a59cf055ae7c
---

 libavutil/x86/x86inc.asm |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavutil/x86/x86inc.asm b/libavutil/x86/x86inc.asm
index 1030f10..7a75951 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



More information about the ffmpeg-cvslog mailing list