summaryrefslogtreecommitdiff
path: root/ext/bigdecimal
diff options
context:
space:
mode:
authorKenta Murata <mrkn@mrkn.jp>2021-01-02 12:06:14 +0900
committerKenta Murata <mrkn@mrkn.jp>2021-01-02 12:06:14 +0900
commita6bbba1135ffc6f97bbffbfbc98f80dc9d4a8a50 (patch)
treeb2c72b548dd95ca1e440319e58884c59b74a04b9 /ext/bigdecimal
parent4182035e273ecd042f5f071cfd6626920e1d28ed (diff)
Avoid to use __builtin_clzl in SPARC Solaris
Diffstat (limited to 'ext/bigdecimal')
-rw-r--r--ext/bigdecimal/bits.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bigdecimal/bits.h b/ext/bigdecimal/bits.h
index ea9cb10..f39e83b 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;
}