<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Nov 14, 2013 at 2:47 AM, Min Chen <span dir="ltr"><<a href="mailto:chenm003@163.com" target="_blank">chenm003@163.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"># HG changeset patch<br>
# User Min Chen <<a href="mailto:chenm003@163.com">chenm003@163.com</a>><br>
# Date 1384418703 -28800<br>
# Node ID 8e22129119d6d8049996ed5f487625e4801b0a50<br>
# Parent d80ab2913b31e678334fb0941066c313dcb2d3b7<br>
asm: assembly code for calcrecon[]<br></blockquote><div><br></div><div>the EOLN changes to pixel-util.asm are not making it through your email client properly, so this patch is not importing. Can you send this to me as a patch file?</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
diff -r d80ab2913b31 -r 8e22129119d6 source/common/x86/asm-primitives.cpp<br>
--- a/source/common/x86/asm-primitives.cpp Wed Nov 13 14:30:22 2013 +0530<br>
+++ b/source/common/x86/asm-primitives.cpp Thu Nov 14 16:45:03 2013 +0800<br>
@@ -450,6 +450,8 @@<br>
<br>
p.cvt32to16_shr = x265_cvt32to16_shr_sse2;<br>
p.ipfilter_ss[FILTER_V_S_S_8] = x265_interp_8tap_v_ss_sse2;<br>
+ p.calcrecon[BLOCK_4x4] = x265_calcRecons4_sse2;<br>
+ p.calcrecon[BLOCK_8x8] = x265_calcRecons8_sse2;<br>
}<br>
if (cpuMask & X265_CPU_SSSE3)<br>
{<br>
@@ -525,6 +527,9 @@<br>
p.chroma_copy_sp[CHROMA_2x4] = x265_blockcopy_sp_2x4_sse4;<br>
p.chroma_copy_sp[CHROMA_2x8] = x265_blockcopy_sp_2x8_sse4;<br>
p.chroma_copy_sp[CHROMA_6x8] = x265_blockcopy_sp_6x8_sse4;<br>
+ p.calcrecon[BLOCK_16x16] = x265_calcRecons16_sse4;<br>
+ p.calcrecon[BLOCK_32x32] = x265_calcRecons32_sse4;<br>
+ p.calcrecon[BLOCK_64x64] = x265_calcRecons64_sse4;<br>
}<br>
if (cpuMask & X265_CPU_AVX)<br>
{<br>
diff -r d80ab2913b31 -r 8e22129119d6 source/common/x86/pixel-util.asm<br>
--- a/source/common/x86/pixel-util.asm Wed Nov 13 14:30:22 2013 +0530<br>
+++ b/source/common/x86/pixel-util.asm Thu Nov 14 16:45:03 2013 +0800<br>
@@ -1,103 +1,475 @@<br>
-;*****************************************************************************<br>
<br>
-;* Copyright (C) 2013 x265 project<br>
<br>
-;*<br>
<br>
-;* Authors: Min Chen <<a href="mailto:chenm003@163.com">chenm003@163.com</a>> <<a href="mailto:min.chen@multicorewareinc.com">min.chen@multicorewareinc.com</a>><br>
<br>
-;*<br>
<br>
-;* This program is free software; you can redistribute it and/or modify<br>
<br>
-;* it under the terms of the GNU General Public License as published by<br>
<br>
-;* the Free Software Foundation; either version 2 of the License, or<br>
<br>
-;* (at your option) any later version.<br>
<br>
-;*<br>
<br>
-;* This program is distributed in the hope that it will be useful,<br>
<br>
-;* but WITHOUT ANY WARRANTY; without even the implied warranty of<br>
<br>
-;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the<br>
<br>
-;* GNU General Public License for more details.<br>
<br>
-;*<br>
<br>
-;* You should have received a copy of the GNU General Public License<br>
<br>
-;* along with this program; if not, write to the Free Software<br>
<br>
-;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111, USA.<br>
<br>
-;*<br>
<br>
-;* This program is also available under a commercial proprietary license.<br>
<br>
-;* For more information, contact us at <a href="mailto:licensing@multicorewareinc.com">licensing@multicorewareinc.com</a>.<br>
<br>
-;*****************************************************************************/<br>
<br>
-<br>
<br>
-%include "x86inc.asm"<br>
<br>
-%include "x86util.asm"<br>
<br>
-<br>
<br>
-SECTION_RODATA 32<br>
<br>
-<br>
<br>
-SECTION .text<br>
<br>
-<br>
<br>
-<br>
<br>
-;-----------------------------------------------------------------------------<br>
<br>
-; void cvt32to16_shr(short *dst, int *src, intptr_t stride, int shift, int size)<br>
<br>
-;-----------------------------------------------------------------------------<br>
<br>
-INIT_XMM sse2<br>
<br>
-cglobal cvt32to16_shr, 5, 7, 1, dst, src, stride<br>
<br>
-%define rnd m7<br>
<br>
-%define shift m6<br>
<br>
-<br>
<br>
- ; make shift<br>
<br>
- mov r5d, r3m<br>
<br>
- movd shift, r5d<br>
<br>
-<br>
<br>
- ; make round<br>
<br>
- dec r5<br>
<br>
- xor r6, r6<br>
<br>
- bts r6, r5<br>
<br>
-<br>
<br>
- movd rnd, r6d<br>
<br>
- pshufd rnd, rnd, 0<br>
<br>
-<br>
<br>
- ; register alloc<br>
<br>
- ; r0 - dst<br>
<br>
- ; r1 - src<br>
<br>
- ; r2 - stride * 2 (short*)<br>
<br>
- ; r3 - lx<br>
<br>
- ; r4 - size<br>
<br>
- ; r5 - ly<br>
<br>
- ; r6 - diff<br>
<br>
- lea r2, [r2 * 2]<br>
<br>
-<br>
<br>
- mov r4d, r4m<br>
<br>
- mov r5, r4<br>
<br>
- mov r6, r2<br>
<br>
- sub r6, r4<br>
<br>
- lea r6, [r6 * 2]<br>
<br>
-<br>
<br>
- shr r5, 1<br>
<br>
-.loop_row:<br>
<br>
-<br>
<br>
- mov r3, r4<br>
<br>
- shr r3, 2<br>
<br>
-.loop_col:<br>
<br>
- ; row 0<br>
<br>
- movu m0, [r1]<br>
<br>
- paddd m0, rnd<br>
<br>
- psrad m0, shift<br>
<br>
- packssdw m0, m0<br>
<br>
- movh [r0], m0<br>
<br>
-<br>
<br>
- ; row 1<br>
<br>
- movu m0, [r1 + r4 * 4]<br>
<br>
- paddd m0, rnd<br>
<br>
- psrad m0, shift<br>
<br>
- packssdw m0, m0<br>
<br>
- movh [r0 + r2], m0<br>
<br>
-<br>
<br>
- ; move col pointer<br>
<br>
- add r1, 16<br>
<br>
- add r0, 8<br>
<br>
-<br>
<br>
- dec r3<br>
<br>
- jg .loop_col<br>
<br>
-<br>
<br>
- ; update pointer<br>
<br>
- lea r1, [r1 + r4 * 4]<br>
<br>
- add r0, r6<br>
<br>
-<br>
<br>
- ; end of loop_row<br>
<br>
- dec r5<br>
<br>
- jg .loop_row<br>
<br>
-<br>
<br>
- RET<br>
<br>
+;*****************************************************************************<br>
+;* Copyright (C) 2013 x265 project<br>
+;*<br>
+;* Authors: Min Chen <<a href="mailto:chenm003@163.com">chenm003@163.com</a>> <<a href="mailto:min.chen@multicorewareinc.com">min.chen@multicorewareinc.com</a>><br>
+;*<br>
+;* This program is free software; you can redistribute it and/or modify<br>
+;* it under the terms of the GNU General Public License as published by<br>
+;* the Free Software Foundation; either version 2 of the License, or<br>
+;* (at your option) any later version.<br>
+;*<br>
+;* This program is distributed in the hope that it will be useful,<br>
+;* but WITHOUT ANY WARRANTY; without even the implied warranty of<br>
+;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the<br>
+;* GNU General Public License for more details.<br>
+;*<br>
+;* You should have received a copy of the GNU General Public License<br>
+;* along with this program; if not, write to the Free Software<br>
+;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111, USA.<br>
+;*<br>
+;* This program is also available under a commercial proprietary license.<br>
+;* For more information, contact us at <a href="mailto:licensing@multicorewareinc.com">licensing@multicorewareinc.com</a>.<br>
+;*****************************************************************************/<br>
+<br>
+%include "x86inc.asm"<br>
+%include "x86util.asm"<br>
+<br>
+SECTION_RODATA 32<br>
+<br>
+SECTION .text<br>
+<br>
+<br>
+;-----------------------------------------------------------------------------<br>
+; void cvt32to16_shr(short *dst, int *src, intptr_t stride, int shift, int size)<br>
+;-----------------------------------------------------------------------------<br>
+INIT_XMM sse2<br>
+cglobal cvt32to16_shr, 5, 7, 1, dst, src, stride<br>
+%define rnd m7<br>
+%define shift m6<br>
+<br>
+ ; make shift<br>
+ mov r5d, r3m<br>
+ movd shift, r5d<br>
+<br>
+ ; make round<br>
+ dec r5<br>
+ xor r6, r6<br>
+ bts r6, r5<br>
+<br>
+ movd rnd, r6d<br>
+ pshufd rnd, rnd, 0<br>
+<br>
+ ; register alloc<br>
+ ; r0 - dst<br>
+ ; r1 - src<br>
+ ; r2 - stride * 2 (short*)<br>
+ ; r3 - lx<br>
+ ; r4 - size<br>
+ ; r5 - ly<br>
+ ; r6 - diff<br>
+ lea r2, [r2 * 2]<br>
+<br>
+ mov r4d, r4m<br>
+ mov r5, r4<br>
+ mov r6, r2<br>
+ sub r6, r4<br>
+ lea r6, [r6 * 2]<br>
+<br>
+ shr r5, 1<br>
+.loop_row:<br>
+<br>
+ mov r3, r4<br>
+ shr r3, 2<br>
+.loop_col:<br>
+ ; row 0<br>
+ movu m0, [r1]<br>
+ paddd m0, rnd<br>
+ psrad m0, shift<br>
+ packssdw m0, m0<br>
+ movh [r0], m0<br>
+<br>
+ ; row 1<br>
+ movu m0, [r1 + r4 * 4]<br>
+ paddd m0, rnd<br>
+ psrad m0, shift<br>
+ packssdw m0, m0<br>
+ movh [r0 + r2], m0<br>
+<br>
+ ; move col pointer<br>
+ add r1, 16<br>
+ add r0, 8<br>
+<br>
+ dec r3<br>
+ jg .loop_col<br>
+<br>
+ ; update pointer<br>
+ lea r1, [r1 + r4 * 4]<br>
+ add r0, r6<br>
+<br>
+ ; end of loop_row<br>
+ dec r5<br>
+ jg .loop_row<br>
+<br>
+ RET<br>
+<br>
+<br>
+;-----------------------------------------------------------------------------<br>
+; void calcrecon(pixel* pred, int16_t* residual, pixel* recon, int16_t* reconqt, pixel *reconipred, int stride, int strideqt, int strideipred)<br>
+;-----------------------------------------------------------------------------<br>
+INIT_XMM sse2<br>
+cglobal calcRecons4<br>
+%if ARCH_X86_64 == 1<br>
+ DECLARE_REG_TMP 0,1,2,3,4,5,6,7,8<br>
+ PROLOGUE 6,9,4<br>
+%else<br>
+ DECLARE_REG_TMP 0,1,2,3,4,5<br>
+ PROLOGUE 6,7,4<br>
+ %define t6 r6m<br>
+ %define t6d r6d<br>
+ %define t7 r7m<br>
+ %define t8d r6d<br>
+%endif<br>
+<br>
+ mov t6d, r6m<br>
+%if ARCH_X86_64 == 0<br>
+ add t6d, t6d<br>
+ mov r6m, t6d<br>
+%else<br>
+ mov r5d, r5m<br>
+ mov r7d, r7m<br>
+ add t6d, t6d<br>
+%endif<br>
+<br>
+ pxor m0, m0<br>
+ mov t8d, 4/2<br>
+.loop:<br>
+ movd m1, [t0]<br>
+ movd m2, [t0 + t5]<br>
+ punpckldq m1, m2<br>
+ punpcklbw m1, m0<br>
+ movh m2, [t1]<br>
+ movh m3, [t1 + t5 * 2]<br>
+ punpcklqdq m2, m3<br>
+ paddw m1, m2<br>
+ packuswb m1, m1<br>
+<br>
+ ; store recon[] and recipred[]<br>
+ movd [t2], m1<br>
+ movd [t4], m1<br>
+ add t4, t7<br>
+ pshufd m2, m1, 1<br>
+ movd [t2 + t5], m2<br>
+ movd [t4], m2<br>
+ add t4, t7<br>
+<br>
+ ; store recqt[]<br>
+ punpcklbw m1, m0<br>
+ movlps [t3], m1<br>
+ add t3, t6<br>
+ movhps [t3], m1<br>
+ add t3, t6<br>
+<br>
+ lea t0, [t0 + t5 * 2]<br>
+ lea t1, [t1 + t5 * 4]<br>
+ lea t2, [t2 + t5 * 2]<br>
+<br>
+ dec t8d<br>
+ jnz .loop<br>
+ RET<br>
+<br>
+<br>
+INIT_XMM sse2<br>
+cglobal calcRecons8<br>
+%if ARCH_X86_64 == 1<br>
+ DECLARE_REG_TMP 0,1,2,3,4,5,6,7,8<br>
+ PROLOGUE 6,9,5<br>
+%else<br>
+ DECLARE_REG_TMP 0,1,2,3,4,5<br>
+ PROLOGUE 6,7,5<br>
+ %define t6 r6m<br>
+ %define t6d r6d<br>
+ %define t7 r7m<br>
+ %define t8d r6d<br>
+%endif<br>
+<br>
+ mov t6d, r6m<br>
+%if ARCH_X86_64 == 0<br>
+ add t6d, t6d<br>
+ mov r6m, t6d<br>
+%else<br>
+ mov r5d, r5m<br>
+ mov r7d, r7m<br>
+ add t6d, t6d<br>
+%endif<br>
+<br>
+ pxor m0, m0<br>
+ mov t8d, 8/2<br>
+.loop:<br>
+ movh m1, [t0]<br>
+ movh m2, [t0 + t5]<br>
+ punpcklbw m1, m0<br>
+ punpcklbw m2, m0<br>
+ movu m3, [t1]<br>
+ movu m4, [t1 + t5 * 2]<br>
+ paddw m1, m3<br>
+ paddw m2, m4<br>
+ packuswb m1, m2<br>
+<br>
+ ; store recon[] and recipred[]<br>
+ movlps [t2], m1<br>
+ movhps [t2 + t5], m1<br>
+ movlps [t4], m1<br>
+%if ARCH_X86_64 == 0<br>
+ add t4, t7<br>
+ movhps [t4], m1<br>
+ add t4, t7<br>
+%else<br>
+ movhps [t4 + t7], m1<br>
+ lea t4, [t4 + t7 * 2]<br>
+%endif<br>
+<br>
+ ; store recqt[]<br>
+ punpcklbw m2, m1, m0<br>
+ punpckhbw m1, m0<br>
+ movu [t3], m2<br>
+ add t3, t6<br>
+ movu [t3], m1<br>
+ add t3, t6<br>
+<br>
+ lea t0, [t0 + t5 * 2]<br>
+ lea t1, [t1 + t5 * 4]<br>
+ lea t2, [t2 + t5 * 2]<br>
+<br>
+ dec t8d<br>
+ jnz .loop<br>
+ RET<br>
+<br>
+<br>
+INIT_XMM sse4<br>
+cglobal calcRecons16<br>
+%if ARCH_X86_64 == 1<br>
+ DECLARE_REG_TMP 0,1,2,3,4,5,6,7,8<br>
+ PROLOGUE 6,9,5<br>
+%else<br>
+ DECLARE_REG_TMP 0,1,2,3,4,5<br>
+ PROLOGUE 6,7,5<br>
+ %define t6 r6m<br>
+ %define t6d r6d<br>
+ %define t7 r7m<br>
+ %define t8d r6d<br>
+%endif<br>
+<br>
+ mov t6d, r6m<br>
+%if ARCH_X86_64 == 0<br>
+ add t6d, t6d<br>
+ mov r6m, t6d<br>
+%else<br>
+ mov r5d, r5m<br>
+ mov r7d, r7m<br>
+ add t6d, t6d<br>
+%endif<br>
+<br>
+ pxor m0, m0<br>
+ mov t8d, 16<br>
+.loop:<br>
+ movu m2, [t0]<br>
+ pmovzxbw m1, m2<br>
+ punpckhbw m2, m0<br>
+ movu m3, [t1]<br>
+ movu m4, [t1 + 16]<br>
+ paddw m1, m3<br>
+ paddw m2, m4<br>
+ packuswb m1, m2<br>
+<br>
+ ; store recon[] and recipred[]<br>
+ movu [t2], m1<br>
+ movu [t4], m1<br>
+<br>
+ ; store recqt[]<br>
+ pmovzxbw m2, m1<br>
+ punpckhbw m1, m0<br>
+ movu [t3], m2<br>
+ movu [t3 + 16], m1<br>
+<br>
+ add t3, t6<br>
+ add t4, t7<br>
+ add t0, t5<br>
+ lea t1, [t1 + t5 * 2]<br>
+ add t2, t5<br>
+<br>
+ dec t8d<br>
+ jnz .loop<br>
+ RET<br>
+<br>
+<br>
+INIT_XMM sse4<br>
+cglobal calcRecons32<br>
+%if ARCH_X86_64 == 1<br>
+ DECLARE_REG_TMP 0,1,2,3,4,5,6,7,8<br>
+ PROLOGUE 6,9,7<br>
+%else<br>
+ DECLARE_REG_TMP 0,1,2,3,4,5<br>
+ PROLOGUE 6,7,7<br>
+ %define t6 r6m<br>
+ %define t6d r6d<br>
+ %define t7 r7m<br>
+ %define t8d r6d<br>
+%endif<br>
+<br>
+ mov t6d, r6m<br>
+%if ARCH_X86_64 == 0<br>
+ add t6d, t6d<br>
+ mov r6m, t6d<br>
+%else<br>
+ mov r5d, r5m<br>
+ mov r7d, r7m<br>
+ add t6d, t6d<br>
+%endif<br>
+<br>
+ pxor m0, m0<br>
+ mov t8d, 32<br>
+.loop:<br>
+ movu m2, [t0]<br>
+ movu m4, [t0 + 16]<br>
+ pmovzxbw m1, m2<br>
+ punpckhbw m2, m0<br>
+ pmovzxbw m3, m4<br>
+ punpckhbw m4, m0<br>
+<br>
+ movu m5, [t1 + 0 * 16]<br>
+ movu m6, [t1 + 1 * 16]<br>
+ paddw m1, m5<br>
+ paddw m2, m6<br>
+ packuswb m1, m2<br>
+<br>
+ movu m5, [t1 + 2 * 16]<br>
+ movu m6, [t1 + 3 * 16]<br>
+ paddw m3, m5<br>
+ paddw m4, m6<br>
+ packuswb m3, m4<br>
+<br>
+ ; store recon[] and recipred[]<br>
+ movu [t2], m1<br>
+ movu [t2 + 16], m3<br>
+ movu [t4], m1<br>
+ movu [t4 + 16], m3<br>
+<br>
+ ; store recqt[]<br>
+ pmovzxbw m2, m1<br>
+ punpckhbw m1, m0<br>
+ movu [t3 + 0 * 16], m2<br>
+ movu [t3 + 1 * 16], m1<br>
+ pmovzxbw m4, m3<br>
+ punpckhbw m3, m0<br>
+ movu [t3 + 2 * 16], m4<br>
+ movu [t3 + 3 * 16], m3<br>
+<br>
+ add t3, t6<br>
+ add t4, t7<br>
+ add t0, t5<br>
+ lea t1, [t1 + t5 * 2]<br>
+ add t2, t5<br>
+<br>
+ dec t8d<br>
+ jnz .loop<br>
+ RET<br>
+<br>
+<br>
+INIT_XMM sse4<br>
+cglobal calcRecons64<br>
+%if ARCH_X86_64 == 1<br>
+ DECLARE_REG_TMP 0,1,2,3,4,5,6,7,8<br>
+ PROLOGUE 6,9,7<br>
+%else<br>
+ DECLARE_REG_TMP 0,1,2,3,4,5<br>
+ PROLOGUE 6,7,7<br>
+ %define t6 r6m<br>
+ %define t6d r6d<br>
+ %define t7 r7m<br>
+ %define t8d r6d<br>
+%endif<br>
+<br>
+ mov t6d, r6m<br>
+%if ARCH_X86_64 == 0<br>
+ add t6d, t6d<br>
+ mov r6m, t6d<br>
+%else<br>
+ mov r5d, r5m<br>
+ mov r7d, r7m<br>
+ add t6d, t6d<br>
+%endif<br>
+<br>
+ pxor m0, m0<br>
+ mov t8d, 64<br>
+.loop:<br>
+ ; left 32 pixel<br>
+ movu m2, [t0 + 0 * 16]<br>
+ movu m4, [t0 + 1 * 16]<br>
+ pmovzxbw m1, m2<br>
+ punpckhbw m2, m0<br>
+ pmovzxbw m3, m4<br>
+ punpckhbw m4, m0<br>
+<br>
+ movu m5, [t1 + 0 * 16]<br>
+ movu m6, [t1 + 1 * 16]<br>
+ paddw m1, m5<br>
+ paddw m2, m6<br>
+ packuswb m1, m2<br>
+<br>
+ movu m5, [t1 + 2 * 16]<br>
+ movu m6, [t1 + 3 * 16]<br>
+ paddw m3, m5<br>
+ paddw m4, m6<br>
+ packuswb m3, m4<br>
+<br>
+ ; store recon[] and recipred[]<br>
+ movu [t2 + 0 * 16], m1<br>
+ movu [t2 + 1 * 16], m3<br>
+ movu [t4 + 0 * 16], m1<br>
+ movu [t4 + 1 * 16], m3<br>
+<br>
+ ; store recqt[]<br>
+ pmovzxbw m2, m1<br>
+ punpckhbw m1, m0<br>
+ movu [t3 + 0 * 16], m2<br>
+ movu [t3 + 1 * 16], m1<br>
+ pmovzxbw m4, m3<br>
+ punpckhbw m3, m0<br>
+ movu [t3 + 2 * 16], m4<br>
+ movu [t3 + 3 * 16], m3<br>
+<br>
+ ; right 32 pixel<br>
+ movu m2, [t0 + 2 * 16]<br>
+ movu m4, [t0 + 3 * 16]<br>
+ pmovzxbw m1, m2<br>
+ punpckhbw m2, m0<br>
+ pmovzxbw m3, m4<br>
+ punpckhbw m4, m0<br>
+<br>
+ movu m5, [t1 + 4 * 16]<br>
+ movu m6, [t1 + 5 * 16]<br>
+ paddw m1, m5<br>
+ paddw m2, m6<br>
+ packuswb m1, m2<br>
+<br>
+ movu m5, [t1 + 6 * 16]<br>
+ movu m6, [t1 + 7 * 16]<br>
+ paddw m3, m5<br>
+ paddw m4, m6<br>
+ packuswb m3, m4<br>
+<br>
+ ; store recon[] and recipred[]<br>
+ movu [t2 + 2 * 16], m1<br>
+ movu [t2 + 3 * 16], m3<br>
+ movu [t4 + 2 * 16], m1<br>
+ movu [t4 + 3 * 16], m3<br>
+<br>
+ ; store recqt[]<br>
+ pmovzxbw m2, m1<br>
+ punpckhbw m1, m0<br>
+ movu [t3 + 4 * 16], m2<br>
+ movu [t3 + 5 * 16], m1<br>
+ pmovzxbw m4, m3<br>
+ punpckhbw m3, m0<br>
+ movu [t3 + 6 * 16], m4<br>
+ movu [t3 + 7 * 16], m3<br>
+<br>
+ add t3, t6<br>
+ add t4, t7<br>
+ add t0, t5<br>
+ lea t1, [t1 + t5 * 2]<br>
+ add t2, t5<br>
+<br>
+ dec t8d<br>
+ jnz .loop<br>
+ RET<br>
diff -r d80ab2913b31 -r 8e22129119d6 source/common/x86/pixel.h<br>
--- a/source/common/x86/pixel.h Wed Nov 13 14:30:22 2013 +0530<br>
+++ b/source/common/x86/pixel.h Thu Nov 14 16:45:03 2013 +0800<br>
@@ -355,4 +355,10 @@<br>
#undef CHROMA_PIXELSUB_DEF<br>
#undef LUMA_PIXELSUB_DEF<br>
<br>
+void x265_calcRecons4_sse2(pixel* pred, int16_t* residual, pixel* recon, int16_t* reconqt, pixel *reconipred, int stride, int strideqt, int strideipred);<br>
+void x265_calcRecons8_sse2(pixel* pred, int16_t* residual, pixel* recon, int16_t* reconqt, pixel *reconipred, int stride, int strideqt, int strideipred);<br>
+void x265_calcRecons16_sse4(pixel* pred, int16_t* residual, pixel* recon, int16_t* reconqt, pixel *reconipred, int stride, int strideqt, int strideipred);<br>
+void x265_calcRecons32_sse4(pixel* pred, int16_t* residual, pixel* recon, int16_t* reconqt, pixel *reconipred, int stride, int strideqt, int strideipred);<br>
+void x265_calcRecons64_sse4(pixel* pred, int16_t* residual, pixel* recon, int16_t* reconqt, pixel *reconipred, int stride, int strideqt, int strideipred);<br>
+<br>
#endif // ifndef X265_I386_PIXEL_H<br>
diff -r d80ab2913b31 -r 8e22129119d6 source/test/pixelharness.cpp<br>
--- a/source/test/pixelharness.cpp Wed Nov 13 14:30:22 2013 +0530<br>
+++ b/source/test/pixelharness.cpp Thu Nov 14 16:45:03 2013 +0800<br>
@@ -286,8 +286,8 @@<br>
for (int i = 0; i < ITERS; i++)<br>
{<br>
int stride = STRIDE;<br>
+ ref(pbuf1 + j, sbuf1 + j, ref_reco, ref_recq, ref_pred, stride, stride, stride);<br>
opt(pbuf1 + j, sbuf1 + j, opt_reco, opt_recq, opt_pred, stride, stride, stride);<br>
- ref(pbuf1 + j, sbuf1 + j, ref_reco, ref_recq, ref_pred, stride, stride, stride);<br>
<br>
if (memcmp(ref_recq, opt_recq, 64 * 64 * sizeof(int16_t)))<br>
return false;<br>
<br>
_______________________________________________<br>
x265-devel mailing list<br>
<a href="mailto:x265-devel@videolan.org">x265-devel@videolan.org</a><br>
<a href="https://mailman.videolan.org/listinfo/x265-devel" target="_blank">https://mailman.videolan.org/listinfo/x265-devel</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Steve Borho
</div></div>