]> granicus.if.org Git - libx264/commitdiff
mmx cachesplit sad of non-square sizes checked height instead of width
authorLoren Merritt <pengvado@akuvian.org>
Mon, 7 Apr 2008 14:24:40 +0000 (08:24 -0600)
committerLoren Merritt <pengvado@akuvian.org>
Wed, 9 Apr 2008 21:14:21 +0000 (15:14 -0600)
common/x86/sad-a.asm

index 61a68ed6457d4f3dc40249f81b9c553932575264..c178e8e1c81339ba6b79554594a80f01a5741e54 100644 (file)
@@ -727,8 +727,8 @@ cglobal x264_pixel_sad_16x%2_cache64_%1, 0,0
 
 %macro SAD_CACHELINE_START_MMX2 4 ; width, height, iterations, cacheline
     mov    eax, r2m
-    and    eax, 0x17|%2|(%4>>1)
-    cmp    eax, 0x10|%2|(%4>>1)
+    and    eax, 0x17|%1|(%4>>1)
+    cmp    eax, 0x10|%1|(%4>>1)
     jle x264_pixel_sad_%1x%2_mmxext
     and    eax, 7
     shl    eax, 3