[x265] [PATCH] asm: disable AVX2 version mbtree_propagate_cost to avoid output change

Min Chen chenm003 at 163.com
Tue Jan 19 12:30:46 CET 2016


# HG changeset patch
# User Min Chen <chenm003 at 163.com>
# Date 1453202938 -28800
# Node ID 765864c3c6f02e2a3ec426974de7df7bbec7de58
# Parent  792f6ead9c50673aafd588fc2fdc0802f59d21fc
asm: disable AVX2 version mbtree_propagate_cost to avoid output change
---
 source/common/x86/mc-a2.asm |   24 ++++++++++++------------
 1 files changed, 12 insertions(+), 12 deletions(-)

diff -r 792f6ead9c50 -r 765864c3c6f0 source/common/x86/mc-a2.asm
--- a/source/common/x86/mc-a2.asm	Thu Jan 14 13:35:36 2016 +0530
+++ b/source/common/x86/mc-a2.asm	Tue Jan 19 19:28:58 2016 +0800
@@ -1113,12 +1113,12 @@
     pmulld          xm0, xm2
     cvtdq2pd        m0, xm0
     cvtdq2pd        m1, xm1             ; prop
-%if cpuflag(avx2)
-    fmaddpd         m0, m0, m6, m1
-%else
+;%if cpuflag(avx2)
+;    fmaddpd         m0, m0, m6, m1
+;%else
     mulpd           m0, m6              ; intra*invq*fps_factor>>8
     addpd           m0, m1              ; prop + (intra*invq*fps_factor>>8)
-%endif
+;%endif
     cvtdq2pd        m1, xm2             ; intra
     psubd           xm2, xm3            ; intra - inter
     cvtdq2pd        m2, xm2             ; intra - inter
@@ -1155,12 +1155,12 @@
     pmulld          xm0, xm2
     cvtdq2pd        m0, xm0
     cvtdq2pd        m1, xm1             ; prop
-%if cpuflag(avx2)
-    fmaddpd         m0, m0, m6, m1
-%else
+;%if cpuflag(avx2)
+;    fmaddpd         m0, m0, m6, m1
+;%else
     mulpd           m0, m6              ; intra*invq*fps_factor>>8
     addpd           m0, m1              ; prop + (intra*invq*fps_factor>>8)
-%endif
+;%endif
     cvtdq2pd        m1, xm2             ; intra
     psubd           xm2, xm3            ; intra - inter
     cvtdq2pd        m2, xm2             ; intra - inter
@@ -1189,12 +1189,12 @@
     pmulld          xm0, xm2
     cvtdq2pd        m0, xm0
     cvtdq2pd        m1, xm1             ; prop
-%if cpuflag(avx2)
-    fmaddpd         m0, m0, m6, m1
-%else
+;%if cpuflag(avx2)
+;    fmaddpd         m0, m0, m6, m1
+;%else
     mulpd           m0, m6              ; intra*invq*fps_factor>>8
     addpd           m0, m1              ; prop + (intra*invq*fps_factor>>8)
-%endif
+;%endif
     cvtdq2pd        m1, xm2             ; intra
     psubd           xm2, xm3            ; intra - inter
     cvtdq2pd        m2, xm2             ; intra - inter



More information about the x265-devel mailing list