[FFmpeg-devel] [PATCH 5/7] x86inc: Simplify AUTO_REP_RET

Henrik Gramner henrik at gramner.com
Sun Jan 17 23:59:12 CET 2016


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

Also fix an incorrect comment.
---
 libavutil/x86/x86inc.asm | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/libavutil/x86/x86inc.asm b/libavutil/x86/x86inc.asm
index f2635ea..3ad149c 100644
--- a/libavutil/x86/x86inc.asm
+++ b/libavutil/x86/x86inc.asm
@@ -637,10 +637,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
-- 
1.9.1



More information about the ffmpeg-devel mailing list