From bd487645327b207e27aa76b4b30319e1a20d4731 Mon Sep 17 00:00:00 2001 From: James Almer Date: Sat, 18 Jul 2015 18:29:44 -0300 Subject: [PATCH] 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 Signed-off-by: James Almer --- libavutil/x86/bswap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {