gallium/util: __builtin_bswap32() is in only gcc 4.3 or later
This commit is contained in:
@@ -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) |
|
||||
|
||||
Reference in New Issue
Block a user