diff i386/dsputil_h264_template_mmx.c @ 6557:e1208c4f8898 libavcodec

h264 chroma mc ssse3 width8: 180->92, width4: 78->63 cycles (core2)
author lorenm
date Tue, 01 Apr 2008 04:51:28 +0000
parents 5969caa9190d
children 33896780c612
line wrap: on
line diff
--- a/i386/dsputil_h264_template_mmx.c	Tue Apr 01 01:28:26 2008 +0000
+++ b/i386/dsputil_h264_template_mmx.c	Tue Apr 01 04:51:28 2008 +0000
@@ -27,7 +27,6 @@
  */
 static void H264_CHROMA_MC8_TMPL(uint8_t *dst/*align 8*/, uint8_t *src/*align 1*/, int stride, int h, int x, int y, int rnd)
 {
-    DECLARE_ALIGNED_8(static const uint64_t, ff_pw_28) = 0x001C001C001C001CULL;
     const uint64_t *rnd_reg;
     DECLARE_ALIGNED_8(uint64_t, AA);
     DECLARE_ALIGNED_8(uint64_t, DD);
@@ -98,7 +97,7 @@
     }
 
     /* general case, bilinear */
-    rnd_reg = rnd ? &ff_pw_32.a : &ff_pw_28;
+    rnd_reg = rnd ? &ff_pw_32.a : &ff_pw_28.a;
     asm volatile("movd %2, %%mm4\n\t"
                  "movd %3, %%mm6\n\t"
                  "punpcklwd %%mm4, %%mm4\n\t"