[x265] [PATCH] blockcopy_pp_2x4: SSE2 asm code optimization

praveen at multicorewareinc.com praveen at multicorewareinc.com
Thu Feb 5 11:35:54 CET 2015


# HG changeset patch
# User Praveen Tiwari
# Date 1423132546 -19800
# Node ID 18edf28d3879454f940fced1e8f5b6cb81fe041f
# Parent  1265aafe5af1d66b8151ffd9bdc6fe595f7e6343
blockcopy_pp_2x4: SSE2 asm code optimization

diff -r 1265aafe5af1 -r 18edf28d3879 source/common/x86/blockcopy8.asm
--- a/source/common/x86/blockcopy8.asm	Thu Feb 05 14:54:55 2015 +0530
+++ b/source/common/x86/blockcopy8.asm	Thu Feb 05 16:05:46 2015 +0530
@@ -47,15 +47,15 @@
 cglobal blockcopy_pp_2x4, 4, 7, 0
     mov    r4w,    [r2]
     mov    r5w,    [r2 + r3]
-    lea    r2,     [r2 + r3 * 2]
-    mov    r6w,    [r2]
+    mov    r6w,    [r2 + 2 * r3]
+    lea    r3,     [r3 + 2 * r3]
     mov    r3w,    [r2 + r3]
 
-    mov    [r0],         r4w
-    mov    [r0 + r1],    r5w
-    lea    r0,           [r0 + 2 * r1]
-    mov    [r0],         r6w
-    mov    [r0 + r1],    r3w
+    mov    [r0],          r4w
+    mov    [r0 + r1],     r5w
+    mov    [r0 + 2 * r1], r6w
+    lea    r1,            [r1 + 2 * r1]
+    mov    [r0 + r1],     r3w
 RET
 
 ;-----------------------------------------------------------------------------


More information about the x265-devel mailing list