From 3d3b5256f027a58cbbc004057659f9e5ec38c284 Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 13 May 2009 16:51:17 +0000 Subject: (svn r16295) -Fix: ICC defined __GNUC__ but does not define __builtin_bswap32, so fall back to the default swap method for ICC. --- src/core/bitmath_func.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/bitmath_func.hpp b/src/core/bitmath_func.hpp index 27168e821..f32aee67c 100644 --- a/src/core/bitmath_func.hpp +++ b/src/core/bitmath_func.hpp @@ -318,7 +318,7 @@ static FORCEINLINE T ROR(const T x, const uint8 n) */ static FORCEINLINE uint32 BSWAP32(uint32 x) { -#if defined(__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && __GNUC_MINOR__ >= 3)) +#if !defined(__ICC) && defined(__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && __GNUC_MINOR__ >= 3)) /* GCC >= 4.3 provides a builtin, resulting in faster code */ return (uint32)__builtin_bswap32((int32)x); #else -- cgit v1.2.3-70-g09d2