[x265] [PATCH Review only] asm: pixel_add_pp routine for 4x2 block size

murugan at multicorewareinc.com murugan at multicorewareinc.com
Tue Nov 5 13:50:40 CET 2013


# HG changeset patch
# User Murugan Vairavel <murugan at multicorewareinc.com>
# Date 1383655811 -19800
#      Tue Nov 05 18:20:11 2013 +0530
# Node ID 7363b399bede56568c7093a5cf64d733db0857e5
# Parent  af1deb3803395340ce2df4812407ef120c88b517
asm: pixel_add_pp routine for 4x2 block size

diff -r af1deb380339 -r 7363b399bede source/common/x86/pixel-add8.asm
--- a/source/common/x86/pixel-add8.asm	Tue Nov 05 18:19:08 2013 +0530
+++ b/source/common/x86/pixel-add8.asm	Tue Nov 05 18:20:11 2013 +0530
@@ -30,6 +30,29 @@
 SECTION .text
 
 ;-----------------------------------------------------------------------------
+; void pixel_add_pp_c_4x2(pixel *dest, intptr_t destride, pixel *src0, pixel *src1, intptr_t srcstride0, intptr_t srcstride1);
+;-----------------------------------------------------------------------------
+INIT_XMM sse2
+cglobal pixel_add_pp_4x2, 4, 6, 4, dest, deststride, src0, src1
+
+mov        r4d,       r4m
+mov        r5d,       r5m
+
+movd       m0,        [r2]
+movd       m1,        [r3]
+
+movd       m2,        [r2 + r4]
+movd       m3,        [r3 + r5]
+
+paddusb    m0,        m1
+paddusb    m2,        m3
+
+movd    [r0],         m0
+movd    [r0 + r1],    m2
+
+RET
+
+;-----------------------------------------------------------------------------
 ; void pixel_add_pp_c_8x2(pixel *dest, intptr_t destride, pixel *src0, pixel *src1, intptr_t srcstride0, intptr_t srcstride1);
 ;-----------------------------------------------------------------------------
 INIT_XMM sse2


More information about the x265-devel mailing list