[FFmpeg-cvslog] r15783 - trunk/libavcodec/armv4l/mathops.h

mru subversion
Thu Nov 6 02:33:29 CET 2008


Author: mru
Date: Thu Nov  6 02:33:28 2008
New Revision: 15783

Log:
ARM: change MUL16() macro to inline function

Modified:
   trunk/libavcodec/armv4l/mathops.h

Modified: trunk/libavcodec/armv4l/mathops.h
==============================================================================
--- trunk/libavcodec/armv4l/mathops.h	(original)
+++ trunk/libavcodec/armv4l/mathops.h	Thu Nov  6 02:33:28 2008
@@ -82,10 +82,13 @@ static inline av_const int64_t MAC64(int
     __asm__ ("smlabb %0, %1, %2, %0" : "+r"(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));  \
-         rt; })
+#   define MUL16 MUL16
+static inline av_const MUL16(int ra, int rb)
+{
+    int rt;
+    __asm__ ("smulbb %0, %1, %2" : "=r"(rt) : "r"(ra), "r"(rb));
+    return rt;
+}
 
 #endif
 




More information about the ffmpeg-cvslog mailing list