# HG changeset patch # User michael # Date 1156245064 0 # Node ID 99a352dc16011986f78c997034ad913992983c08 # Parent 949219039897679dbe01aa81ea919b153e9803db make high precission synth filter 3 times faster on x86 diff -r 949219039897 -r 99a352dc1601 mpegaudiodec.c --- a/mpegaudiodec.c Tue Aug 22 06:24:59 2006 +0000 +++ b/mpegaudiodec.c Tue Aug 22 11:11:04 2006 +0000 @@ -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) \