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

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


Author: mru
Date: Thu Nov  6 02:33:26 2008
New Revision: 15782

Log:
ARM: prettify MAC16() macro

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:26 2008
@@ -78,8 +78,9 @@ static inline av_const int64_t MAC64(int
 #if defined(HAVE_ARMV5TE)
 
 /* signed 16x16 -> 32 multiply add accumulate */
-#   define MAC16(rt, ra, rb) \
-        __asm__ ("smlabb %0, %2, %3, %0" : "=r" (rt) : "0" (rt), "r" (ra), "r" (rb));
+#   define MAC16(rt, ra, rb)                                            \
+    __asm__ ("smlabb %0, %1, %2, %0" : "+r"(rt) : "r"(ra), "r"(rb));
+
 /* signed 16x16 -> 32 multiply */
 #   define MUL16(ra, rb)                                                \
         ({ int rt;                                                    \




More information about the ffmpeg-cvslog mailing list