mathops: change "g" constraint to "rm" in x86-32 version of MUL64().
authorJustin Ruggles <justin.ruggles@gmail.com>
Tue, 15 Mar 2011 17:35:05 +0000 (13:35 -0400)
committerJustin Ruggles <justin.ruggles@gmail.com>
Tue, 15 Mar 2011 17:43:47 +0000 (13:43 -0400)
The 1-arg imul instruction cannot take an immediate argument, only a register
or memory argument.

libavcodec/x86/mathops.h

index 4e54886..b183027 100644 (file)
@@ -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;
 }