Changeset - r11890:4c16f6226852
[Not reviewed]
master
0 1 0
rubidium - 15 years ago 2009-05-13 16:51:17
rubidium@openttd.org
(svn r16295) -Fix: ICC defined __GNUC__ but does not define __builtin_bswap32, so fall back to the default swap method for ICC.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/core/bitmath_func.hpp
Show inline comments
 
@@ -318,7 +318,7 @@ static FORCEINLINE T ROR(const T x, cons
 
	 */
 
	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
0 comments (0 inline, 0 general)