[Ffmpeg-cvslog] r6046 - trunk/libavcodec/mpegaudiodec.c

michael subversion
Tue Aug 22 13:11:06 CEST 2006


Author: michael
Date: Tue Aug 22 13:11:04 2006
New Revision: 6046

Modified:
   trunk/libavcodec/mpegaudiodec.c

Log:
make high precission synth filter 3 times faster on x86


Modified: trunk/libavcodec/mpegaudiodec.c
==============================================================================
--- trunk/libavcodec/mpegaudiodec.c	(original)
+++ trunk/libavcodec/mpegaudiodec.c	Tue Aug 22 13:11:04 2006
@@ -784,8 +784,13 @@
     return sum1;
 }
 
+#ifdef ARCH_X86
+/* ask gcc devels why this is 3 times faster then the generic code below */
+#define MULS(ra, rb) \
+    ({ int64_t rt; asm ("imull %2\n\t" : "=A"(rt) : "a" (ra), "g" (rb)); rt; })
+#else
 #define MULS(ra, rb) MUL64(ra, rb)
-
+#endif
 #endif
 
 #define SUM8(sum, op, w, p) \




More information about the ffmpeg-cvslog mailing list