projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0bd2483
)
make high precission synth filter 3 times faster on x86
author
Michael Niedermayer
<michaelni@gmx.at>
Tue, 22 Aug 2006 11:11:04 +0000
(11:11 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Tue, 22 Aug 2006 11:11:04 +0000
(11:11 +0000)
Originally committed as revision 6046 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/mpegaudiodec.c
patch
|
blob
|
history
diff --git
a/libavcodec/mpegaudiodec.c
b/libavcodec/mpegaudiodec.c
index
53a3890
..
9593e03
100644
(file)
--- a/
libavcodec/mpegaudiodec.c
+++ b/
libavcodec/mpegaudiodec.c
@@
-784,8
+784,13
@@
static inline int round_sample(int64_t *sum)
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) \