[x265] [PATCH] asm: fix output change due to overflow in mbtree_propagate_cost 10bit asm

chen chenm003 at 163.com
Wed Nov 18 16:43:23 CET 2015


I have do the patch like this, I remove all of PMADDWD to avoid bug in future


At 2015-11-18 14:58:26,dnyaneshwar at multicorewareinc.com wrote:
># HG changeset patch
># User Dnyaneshwar G <dnyaneshwar at multicorewareinc.com>
># Date 1447828315 -19800
>#      Wed Nov 18 12:01:55 2015 +0530
># Node ID 58c177d2e182e5b633670024c567b535eb49614f
># Parent  e8f9a60d4cd9e73c9f2baf05c2ccda5af1892b46
>asm: fix output change due to overflow in mbtree_propagate_cost 10bit asm
>
>diff -r e8f9a60d4cd9 -r 58c177d2e182 source/common/x86/mc-a2.asm
>--- a/source/common/x86/mc-a2.asm	Mon Nov 16 16:44:33 2015 +0530
>+++ b/source/common/x86/mc-a2.asm	Wed Nov 18 12:01:55 2015 +0530
>@@ -1019,7 +1019,7 @@
>     por         m3, m1
> 
>     movd        m1, [r1+r5*2]       ; prop
>-%if (BIT_DEPTH <= 10)
>+%if (BIT_DEPTH <= 8)
>     pmaddwd     m0, m2
> %else
>     punpckldq   m2, m2
>@@ -1072,7 +1072,7 @@
>     por         m3, m1
> 
>     movd        m1, [r1+r5*2]       ; prop
>-%if (BIT_DEPTH <= 10)
>+%if (BIT_DEPTH <= 8)
>     pmaddwd     m0, m2
> %else
>     punpckldq   m2, m2              ; DWORD [- 1 - 0]
>@@ -1120,7 +1120,7 @@
>     pminsd          xm3, xm2
> 
>     pmovzxwd        xm1, [r1+r5*2]      ; prop
>-%if (BIT_DEPTH <= 10)
>+%if (BIT_DEPTH <= 8)
>     pmaddwd         xm0, xm2
> %else
>     pmulld          xm0, xm2
>@@ -1166,7 +1166,7 @@
> 
>     movd            xm1, [r1+r5*2]      ; prop
>     pmovzxwd        xm1, xm1
>-%if (BIT_DEPTH <= 10)
>+%if (BIT_DEPTH <= 8)
>     pmaddwd         xm0, xm2
> %else
>     pmulld          xm0, xm2
>@@ -1204,7 +1204,7 @@
> 
>     movzx           r6d, word [r1+r5*2] ; prop
>     movd            xm1, r6d
>-%if (BIT_DEPTH <= 10)
>+%if (BIT_DEPTH <= 8)
>     pmaddwd         xm0, xm2
> %else
>     pmulld          xm0, xm2
>_______________________________________________
>x265-devel mailing list
>x265-devel at videolan.org
>https://mailman.videolan.org/listinfo/x265-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20151118/e30f9c2a/attachment.html>


More information about the x265-devel mailing list