fix MUL16 macro

Originally committed as revision 6344 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Måns Rullgård 2006-09-26 18:31:43 +00:00
parent 6c17a956b4
commit 89cba1bd7d

View File

@ -39,9 +39,9 @@
# define MAC16(rt, ra, rb) \
asm ("smlabb %0, %2, %3, %0" : "=r" (rt) : "0" (rt), "r" (ra), "r" (rb));
/* signed 16x16 -> 32 multiply */
# define MUL16(ra, rb) \
({ int __rt;\
asm ("smulbb %0, %1, %2" : "=r" (__rt) : "r" (ra), "r" (rb));
# define MUL16(ra, rb) \
({ int __rt; \
asm ("smulbb %0, %1, %2" : "=r" (__rt) : "r" (ra), "r" (rb)); \
__rt; })
#endif