diff options
author | Henrik Gramner <henrik@gramner.com> | 2017-04-20 19:16:51 +0200 |
---|---|---|
committer | James Darnley <jdarnley@obe.tv> | 2017-06-09 13:43:00 +0200 |
commit | 88dcdfad0964a954b6f185936c023dfd1c5d5e99 (patch) | |
tree | 03992eae070e4e39ceb287c8555ff09a81980db1 | |
parent | 406e0ddc0b9b5cc3867ee65924ab211be3770ed6 (diff) | |
download | ffmpeg-streaming-88dcdfad0964a954b6f185936c023dfd1c5d5e99.zip ffmpeg-streaming-88dcdfad0964a954b6f185936c023dfd1c5d5e99.tar.gz |
x86inc: Make REP_RET identical to RET in SSSE3+ functions
There's no point in emitting a rep prefix before ret on modern CPUs.
-rw-r--r-- | libavutil/x86/x86inc.asm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/x86/x86inc.asm b/libavutil/x86/x86inc.asm index c28bc8d..bb1b1be 100644 --- a/libavutil/x86/x86inc.asm +++ b/libavutil/x86/x86inc.asm @@ -636,7 +636,7 @@ DECLARE_ARG 7, 8, 9, 10, 11, 12, 13, 14 ; We can automatically detect "follows a branch", but not a branch target. ; (SSSE3 is a sufficient condition to know that your cpu doesn't have this problem.) %macro REP_RET 0 - %if has_epilogue + %if has_epilogue || cpuflag(ssse3) RET %else rep ret |