ruby-changes:64709
From: Kenta <ko1@a...>
Date: Sat, 2 Jan 2021 12:07:50 +0900 (JST)
Subject: [ruby-changes:64709] a6bbba1135 (master): Avoid to use __builtin_clzl in SPARC Solaris
https://git.ruby-lang.org/ruby.git/commit/?id=a6bbba1135 From a6bbba1135ffc6f97bbffbfbc98f80dc9d4a8a50 Mon Sep 17 00:00:00 2001 From: Kenta Murata <mrkn@m...> Date: Sat, 2 Jan 2021 12:06:14 +0900 Subject: Avoid to use __builtin_clzl in SPARC Solaris 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) https://github.com/ruby/ruby/blob/trunk/ext/bigdecimal/bits.h#L87 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; } -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/