]> git.videolan.org Git - x264.git/commitdiff
Fix cacheline check in avg2 w20 cache32
authorHolger Lubitz <holger@lubitz.org>
Sat, 22 Jan 2011 15:49:23 +0000 (16:49 +0100)
committerJason Garrett-Glaser <jason@x264.com>
Tue, 25 Jan 2011 10:40:33 +0000 (02:40 -0800)
Didn't result in incorrect output, only slightly decreased speed on a few obsolete systems.

common/x86/mc-a.asm

index c80c46a98e7c66c45b14831d8771d70ed322f392..65c9c6805de7c173b64eb2ffaff8063a46650fe8 100644 (file)
@@ -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