From: Holger Lubitz Date: Sat, 22 Jan 2011 15:49:23 +0000 (+0100) Subject: Fix cacheline check in avg2 w20 cache32 X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=ef2a0805eb7640323cf90facc9477152738fc1e5;p=x264.git Fix cacheline check in avg2 w20 cache32 Didn't result in incorrect output, only slightly decreased speed on a few obsolete systems. --- 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