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

murugan at multicorewareinc.com murugan at multicorewareinc.com
Tue Nov 5 13:04:38 CET 2013


# HG changeset patch
# User Murugan Vairavel <murugan at multicorewareinc.com>
# Date 1383652987 -19800
#      Tue Nov 05 17:33:07 2013 +0530
# Node ID 8b4fe169680fba027b67d441fe9248a7b5694bd8
# Parent  c57ed1fd7bd568b8662ba5f2ffb94eb01c3a0157
asm: pixel_add_pp routine for 8x2 block size

diff -r c57ed1fd7bd5 -r 8b4fe169680f source/common/x86/pixel-add8.asm
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/source/common/x86/pixel-add8.asm	Tue Nov 05 17:33:07 2013 +0530
@@ -0,0 +1,54 @@
+;*****************************************************************************
+;* Copyright (C) 2013 x265 project
+;*
+;* Authors: Praveen Kumar Tiwari <praveen at multicorewareinc.com>
+;*          Murugan Vairavel <murugan at multicorewareinc.com>
+;*
+;* This program is free software; you can redistribute it and/or modify
+;* it under the terms of the GNU General Public License as published by
+;* the Free Software Foundation; either version 2 of the License, or
+;* (at your option) any later version.
+;*
+;* This program is distributed in the hope that it will be useful,
+;* but WITHOUT ANY WARRANTY; without even the implied warranty of
+;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+;* GNU General Public License for more details.
+;*
+;* You should have received a copy of the GNU General Public License
+;* along with this program; if not, write to the Free Software
+;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111, USA.
+;*
+;* This program is also available under a commercial proprietary license.
+;* For more information, contact us at licensing at multicorewareinc.com.
+;*****************************************************************************/
+
+%include "x86inc.asm"
+%include "x86util.asm"
+
+SECTION_RODATA 32
+
+SECTION .text
+
+;-----------------------------------------------------------------------------
+; void pixel_add_pp_c_8x2(pixel *dest, intptr_t destride, pixel *src0, pixel *src1, intptr_t srcstride0, intptr_t srcstride1);
+;-----------------------------------------------------------------------------
+INIT_XMM sse2
+cglobal pixel_add_pp_8x2, 4, 6, 4, dest, deststride, src0, src1
+
+mov        r4d,   r4m
+mov        r5d,   r5m
+
+movh       m0,    [r2]
+movh       m1,    [r3]
+
+movh       m2,    [r2 + r4]
+movh       m3,    [r3 + r5]
+
+paddusb    m0,    m1
+paddusb    m2,    m3
+
+movh    [r0],             m0
+movh    [r0 + r1],        m2
+
+RET
+


More information about the x265-devel mailing list