[x265] [PATCH] asm: HADDD optimization for XOP

murugan at multicorewareinc.com murugan at multicorewareinc.com
Thu Apr 10 10:25:40 CEST 2014


# HG changeset patch
# User Murugan Vairavel <murugan at multicorewareinc.com>
# Date 1397118224 -19800
#      Thu Apr 10 13:53:44 2014 +0530
# Node ID 95b1c6053db5b4898df956b830b8fe2b4ed778e4
# Parent  83ccf2f1453ffd91c9fd8b84b72e3d3daacba6c6
asm: HADDD optimization for XOP

diff -r 83ccf2f1453f -r 95b1c6053db5 source/common/x86/x86util.asm
--- a/source/common/x86/x86util.asm	Thu Apr 10 11:17:46 2014 +0530
+++ b/source/common/x86/x86util.asm	Thu Apr 10 13:53:44 2014 +0530
@@ -298,11 +298,16 @@
     paddd   %1, %2
 %endif
 %if mmsize >= 16
+%if cpuflag(xop) && sizeof%1 == 16
+    vphadddq %1, %1
+%endif
     movhlps %2, %1
     paddd   %1, %2
 %endif
+%if notcpuflag(xop)
     PSHUFLW %2, %1, q0032
     paddd   %1, %2
+%endif
 %undef %1
 %undef %2
 %endmacro


More information about the x265-devel mailing list