gallium/util: __builtin_bswap32() is in only gcc 4.3 or later
authorBrian Paul <brianp@vmware.com>
Wed, 2 Dec 2009 16:23:15 +0000 (09:23 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 2 Dec 2009 16:23:15 +0000 (09:23 -0700)
src/gallium/auxiliary/util/u_math.h

index a5cd6574c0ec6c0abb49926932b061f41eb1f06f..b76592d1ec61d2d99569d86a1d3c5c89231add20 100644 (file)
@@ -520,7 +520,7 @@ util_bitcount(unsigned n)
 static INLINE uint32_t
 util_bswap32(uint32_t n)
 {
-#if defined(PIPE_CC_GCC)
+#if defined(PIPE_CC_GCC) && (PIPE_CC_GCC_VERSION >= 403)
    return __builtin_bswap32(n);
 #else
    return (n >> 24) |