From: Michael Niedermayer Date: Mon, 20 Aug 2007 22:41:47 +0000 (+0000) Subject: remove idiotc double subtraction from the sse2 code (untested, no sse2 here) X-Git-Tag: v0.5~7832 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=be3b22f9cae9916405cde209fd93f8593e52ed4b;p=coroid%2Flibav_saccubus.git remove idiotc double subtraction from the sse2 code (untested, no sse2 here) Originally committed as revision 10158 to svn://svn.ffmpeg.org/ffmpeg/trunk --- diff --git a/libavcodec/i386/snowdsp_mmx.c b/libavcodec/i386/snowdsp_mmx.c index 053e4bde6..96cb856e9 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