mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Avoid to use __builtin_clzl in SPARC Solaris
This commit is contained in:
parent
4182035e27
commit
a6bbba1135
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ nlz_int64(uint64_t x)
|
||||||
unsigned long r;
|
unsigned long r;
|
||||||
return _BitScanReverse64(&r, x) ? (63u - (unsigned int)r) : 64;
|
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) {
|
if (x == 0) {
|
||||||
return 64;
|
return 64;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue