From b4fe97696c6024666facd6b017554005b4bc1b47 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 23 Feb 2007 15:28:35 +0000 Subject: [PATCH] reorder paddws to reduce dependancy chain put_h264_chroma_mc2_mmx2() 927 -> 902 dezicyles on duron Originally committed as revision 8097 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/i386/dsputil_h264_template_mmx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/i386/dsputil_h264_template_mmx.c b/libavcodec/i386/dsputil_h264_template_mmx.c index a8bb7f0819..51d7061dfe 100644 --- a/libavcodec/i386/dsputil_h264_template_mmx.c +++ b/libavcodec/i386/dsputil_h264_template_mmx.c @@ -284,9 +284,9 @@ static void H264_CHROMA_MC2_TMPL(uint8_t *dst/*align 2*/, uint8_t *src/*align 1* /* mm1 += C * src[0,1] + D * src[1,2] */ "movq %%mm0, %%mm2\n\t" "pmaddwd %%mm6, %%mm0\n\t" + "paddw %3, %%mm1\n\t" "paddw %%mm0, %%mm1\n\t" /* dst[0,1] = pack((mm1 + 32) >> 6) */ - "paddw %3, %%mm1\n\t" "psrlw $6, %%mm1\n\t" "packssdw %%mm7, %%mm1\n\t" "packuswb %%mm7, %%mm1\n\t"