From a6bbba1135ffc6f97bbffbfbc98f80dc9d4a8a50 Mon Sep 17 00:00:00 2001 From: Kenta Murata Date: Sat, 2 Jan 2021 12:06:14 +0900 Subject: [PATCH] Avoid to use __builtin_clzl in SPARC Solaris --- ext/bigdecimal/bits.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/bigdecimal/bits.h b/ext/bigdecimal/bits.h index ea9cb10833..f39e83b4a8 100644 --- a/ext/bigdecimal/bits.h +++ b/ext/bigdecimal/bits.h @@ -87,7 +87,7 @@ nlz_int64(uint64_t x) unsigned long r; return _BitScanReverse64(&r, x) ? (63u - (unsigned int)r) : 64; -#elif __has_builtin(__builtin_clzl) +#elif __has_builtin(__builtin_clzl) && !(defined(__sun) && defined(__sparc)) if (x == 0) { return 64; }