From be3b22f9cae9916405cde209fd93f8593e52ed4b Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 20 Aug 2007 22:41:47 +0000 Subject: remove idiotc double subtraction from the sse2 code (untested, no sse2 here) Originally committed as revision 10158 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/i386/snowdsp_mmx.c | 33 +++++++++++++++------------------ 1 file changed, 15 insertions(+), 18 deletions(-) (limited to 'libavcodec') diff --git a/libavcodec/i386/snowdsp_mmx.c b/libavcodec/i386/snowdsp_mmx.c index 053e4bde69..96cb856e94 100644 --- a/libavcodec/i386/snowdsp_mmx.c +++ b/libavcodec/i386/snowdsp_mmx.c @@ -111,7 +111,8 @@ void ff_snow_horizontal_compose97i_sse2(DWTELEM *b, int width){ i = 0; asm volatile( - "pslld $1, %%xmm7 \n\t" /* xmm7 already holds a '4' from 2 lifts ago. */ + "pcmpeqd %%xmm7, %%xmm7 \n\t" + "psrad $29, %%xmm7 \n\t" ::); for(; i> W_BS); + b[0] = b_0 + ((2 * ref[1] + W_BO-1 + 4 * b_0) >> W_BS); } { // Lift 3 -- cgit v1.2.3