fix MUL16 macro

Originally committed as revision 6344 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Måns Rullgård 19 years ago
parent 6c17a956b4
commit 89cba1bd7d
  1. 6
      libavcodec/armv4l/mathops.h

@ -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

Loading…
Cancel
Save