Fixed builtin CLZ being used incorrectly

This commit is contained in:
Cleroth 2017-06-16 21:39:01 +02:00 committed by GitHub
parent eafc6a3292
commit e5a3206972

View File

@ -288,11 +288,11 @@ typedef __int64 intmax_t;
#endif #endif
#if FMT_GCC_VERSION >= 400 || FMT_HAS_BUILTIN(__builtin_clz) #if FMT_GCC_VERSION >= 400 || FMT_HAS_BUILTIN(__builtin_clz)
# define FMT_BUILTIN_CLZ(n) __builtin_clz(n) # define FMT_BUILTIN_CLZ(n) (31 - __builtin_clz(n))
#endif #endif
#if FMT_GCC_VERSION >= 400 || FMT_HAS_BUILTIN(__builtin_clzll) #if FMT_GCC_VERSION >= 400 || FMT_HAS_BUILTIN(__builtin_clzll)
# define FMT_BUILTIN_CLZLL(n) __builtin_clzll(n) # define FMT_BUILTIN_CLZLL(n) (63 - __builtin_clzll(n))
#endif #endif
// Some compilers masquerade as both MSVC and GCC-likes or // Some compilers masquerade as both MSVC and GCC-likes or