Mercurial > hg > openttd
changeset 11895:e2916842309d draft
(svn r16295) -Fix: ICC defined __GNUC__ but does not define __builtin_bswap32, so fall back to the default swap method for ICC.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Wed, 13 May 2009 16:51:17 +0000 |
parents | f4687a836df1 |
children | 710a538863de |
files | src/core/bitmath_func.hpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/core/bitmath_func.hpp +++ b/src/core/bitmath_func.hpp @@ -318,7 +318,7 @@ */ 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