[x265] [PATCH] fix for cpuid 1 issue

praveen at multicorewareinc.com praveen at multicorewareinc.com
Fri Jan 31 14:07:24 CET 2014


# HG changeset patch
# User Praveen Tiwari
# Date 1391173626 -19800
# Node ID 0cb89f7c3f5d32342821e460dacfcf8965cc238b
# Parent  eb3713ab0641757729d68d876be4e6737f27eb7e
fix for cpuid 1 issue

diff -r eb3713ab0641 -r 0cb89f7c3f5d source/common/x86/pixel-a.asm
--- a/source/common/x86/pixel-a.asm	Thu Jan 30 18:19:02 2014 -0600
+++ b/source/common/x86/pixel-a.asm	Fri Jan 31 18:37:06 2014 +0530
@@ -626,6 +626,14 @@
     movd eax, m7
     RET
 
+cglobal pixel_satd_8x8_internal
+    LOAD_SUMSUB_8x4P 0, 1, 2, 3, 4, 5, 7, r0, r2, 1, 0
+    SATD_8x4_SSE vertical, 0, 1, 2, 3, 4, 5, 6
+%%pixel_satd_8x4_internal:
+    LOAD_SUMSUB_8x4P 0, 1, 2, 3, 4, 5, 7, r0, r2, 1, 0
+    SATD_8x4_SSE vertical, 0, 1, 2, 3, 4, 5, 6
+    ret
+
 cglobal pixel_satd_8x8_internal2
 %if WIN64
     LOAD_SUMSUB_8x4P 0, 1, 2, 3, 4, 5, 7, r0, r2, 1, 0
@@ -2527,14 +2535,8 @@
 
 cglobal pixel_satd_8x8, 4,6,8
     SATD_START_SSE2 m6, m7
-    call pixel_satd_8x8_internal2
-    pxor    m7, m7
-    movhlps m7, m6
-    paddd   m6, m7
-    pshufd  m7, m6, 1
-    paddd   m6, m7
-    movd   eax, m6
-    RET
+    call pixel_satd_8x8_internal
+    SATD_END_SSE2 m6
 
 cglobal pixel_satd_8x4, 4,6,8
     SATD_START_SSE2 m6, m7


More information about the x265-devel mailing list