bit_util: Don't use __builtin_clz on s390x
There's an optimizer bug upstream that results in test failures; reported at https://bugzilla.redhat.com/show_bug.cgi?id=1619354. This works around the failure reported at https://github.com/jemalloc/jemalloc/issues/1307.
This commit is contained in:
parent
88771fa013
commit
115ce93562
@ -93,7 +93,7 @@ pow2_ceil_u64(uint64_t x) {
|
||||
|
||||
BIT_UTIL_INLINE uint32_t
|
||||
pow2_ceil_u32(uint32_t x) {
|
||||
#if (defined(__i386__) || defined(JEMALLOC_HAVE_BUILTIN_CLZ))
|
||||
#if ((defined(__i386__) || defined(JEMALLOC_HAVE_BUILTIN_CLZ)) && (!defined(__s390__)))
|
||||
if(unlikely(x <= 1)) {
|
||||
return x;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user