<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><div>right</div><div> </div><div>same suggest on tab_Tm<br></div><pre><br>At 2015-03-17 12:47:40,aasaipriya@multicorewareinc.com wrote:
># HG changeset patch
># User Aasaipriya Chandran <aasaipriya@multicorewareinc.com>
># Date 1426567653 -19800
>#      Tue Mar 17 10:17:33 2015 +0530
># Node ID 23f703db6aabbea3110a36336880a3f1d45c0b1a
># Parent  e1d8be8ba9ee223b977f0ae1cb9768af5f7d86d4
>asm: luma_hpp[12x16] avx2 - improved 2899c->1808c
>
>diff -r e1d8be8ba9ee -r 23f703db6aab source/common/x86/asm-primitives.cpp
>--- a/source/common/x86/asm-primitives.cpp     Tue Mar 17 10:14:46 2015 +0530
>+++ b/source/common/x86/asm-primitives.cpp     Tue Mar 17 10:17:33 2015 +0530
>@@ -1568,6 +1568,7 @@
>         p.pu[LUMA_48x64].luma_hpp = x265_interp_8tap_horiz_pp_48x64_avx2;

>         p.pu[LUMA_24x32].luma_hpp = x265_interp_8tap_horiz_pp_24x32_avx2;
>+        p.pu[LUMA_12x16].luma_hpp = x265_interp_8tap_horiz_pp_12x16_avx2;

>         p.pu[LUMA_4x4].luma_hps = x265_interp_8tap_horiz_ps_4x4_avx2;
>         p.pu[LUMA_4x8].luma_hps = x265_interp_8tap_horiz_ps_4x8_avx2;
>diff -r e1d8be8ba9ee -r 23f703db6aab source/common/x86/ipfilter8.asm
>--- a/source/common/x86/ipfilter8.asm  Tue Mar 17 10:14:46 2015 +0530
>+++ b/source/common/x86/ipfilter8.asm  Tue Mar 17 10:17:33 2015 +0530
>@@ -17573,3 +17573,80 @@
>     dec                         r4d
>     jnz                         .loop
>     RET
>+
>+INIT_YMM avx2
>+cglobal interp_8tap_horiz_pp_12x16, 4,6,8
>+    sub               r0,        3
>+    mov               r4d,       r4m
>+%ifdef PIC
>+    lea               r5,        [tab_LumaCoeff]
>+    vpbroadcastd      m0,        [r5 + r4 * 8]
>+    vpbroadcastd      m1,        [r5 + r4 * 8 + 4]
>+%else
>+    vpbroadcastd      m0,         [tab_LumaCoeff + r4 * 8]
>+    vpbroadcastd      m1,         [tab_LumaCoeff + r4 * 8 + 4]
>+%endif
>+    movu              m3,         [tab_Tm + 16]
>+    vpbroadcastd      m7,         [pw_1]
>+
>+    ; register map
>+    ; m0 , m1 interpolate coeff
>+    ; m2 , m2  shuffle order table
>+    ; m7 - pw_1
>+
>+    mov               r4d,        8
>+.loop:
>+    ; Row 0
>+    vbroadcasti128    m4,         [r0]                        ;first 8 element
>+    pshufb            m5,         m4,     m3
>+    pshufb            m4,         [tab_Tm]
>+    pmaddubsw         m4,         m0
>+    pmaddubsw         m5,         m1
>+    paddw             m4,         m5
>+    pmaddwd           m4,         m7
>+
>+    vbroadcasti128    m5,         [r0 + 8]                    ; element 8 to 11
>+    pshufb            m6,         m5,     m3
>+    pshufb            m5,         [tab_Tm]
>+    pmaddubsw         m5,         m0
>+    pmaddubsw         m6,         m1
>+    paddw             m5,         m6
>+    pmaddwd           m5,         m7
>+
>+    packssdw          m4,         m5                          ; [17 16 15 14 07 06 05 04 13 12 11 10 03 02 01 00]
>+    pmulhrsw          m4,         [pw_512]
>+
>+    ;Row 1
>+    vbroadcasti128    m2,         [r0 + r1]
>+    pshufb            m5,         m2,     m3
>+    pshufb            m2,         [tab_Tm]
>+    pmaddubsw         m2,         m0
>+    pmaddubsw         m5,         m1
>+    paddw             m2,         m5
>+    pmaddwd           m2,         m7
>+
>+    vbroadcasti128    m5,         [r0 + r1 + 8]
>+    pshufb            m6,         m5,     m3
>+    pshufb            m5,         [tab_Tm]
>+    pmaddubsw         m5,         m0
>+    pmaddubsw         m6,         m1
>+    paddw             m5,         m6
>+    pmaddwd           m5,         m7
>+
>+    packssdw          m2,         m5
>+    pmulhrsw          m2,         [pw_512]
>+    packuswb          m4,         m2
>+    vpermq            m4,         m4,     11011000b
>+    vextracti128      xm5,        m4,     1
>+    pshufd            xm4,        xm4,    11011000b
>+    pshufd            xm5,        xm5,    11011000b
>+
>+    movq              [r2],       xm4
>+    pextrd            [r2+8],     xm4,    2
>+    movq              [r2 + r3],  xm5
>+    pextrd            [r2+r3+8],  xm5,    2
>+    lea               r0,         [r0 + r1 * 2]
>+    lea               r2,         [r2 + r3 * 2]
>+    dec               r4d
>+    jnz              .loop
>+    RET
>_______________________________________________
>x265-devel mailing list
>x265-devel@videolan.org
>https://mailman.videolan.org/listinfo/x265-devel
</pre></div>