From 63b737d4f9c118853a4f8d9af641335629bdf3ab Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 7 Jul 2008 20:46:03 +0000 Subject: [PATCH] dont use C-asm loops and unroll once float_to_int16_3dnow() 30% faster Originally committed as revision 14102 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/i386/dsputil_mmx.c | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/libavcodec/i386/dsputil_mmx.c b/libavcodec/i386/dsputil_mmx.c index 60511a3bab..8925ffaf43 100644 --- a/libavcodec/i386/dsputil_mmx.c +++ b/libavcodec/i386/dsputil_mmx.c @@ -2024,18 +2024,25 @@ static void vector_fmul_add_add_sse(float *dst, const float *src0, const float * static void float_to_int16_3dnow(int16_t *dst, const float *src, int len){ // not bit-exact: pf2id uses different rounding than C and SSE - int i; - for(i=0; i