[x265] [PATCH Review Only] asm code for interp_4tap_vert_pp_8x6

praveen at multicorewareinc.com praveen at multicorewareinc.com
Wed Oct 23 16:51:54 CEST 2013


# HG changeset patch
# User Praveen Tiwari
# Date 1382539901 -19800
# Node ID e4debc47482e921231de8928daf575a933899c29
# Parent  9b6b4407d8ae91b49a23f24e00b01728a4cfcc56
asm code for interp_4tap_vert_pp_8x6

diff -r 9b6b4407d8ae -r e4debc47482e source/common/x86/ipfilter8.asm
--- a/source/common/x86/ipfilter8.asm	Wed Oct 23 20:13:45 2013 +0530
+++ b/source/common/x86/ipfilter8.asm	Wed Oct 23 20:21:41 2013 +0530
@@ -664,6 +664,19 @@
 packuswb    m3,        m3
 %endmacro
 
+%macro FILTER_V8_W8_H5 0
+punpcklbw   m0,        m1
+punpcklbw   m7,        m2,        m3
+
+pmaddubsw   m0,        m6
+pmaddubsw   m7,        m5
+
+paddw       m0,        m7
+
+pmulhrsw    m0,        m4
+packuswb    m0,        m0
+%endmacro
+
 %macro FILTER_V8_W8_8x2 2
 FILTER_V8_W8 %1, %2
 movq        m0,        [r0 + 4 * r1]
@@ -692,6 +705,25 @@
 movh        [r5 + r3], m3
 %endmacro
 
+%macro FILTER_V8_W8_8x6 2
+FILTER_V8_W8_8x4 %1, %2
+;8x5
+lea         r6,        [r6 + 2 * r1]
+movq        m3,        [r6 + r1]
+
+FILTER_V8_W8_H5
+
+movh        [r2 + 4 * r3], m0
+
+;8x6
+movq        m0,        [r0 + 8 * r1]
+
+FILTER_V8_W8_H2
+
+lea         r5,        [r2 + 4 * r3]
+movh        [r5 + r3], m1
+%endmacro
+
 ;-----------------------------------------------------------------------------
 ; void interp_4tap_vert_pp_%1x%2(pixel *src, intptr_t srcStride, pixel *dst, intptr_t dstStride, int coeffIdx)
 ;-----------------------------------------------------------------------------
@@ -746,3 +778,10 @@
 FILTER_V8_W8_8x4 8, 4
 
 RET
+
+;-----------------------------------------------------------------------------
+; void interp_4tap_vert_pp_8x6(pixel *src, intptr_t srcStride, pixel *dst, intptr_t dstStride, int coeffIdx)
+;-----------------------------------------------------------------------------
+FILTER_V8_W8_8x6 8, 6
+
+RET


More information about the x265-devel mailing list