<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><DIV>>diff -r 80b63c3ee144 -r bb6278b7d332 source/common/x86/intrapred8.asm<BR>>--- a/source/common/x86/intrapred8.asm Thu Jan 09 12:50:16 2014 +0550<BR>>+++ b/source/common/x86/intrapred8.asm Fri Jan 10 16:23:59 2014 +0530<BR>>@@ -1106,7 +1106,7 @@<BR>> movd [r0], m0<BR>> RET<BR>> ;-----------------------------------------------------------------------------<BR>>-; void intraPredAng(pixel* dst, intptr_t dstStride, pixel *refLeft, pixel *refAbove, int dirMode, int bFilter)<BR>>+; void intraPredAng8(pixel* dst, intptr_t dstStride, pixel *refLeft, pixel *refAbove, int dirMode, int bFilter)<BR>> ;-----------------------------------------------------------------------------<BR>> INIT_XMM ssse3<BR>> cglobal intra_pred_ang8_2, 3,5,2<BR>>@@ -1133,6 +1133,98 @@<BR>> movh [r0 + r4], m1<BR>> RET<BR>> <BR>>+INIT_XMM sse4<BR>>+cglobal intra_pred_ang8_3, 3,5,8<BR>>+ cmp r4m, byte 33<BR>>+ cmove r2, r3mp<BR>>+ lea r3, [ang_table + 20 * 16]<BR>>+<BR>>+ movu m0, [r2 + 1] ; [16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1]<BR>>+ palignr m1, m0, 1 ; [x 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2]<BR>>+<BR>>+ punpckhbw m2, m0, m1 ; [x 16 16 15 15 14 14 13 13 12 12 11 11 10 10 9]<BR>>+ punpcklbw m0, m1 ; [9 8 8 7 7 6 6 5 5 4 4 3 3 2 2 1]<BR>>+ palignr m1, m2, m0, 2 ; [10 9 9 8 8 7 7 6 6 5 5 4 4 3 3 2]<BR>>+<BR>>+ movu m3, [r3 + 6 * 16] ; [26]<BR>>+ movu m4, [r3] ; [20]<BR>>+<BR>>+ pmaddubsw m6, m0, m3<BR>>+ pmulhrsw m6, [pw_1024]<BR>>+ pmaddubsw m7, m1, m4<BR>>+ pmulhrsw m7, [pw_1024]<BR>>+ packuswb m4, m6, m7<BR>>+<BR>>+ palignr m1, m2, m0, 4 ; [11 10 10 9 9 8 8 7 7 6 6 5 5 4 4 3]<BR>>+<BR>>+ movu m3, [r3 - 6 * 16] ; [14]<BR>>+ pmaddubsw m6, m1, m3<BR>you didn't need m1 anymore, why use a reg-reg copy here and below</DIV>
<DIV> </DIV>
<DIV>>+ pmulhrsw m6, [pw_1024]<BR>>+<BR>>+ palignr m1, m2, m0, 6 ; [12 11 11 10 10 9 9 8 8 7 7 6 6 5 5 4]<BR>>+<BR>>+ movu m3, [r3 - 12 * 16] ; [ 8]<BR>>+ pmaddubsw m7, m1, m3<BR>>+ pmulhrsw m7, [pw_1024]<BR>>+ packuswb m5, m6, m7<BR>>+<BR>>+ palignr m1, m2, m0, 8 ; [13 12 12 11 11 10 10 9 9 8 8 7 7 6 6 5]<BR>>+<BR>>+ movu m3, [r3 - 18 * 16] ; [ 2]<BR>>+ pmaddubsw m6, m1, m3<BR>>+ pmulhrsw m6, [pw_1024]<BR>>+<BR>>+ movu m3, [r3 + 8 * 16] ; [28]<BR>>+ pmaddubsw m7, m1, m3<BR>>+ pmulhrsw m7, [pw_1024]<BR>>+ packuswb m6, m7<BR>>+<BR>>+ palignr m1, m2, m0, 10 ; [14 13 13 12 12 11 11 10 10 9 9 8 8 7 7 6]<BR>>+<BR>>+ movu m3, [r3 + 2 * 16] ; [22]<BR>>+ pmaddubsw m7, m1, m3<BR>>+ pmulhrsw m7, [pw_1024]<BR>>+<BR>>+ palignr m1, m2, m0, 12 ; [15 14 14 13 13 12 12 11 11 10 10 9 9 8 8 7]<BR>>+<BR>>+ movu m3, [r3 - 4 * 16] ; [16]<BR>>+ pmaddubsw m0, m1, m3<BR>>+ pmulhrsw m0, [pw_1024]<BR>>+ packuswb m7, m0<BR>>+<BR>>+ jz .store<BR>>+<BR>>+ ; transpose 8x8<BR>>+ punpckhbw m0, m4, m5<BR>>+ punpcklbw m4, m5<BR>>+ punpckhbw m1, m4, m0<BR>>+ punpcklbw m4, m0<BR>>+<BR>>+ punpckhbw m0, m6, m7<BR>>+ punpcklbw m6, m7<BR>>+ punpckhbw m7, m6, m0<BR>>+ punpcklbw m6, m0<BR>>+<BR>>+ punpckhdq m5, m4, m6<BR>>+ punpckldq m4, m6<BR>>+ punpckldq m6, m1, m7<BR>>+ punpckhdq m1, m7<BR>>+ mova m7, m1<BR>>+<BR>>+.store:<BR>>+ lea r4, [r1 * 3]<BR>>+ movh [r0], m4<BR>>+ movhps [r0 + r1], m4<BR>>+ movh [r0 + r1 * 2], m5<BR>>+ movhps [r0 + r4], m5<BR>>+ lea r0, [r0 + r1 * 4]<BR>>+ movh [r0], m6<BR>>+ movhps [r0 + r1], m6<BR>>+ movh [r0 + r1 * 2], m7<BR>>+ movhps [r0 + r4], m7<BR>>+<BR>>+ RET<BR>>+<BR>> ;-----------------------------------------------------------------------------<BR>> ; void intraPredAng16(pixel* dst, intptr_t dstStride, pixel *refLeft, pixel *refAbove, int dirMode, int bFilter)<BR>> ;-----------------------------------------------------------------------------<BR>>_______________________________________________<BR>>x265-devel mailing list<BR>>x265-devel@videolan.org<BR>>https://mailman.videolan.org/listinfo/x265-devel<BR></DIV></div>