From: Henrik Gramner Date: Thu, 15 Oct 2015 15:42:49 +0000 (+0200) Subject: x86inc: Simplify AUTO_REP_RET X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=5c3d473a966e4b013759097fb98cd4a9cb5a34f5;p=x264 x86inc: Simplify AUTO_REP_RET cpuflags is never undefined any more, it's set to 0 instead. Also fix an incorrect comment. --- diff --git a/common/x86/x86inc.asm b/common/x86/x86inc.asm index 51e6995d..71629db4 100644 --- a/common/x86/x86inc.asm +++ b/common/x86/x86inc.asm @@ -625,10 +625,8 @@ DECLARE_ARG 7, 8, 9, 10, 11, 12, 13, 14 %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