[x265] [PATCH 08 of 20] x86inc: Simplify AUTO_REP_RET

vignesh at multicorewareinc.com vignesh at multicorewareinc.com
Mon Jun 12 07:37:50 CEST 2017


# HG changeset patch
# User Vignesh Vijayakumar
# Date 1496743071 -19800
#      Tue Jun 06 15:27:51 2017 +0530
# Node ID bad80336881e1aff558c055ccdcd10f23cbb819f
# Parent  cda41a81b2f657dd25c51e38195a13b93405a6db
x86inc: Simplify AUTO_REP_RET

cpuflags is never undefined any more, it's set to 0 instead.

diff -r cda41a81b2f6 -r bad80336881e source/common/x86/x86inc.asm
--- a/source/common/x86/x86inc.asm	Tue Jun 06 15:25:56 2017 +0530
+++ b/source/common/x86/x86inc.asm	Tue Jun 06 15:27:51 2017 +0530
@@ -618,10 +618,8 @@
 
 %define last_branch_adr $$
 %macro AUTO_REP_RET 0
-    %ifndef cpuflags
-        times ((last_branch_adr-$)>>31)+1 rep ; times 1 iff $ != last_branch_adr.
-    %elif notcpuflag(ssse3)
-        times ((last_branch_adr-$)>>31)+1 rep
+    %if notcpuflag(ssse3)
+        times ((last_branch_adr-$)>>31)+1 rep ; times 1 iff $ == last_branch_adr.
     %endif
     ret
 %endmacro


More information about the x265-devel mailing list