Commit 6a1e8973 authored by michael's avatar michael

make high precission synth filter 3 times faster on x86


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6046 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 932a817b
......@@ -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) \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment