summaryrefslogtreecommitdiff
path: root/libavutil/x86
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2015-07-18 18:29:44 -0300
committerJames Almer <jamrial@gmail.com>2015-07-18 20:48:09 -0300
commitbd487645327b207e27aa76b4b30319e1a20d4731 (patch)
tree33876faea411ac109be11f43aee59664d43291e9 /libavutil/x86
parent78347549a4449ebac65add844b93a53bbbf559da (diff)
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/x86')
-rw-r--r--libavutil/x86/bswap.h2
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)
{