[x265] [PATCH 1 of 2] asm: fix output mistake in pixel_ssd_ss_4xN

Min Chen chenm003 at 163.com
Fri Sep 5 04:30:10 CEST 2014


# HG changeset patch
# User Min Chen <chenm003 at 163.com>
# Date 1409884180 25200
# Node ID 2d5c114a6fdb74dcefb3d017f6575598d5c7813c
# Parent  93db2f53fe573537bcd4eb53ca3cdb69af557eb5
asm: fix output mistake in pixel_ssd_ss_4xN

diff -r 93db2f53fe57 -r 2d5c114a6fdb source/common/x86/ssd-a.asm
--- a/source/common/x86/ssd-a.asm	Thu Sep 04 16:42:24 2014 -0700
+++ b/source/common/x86/ssd-a.asm	Thu Sep 04 19:29:40 2014 -0700
@@ -434,7 +434,16 @@
     dec    r4d
     jg .loop
 %endif
-    HADDD     m0, m1
+%if %1 == 4
+  %if notcpuflag(ssse3)
+    pshufd   m1, m0, 1
+    paddd    m0, m1
+  %else
+    phaddd   m0, m0
+  %endif
+%else
+    HADDD    m0, m1
+%endif
     movd     eax, m0
     RET
 %endmacro



More information about the x265-devel mailing list