<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><div>The patch combin 8x8 and 16x16 and need modify many positions.</div><div>So I write a new demo for you, please reference and modify it</div><div> </div><div>Cycles 640c -> 448c</div><div> </div><div> </div><div>INIT_YMM avx2<br>cglobal interp_8tap_horiz_pp_8x8, 4,6,8<br> sub r0, 3<br> mov r4d, r4m</div><div>%ifdef PIC<br> lea r5, [tab_LumaCoeff]<br> vpbroadcastd m0, [r5 + r4 * 8]<br> vpbroadcastd m1, [r5 + r4 * 8 + 4]<br>%else<br> vpbroadcastd m0, [tab_LumaCoeff + r4 * 8]<br> vpbroadcastd m1, [tab_LumaCoeff + r4 * 8 + 4]<br>%endif</div><div> ; use this table to avoid phadd<br> mova m2, [tab_Tm]<br> movu m3, [tab_Tm + 16]<br> vpbroadcastd m7, [pw_1]</div><div> ; register map<br> ; m0 \ interpolate coeff<br> ; m1 /<br> ;<br> ; m2 \ shuffle order table<br> ; m3 /<br> ;<br> ; m7 - pw_1</div><div> mov r4d, 8/2<br>.loop:<br> ; Row 0<br> vbroadcasti128 m4, [r0] ; [x E D C B A 9 8 7 6 5 4 3 2 1 0]<br> pshufb m5, m4, m3<br> pshufb m4, m2<br> pmaddubsw m4, m0<br> pmaddubsw m5, m1<br> paddw m4, m5<br> pmaddwd m4, m7</div><div> ; Row 1<br> vbroadcasti128 m5, [r0 + r1] ; [x E D C B A 9 8 7 6 5 4 3 2 1 0]<br> pshufb m6, m5, m3<br> pshufb m5, m2<br> pmaddubsw m5, m0<br> pmaddubsw m6, m1<br> paddw m5, m6<br> pmaddwd m5, m7</div><div> packssdw m4, m5 ; [17 16 15 14 07 06 05 04 13 12 11 10 03 02 01 00]<br> pmulhrsw m4, [pw_512]<br> packuswb m4, m4</div><div> ; store<br> vpermq m4, m4, 11011000b<br> pshufd xm4, xm4, 11011000b<br> ;vextracti128 xm5, m4, 1<br> ;punpckldq xm4, xm5<br> movq [r2], xm4<br> movhps [r2 + r3], xm4</div><div> lea r0, [r0 + r1 * 2]<br> lea r2, [r2 + r3 * 2]<br> dec r4d<br> jnz .loop<br> RET<br></div><div id="divNeteaseMailCard"></div><div><br></div><pre><br>At 2014-11-11 20:12:54,aasaipriya@multicorewareinc.com wrote:
># HG changeset patch
># User maheshpittala
># Date 1415707607 -19800
># Tue Nov 11 17:36:47 2014 +0530
># Node ID c92edd8bf12b369b4da460241c9c1ca0fcd40932
># Parent 32513a4c3bd435757347e729dc14b5a1c1c6ceef
>Luma_hpp[16x16] Avx2 asm code
>
</pre></div>