[xiph-commits] r14742 - branches/theora-thusnelda/lib/enc/x86_32

xiphmont at svn.xiph.org xiphmont at svn.xiph.org
Tue Apr 15 03:45:32 PDT 2008


Author: xiphmont
Date: 2008-04-15 03:45:31 -0700 (Tue, 15 Apr 2008)
New Revision: 14742

Modified:
   branches/theora-thusnelda/lib/enc/x86_32/dct_decode_mmx.c
Log:
Duplicate 1266 fix in Thusnelda



Modified: branches/theora-thusnelda/lib/enc/x86_32/dct_decode_mmx.c
===================================================================
--- branches/theora-thusnelda/lib/enc/x86_32/dct_decode_mmx.c	2008-04-15 10:35:59 UTC (rev 14741)
+++ branches/theora-thusnelda/lib/enc/x86_32/dct_decode_mmx.c	2008-04-15 10:45:31 UTC (rev 14742)
@@ -75,20 +75,19 @@
     " packuswb %%mm0,%%mm5\n"   /* mm5 = x x x x newpix1 */             \
     " packuswb %%mm0,%%mm7\n"   /* mm7 = x x x x newpix2 */             \
     " punpcklbw %%mm7,%%mm5\n"  /* 2 1 2 1 2 1 2 1 */                   \
-    " movd %%mm5,%%eax\n"       /* eax = newpix21 */                    \
-    " movw %%ax,1(%0)\n"                                                \
+    " movd %%mm5,%%edi\n"       /* edi = newpix21 */                    \
+    " movw %%di,1(%0)\n"                                                \
     " psrlq $32,%%mm5\n"        /* why is so big stall here ? */        \
-    " shrl $16,%%eax\n"                                                 \
-    " lea 1(%0,%1,2),%%edi\n"                                           \
-    " movw %%ax,1(%0,%1,1)\n"                                           \
-    " movd %%mm5,%%eax\n"       /* eax = newpix21 high part */          \
+    " shrl $16,%%edi\n"                                                 \
+    " movw %%di,1(%0,%1,1)\n"                                           \
+    " movd %%mm5,%%edi\n"       /* eax = newpix21 high part */          \
     " lea (%1,%1,2),%%esi\n"                                            \
-    " movw %%ax,(%%edi)\n"                                              \
-    " shrl $16,%%eax\n"                                                 \
-    " movw %%ax,1(%0,%%esi)\n"                                          \
+    " movw %%di,1(%0,%1,2)\n"                                           \
+    " shrl $16,%%edi\n"                                                 \
+    " movw %%di,1(%0,%%esi)\n"                                          \
     :                                                                   \
     : "r" (PixelPtr), "r" (LineLength), "r" (BoundingValuePtr-256)      \
-    : "esi", "edi" , "memory", "eax"                                    \
+    : "esi", "edi" , "memory"                                           \
     );
 
     OC_LOOP_H_4x4



More information about the commits mailing list