aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReinhard Tartler <siretart@tauware.de>2010-05-21 18:19:49 +0000
committerReinhard Tartler <siretart@tauware.de>2010-05-21 18:19:49 +0000
commit26fe0ec7d69748f717278b10558dbcf84269286f (patch)
tree4f4367d4fa2be397e64a4b6dc5637f47aae0ebc1
parent7590718414d1ea39edca482fb3ea4c1ce49a75ef (diff)
downloadffmpeg-26fe0ec7d69748f717278b10558dbcf84269286f.tar.gz
Adding missing () to mathops.h.
backport r23083 by michael Originally committed as revision 23214 to svn://svn.ffmpeg.org/ffmpeg/branches/0.6
-rw-r--r--libavcodec/x86/mathops.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/x86/mathops.h b/libavcodec/x86/mathops.h
index 010cfb70bb..5949dfe3d4 100644
--- a/libavcodec/x86/mathops.h
+++ b/libavcodec/x86/mathops.h
@@ -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