[FFmpeg-cvslog] r23214 - in branches/0.6: . libavcodec/x86/mathops.h

siretart subversion
Fri May 21 20:19:50 CEST 2010


Author: siretart
Date: Fri May 21 20:19:49 2010
New Revision: 23214

Log:
Adding missing () to mathops.h.


backport r23083 by michael

Modified:
   branches/0.6/   (props changed)
   branches/0.6/libavcodec/x86/mathops.h

Modified: branches/0.6/libavcodec/x86/mathops.h
==============================================================================
--- branches/0.6/libavcodec/x86/mathops.h	Fri May 21 20:19:13 2010	(r23213)
+++ branches/0.6/libavcodec/x86/mathops.h	Fri May 21 20:19:49 2010	(r23214)
@@ -31,17 +31,17 @@
             "imull %3               \n\t"\
             "shrdl %4, %%edx, %%eax \n\t"\
             : "=a"(rt), "=d"(dummy)\
-            : "a" ((int)ra), "rm" ((int)rb), "i"(shift));\
+            : "a" ((int)(ra)), "rm" ((int)(rb)), "i"(shift));\
          rt; })
 
 #define MULH(ra, rb) \
     ({ int rt, dummy;\
-     __asm__ ("imull %3\n\t" : "=d"(rt), "=a"(dummy): "a" ((int)ra), "rm" ((int)rb));\
+     __asm__ ("imull %3\n\t" : "=d"(rt), "=a"(dummy): "a" ((int)(ra)), "rm" ((int)(rb)));\
      rt; })
 
 #define MUL64(ra, rb) \
     ({ int64_t rt;\
-     __asm__ ("imull %2\n\t" : "=A"(rt) : "a" ((int)ra), "g" ((int)rb));\
+     __asm__ ("imull %2\n\t" : "=A"(rt) : "a" ((int)(ra)), "g" ((int)(rb)));\
      rt; })
 #endif
 



More information about the ffmpeg-cvslog mailing list