[x265] [PATCH] asm-sse2: getResidual8, fix xmm register uses

praveen at multicorewareinc.com praveen at multicorewareinc.com
Tue Mar 3 13:11:32 CET 2015


# HG changeset patch
# User Praveen Tiwari <praveen at multicorewareinc.com>
# Date 1425384628 -19800
# Node ID cec2114a6b64f72e4baf07e9e4c2728c9b79cff6
# Parent  018e8bbaa854b1a4bd82b3a2e23f7775a77da5cc
asm-sse2: getResidual8, fix xmm register uses

diff -r 018e8bbaa854 -r cec2114a6b64 source/common/x86/pixel-util8.asm
--- a/source/common/x86/pixel-util8.asm	Fri Feb 27 11:46:09 2015 +0530
+++ b/source/common/x86/pixel-util8.asm	Tue Mar 03 17:40:28 2015 +0530
@@ -149,14 +149,14 @@
 %assign x 0
 %rep 8/2
     ; row 0-1
-    movu        m1, [r0]
-    movu        m2, [r0 + r3]
-    movu        m3, [r1]
-    movu        m4, [r1 + r3]
+    movu        m0, [r0]
+    movu        m1, [r0 + r3]
+    movu        m2, [r1]
+    movu        m3, [r1 + r3]
+    psubw       m0, m2
     psubw       m1, m3
-    psubw       m2, m4
-    movu        [r2], m1
-    movu        [r2 + r3], m2
+    movu        [r2], m0
+    movu        [r2 + r3], m1
 %assign x x+1
 %if (x != 4)
     lea         r0, [r0 + r3 * 2]


More information about the x265-devel mailing list