diff options
author | James Almer <jamrial@gmail.com> | 2015-07-18 18:29:44 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2015-07-18 20:48:09 -0300 |
commit | bd487645327b207e27aa76b4b30319e1a20d4731 (patch) | |
tree | 33876faea411ac109be11f43aee59664d43291e9 /libavutil | |
parent | 78347549a4449ebac65add844b93a53bbbf559da (diff) | |
download | ffmpeg-bd487645327b207e27aa76b4b30319e1a20d4731.tar.gz |
avutil/x86/bswap: force inline asm versions with ICC
Recent ICC versions that define GCC as >= 4.5 (like ICC 13) apparently can't
optimize the generic C versions of av_bswap*() on their own.
Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/x86/bswap.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/x86/bswap.h b/libavutil/x86/bswap.h index 08e2a62520..67f1747af6 100644 --- a/libavutil/x86/bswap.h +++ b/libavutil/x86/bswap.h @@ -39,7 +39,7 @@ static av_always_inline av_const unsigned av_bswap16(unsigned x) } #endif /* !AV_GCC_VERSION_AT_LEAST(4,1) */ -#if !AV_GCC_VERSION_AT_LEAST(4,5) +#if !AV_GCC_VERSION_AT_LEAST(4,5) || defined(__INTEL_COMPILER) #define av_bswap32 av_bswap32 static av_always_inline av_const uint32_t av_bswap32(uint32_t x) { |