From 0feb9f1b088af1391603bee9da0b1f06b5fb45f6 Mon Sep 17 00:00:00 2001 From: Loren Merritt Date: Mon, 7 Apr 2008 08:24:40 -0600 Subject: [PATCH] mmx cachesplit sad of non-square sizes checked height instead of width --- common/x86/sad-a.asm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/x86/sad-a.asm b/common/x86/sad-a.asm index 61a68ed6..c178e8e1 100644 --- a/common/x86/sad-a.asm +++ b/common/x86/sad-a.asm @@ -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 -- 2.47.3