mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-27 02:20:38 +02:00
gallium/util: __builtin_bswap32() is in only gcc 4.3 or later
This commit is contained in:
parent
f6d5e58427
commit
144afacc6f
1 changed files with 1 additions and 1 deletions
|
|
@ -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) |
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue