1
0
Fork 0
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:
Kenta Murata 2021-01-02 12:06:14 +09:00
parent 4182035e27
commit a6bbba1135
No known key found for this signature in database
GPG key ID: CEFE8AFB6081B062

View file

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