[FFmpeg-cvslog] x86inc: Simplify AUTO_REP_RET

Henrik Gramner git at videolan.org
Wed Feb 3 18:08:17 CET 2016


ffmpeg | branch: master | Henrik Gramner <henrik at gramner.com> | Mon Jan 18 00:21:49 2016 +0100| [fd6ecac38eb382d1ed41c2ceafa052a3eb6593fc] | committer: Anton Khirnov

x86inc: Simplify AUTO_REP_RET

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

Also fix an incorrect comment.

Signed-off-by: Anton Khirnov <anton at khirnov.net>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fd6ecac38eb382d1ed41c2ceafa052a3eb6593fc
---

 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 e971a0a..ff51a27 100644
--- a/libavutil/x86/x86inc.asm
+++ b/libavutil/x86/x86inc.asm
@@ -638,10 +638,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



More information about the ffmpeg-cvslog mailing list