[x265] [PATCH 4 of 7] asm: intra_pred_ang4_6_sse2 improved ~3% 612.49 -> 592.50 with nits and tweaks

chen chenm003 at 163.com
Thu Apr 2 06:29:32 CEST 2015


 



At 2015-04-02 02:52:19,dtyx265 at gmail.com wrote:
># HG changeset patch
># User David T Yuen <dtyx265 at gmail.com>
># Date 1427912953 25200
># Node ID 25841da128d711bdabcb260bbc665ab97fd67baa
># Parent  fc6b5f8bbcc8283e5b4fd88d41b8c313b002a198
>asm: intra_pred_ang4_6_sse2 improved ~3% 612.49 -> 592.50 with nits and tweaks
>
>Changed r3 and r4 to r3d and r4d
>tweaked unpacking for performance
>
>diff -r fc6b5f8bbcc8 -r 25841da128d7 source/common/x86/intrapred8.asm
>--- a/source/common/x86/intrapred8.asm	Wed Apr 01 11:21:40 2015 -0700
>+++ b/source/common/x86/intrapred8.asm	Wed Apr 01 11:29:13 2015 -0700
>@@ -1460,16 +1460,15 @@
>     jmp         mangle(private_prefix %+ _ %+ intra_pred_ang4_3 %+ SUFFIX %+ .do_filter4x4)
> 
> cglobal intra_pred_ang4_6, 3,5,8
>-    xor         r4, r4
>-    inc         r4
>+    xor         r4d, r4d
>+    inc         r4d
>     cmp         r3m, byte 30
>-    mov         r3, 9
>-    cmove       r3, r4
>+    mov         r3d, 9
>+    cmove       r3d, r4d
> 
>     movh        m0, [r2 + r3]    ; [8 7 6 5 4 3 2 1]
>-    mova        m1, m0
>-    psrldq      m1, 1           ; [x 8 7 6 5 4 3 2]
>-    punpcklbw   m0, m1          ; [x 8 8 7 7 6 6 5 5 4 4 3 3 2 2 1]
>+    punpcklbw   m0, m0
>+    psrldq      m0, 1           ; [x 8 7 6 5 4 3 2]
comment mistake
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20150402/b7317c1b/attachment.html>


More information about the x265-devel mailing list