[x264-devel] Fix cacheline check in avg2 w20 cache32

Holger Lubitz git at videolan.org
Wed Jan 26 02:56:55 CET 2011


x264 | branch: master | Holger Lubitz <holger at lubitz.org> | Sat Jan 22 16:49:23 2011 +0100| [ef2a0805eb7640323cf90facc9477152738fc1e5] | committer: Jason Garrett-Glaser

Fix cacheline check in avg2 w20 cache32
Didn't result in incorrect output, only slightly decreased speed on a few obsolete systems.

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=ef2a0805eb7640323cf90facc9477152738fc1e5
---

 common/x86/mc-a.asm |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/common/x86/mc-a.asm b/common/x86/mc-a.asm
index c80c46a..65c9c68 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



More information about the x264-devel mailing list