[FFmpeg-cvslog] mathops: change "g" constraint to "rm" in x86-32 version of MUL64().

Justin Ruggles git at videolan.org
Thu Mar 17 17:49:20 CET 2011


ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Tue Mar 15 13:35:05 2011 -0400| [aaff3b312ed0a67750aa0a3a3300a3b69bb87150] | committer: Justin Ruggles

mathops: change "g" constraint to "rm" in x86-32 version of MUL64().

The 1-arg imul instruction cannot take an immediate argument, only a register
or memory argument.

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

 libavcodec/x86/mathops.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/x86/mathops.h b/libavcodec/x86/mathops.h
index 4e54886..b183027 100644
--- a/libavcodec/x86/mathops.h
+++ b/libavcodec/x86/mathops.h
@@ -59,7 +59,7 @@ static av_always_inline av_const int64_t MUL64(int a, int b)
     __asm__ (
         "imull %2"
         :"=A"(rt)
-        :"a"(a), "g"(b)
+        :"a"(a), "rm"(b)
     );
     return rt;
 }




More information about the ffmpeg-cvslog mailing list