mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-02 02:30:58 +00:00
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>
This commit is contained in:
parent
78347549a4
commit
bd48764532
@ -39,7 +39,7 @@ static av_always_inline av_const unsigned av_bswap16(unsigned x)
|
|||||||
}
|
}
|
||||||
#endif /* !AV_GCC_VERSION_AT_LEAST(4,1) */
|
#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
|
#define av_bswap32 av_bswap32
|
||||||
static av_always_inline av_const uint32_t av_bswap32(uint32_t x)
|
static av_always_inline av_const uint32_t av_bswap32(uint32_t x)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user