[x265] [PATCH Review Only] asm code for blockcopy_sp, 8x2 partition

praveen at multicorewareinc.com praveen at multicorewareinc.com
Tue Nov 5 15:54:29 CET 2013


# HG changeset patch
# User Praveen Tiwari
# Date 1383663256 -19800
# Node ID 053c9cf05f0f4a86855fefb5c9f6c9e6c6450be3
# Parent  aac83f1770f0551b34b14f77dc43a68108f8de09
asm code for blockcopy_sp, 8x2 partition

diff -r aac83f1770f0 -r 053c9cf05f0f source/common/x86/blockcopy8.asm
--- a/source/common/x86/blockcopy8.asm	Tue Nov 05 20:02:03 2013 +0530
+++ b/source/common/x86/blockcopy8.asm	Tue Nov 05 20:24:16 2013 +0530
@@ -800,6 +800,27 @@
 BLOCKCOPY_PP_W64_H2 64, 64
 
 ;-----------------------------------------------------------------------------
+; void blockcopy_sp_8x2(pixel *dest, intptr_t destStride, int16_t *src, intptr_t srcStride)
+;-----------------------------------------------------------------------------
+INIT_XMM sse2
+cglobal blockcopy_sp_8x2, 4, 4, 3, dest, destStride, src, srcStride
+
+add         r3,     r3
+
+mova        m0,     [tab_Vm]
+
+movu        m1,     [r2]
+movu        m2,     [r2 + r3]
+
+pshufb      m1,     m0
+pshufb      m2,     m0
+
+movh       [r0],         m1
+movh       [r0 + r1],    m2
+
+RET
+
+;-----------------------------------------------------------------------------
 ; void blockcopy_sp_8x4(pixel *dest, intptr_t destStride, int16_t *src, intptr_t srcStride)
 ;-----------------------------------------------------------------------------
 INIT_XMM sse2


More information about the x265-devel mailing list