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:
Rajeev Misra 2018-08-23 20:58:48 -07:00 committed by David Goldblatt
parent 88771fa013
commit 115ce93562

View File

@ -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;
}