<div dir="ltr">Ignore this patch. I will resend it<div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Dec 9, 2013 at 2:44 PM, 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"><div style="line-height:1.7;font-size:14px;font-family:arial"><div><div class="im">>diff -r 5bb46ef28bc5 -r 02b888130ed4 source/common/x86/pixeladd8.asm<br>
>--- a/source/common/x86/pixeladd8.asm Mon Dec 09 10:59:45 2013 +0800<br>>+++ b/source/common/x86/pixeladd8.asm Mon Dec 09 12:13:29 2013 +0530<br>>@@ -364,6 +364,75 @@<br>> ; void pixel_add_ps_%1x%2(pixel *dest, intptr_t destride, pixel *src0, int16_t *scr1, intptr_t srcStride0, intptr_t srcStride1)<br>
> ;-----------------------------------------------------------------------------<br>> %macro PIXEL_ADD_PS_W6_H4 2<br>>+%if HIGH_BIT_DEPTH<br>>+INIT_XMM sse2<br>>+cglobal pixel_add_ps_%1x%2, 6, 7, 6, dest, destride, src0, scr1, srcStride0, srcStride1<br>
>+ mov r6d, %2/4<br>>+ add r1, r1<br>>+ add r4, r4<br>>+ add r5, r5<br>>+ pxor m4, m4<br>>+ mova m5, [pw_pixel_max]<br>>+.loop<br>>+ movu m0, [r2]<br>
>+ movu m1, [r3]<br>>+ mova m2, m0<br>>+ mova m3, m1<br>>+ punpckhqdq m2, m2<br>>+ punpckhqdq m3, m3<br></div>punpckhqdq m2, m0, m0</div>
<div>write like this will more performance on AVX, of course, you don't need it, see below</div><div class="im">
<div> </div>
<div>>+ paddw m0, m1<br>>+ paddw m2, m3</div>
</div><div>the latest paddw can process 8 pixels, so you don't need m2m3</div><div class="im">
<div><br>>+ CLIPW m0, m4, m5<br>>+ CLIPW m2, m4, m5<br>>+<br>>+ movh [r0], m0<br>>+ movd [r0 + 8], m2</div>
</div><div>SSE4: pextrd [r0+8],m0,2 </div>
<div>SSE2: pshufd m0, 2 + movd</div>
<div><br> </div></div><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>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">With Regards,<div><br></div><div>Murugan. V</div><div>+919659287478</div></div>
</div>