From ef2a0805eb7640323cf90facc9477152738fc1e5 Mon Sep 17 00:00:00 2001 From: Holger Lubitz Date: Sat, 22 Jan 2011 16:49:23 +0100 Subject: [PATCH] Fix cacheline check in avg2 w20 cache32 Didn't result in incorrect output, only slightly decreased speed on a few obsolete systems. --- common/x86/mc-a.asm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/x86/mc-a.asm b/common/x86/mc-a.asm index c80c46a9..65c9c680 100644 --- a/common/x86/mc-a.asm +++ b/common/x86/mc-a.asm @@ -1061,8 +1061,8 @@ pixel_avg2_w%1_cache_mmxext: %endif cglobal pixel_avg2_w%1_cache%2_%3 mov eax, r2m - and eax, 0x1f|(%2>>1) - cmp eax, (32-%1-(%1 % 8))|(%2>>1) + and eax, %2-1 + cmp eax, (%2-%1-(%1 % 8)) %if %1==12||%1==20 jbe pixel_avg2_w%1_%3 %else -- 2.47.3