1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

make high precission synth filter 3 times faster on x86

Originally committed as revision 6046 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2006-08-22 11:11:04 +00:00
parent 0bd2483a75
commit 355903f5a8

View File

@ -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) \