]> git.videolan.org Git - x264.git/commitdiff
Fix 10L in intra pred
authorJason Garrett-Glaser <darkshikari@gmail.com>
Mon, 9 Feb 2009 19:30:54 +0000 (11:30 -0800)
committerJason Garrett-Glaser <darkshikari@gmail.com>
Mon, 9 Feb 2009 19:30:54 +0000 (11:30 -0800)
Forgetting a %define resulted in SIGILL on 32-bit systems without SSE (e.g. Athlon XP).

common/x86/predict-a.asm

index 2d6eb4072bc55de580997d6cd760859c98d2640a..e0cb8e22b75288f6604e04b9393a02a2ecc7214e 100644 (file)
@@ -559,6 +559,7 @@ cglobal predict_8x8_ddr_mmxext, 2,2
 ;-----------------------------------------------------------------------------
 ; void predict_8x8_hu_mmxext( uint8_t *src, uint8_t *edge )
 ;-----------------------------------------------------------------------------
+%define PALIGNR PALIGNR_MMX
 cglobal predict_8x8_hu_mmxext, 2,2
     movq    mm1, [r1+7]         ; l0 l1 l2 l3 l4 l5 l6 l7
     add      r0, 4*FDEC_STRIDE
@@ -588,7 +589,7 @@ cglobal predict_8x8_hu_mmxext, 2,2
     pshufw  mm1, mm6, 11111001b
     PALIGNR mm6, mm4, 4, mm2
     pshufw  mm2, mm7, 11111110b
-    PALIGNR mm7, mm4, 6, mm4
+    PALIGNR mm7, mm4, 6, mm3
     pshufw  mm3, mm0, 11111111b
     movq   [r0-4*FDEC_STRIDE], mm4
     movq   [r0-3*FDEC_STRIDE], mm5