summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTom Stellard <[email protected]>2014-02-20 07:31:16 -0800
committerTom Stellard <[email protected]>2014-02-24 12:56:26 -0800
commitf8ba0f55d32274eb2fe0e0060658dc2284569dd4 (patch)
tree63d6913d812f2d209006f364b5244a9f152e5311 /src
parent73b46136b0ba20f7f84abdadad895111a4c37166 (diff)
configure.ac: Use AX_GCC_BUILTIN to check availability of __builtin_bswap32 v2
v2: - Remove unnecessary AC_SUBST Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/auxiliary/util/u_math.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_math.h b/src/gallium/auxiliary/util/u_math.h
index b5e06630a60..b0f0e3dbb8e 100644
--- a/src/gallium/auxiliary/util/u_math.h
+++ b/src/gallium/auxiliary/util/u_math.h
@@ -731,7 +731,8 @@ util_bitcount(unsigned n)
static INLINE uint32_t
util_bswap32(uint32_t n)
{
-#if defined(PIPE_CC_GCC) && (PIPE_CC_GCC_VERSION >= 403)
+/* We need the gcc version checks for non-autoconf build system */
+#if defined(HAVE___BUILTIN_BSWAP32) || (defined(PIPE_CC_GCC) && (PIPE_CC_GCC_VERSION >= 403))
return __builtin_bswap32(n);
#else
return (n >> 24) |