From 35ee72b1d72a4c8fc0ae4e76ad00a71e831b8dbe Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 7 Jul 2008 21:25:18 +0000 Subject: [PATCH] 1 c-asm loop less and 1x unroll of float_to_int16_sse() 25% faster Originally committed as revision 14104 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 cef9a106a1..5d5c1b3f7a 100644 --- a/libavcodec/i386/dsputil_mmx.c +++ b/libavcodec/i386/dsputil_mmx.c @@ -2045,18 +2045,25 @@ static void float_to_int16_3dnow(int16_t *dst, const float *src, long len){ ); } static void float_to_int16_sse(int16_t *dst, const float *src, long len){ - int i; - for(i=0; i