mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-23 03:10:05 +00:00
Use __builtin_clzll on int64 in __logb
This commit is contained in:
parent
2523c62bec
commit
c044d724dc
@ -1,3 +1,8 @@
|
||||
2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
|
||||
__builtin_clzl with __builtin_clzll.
|
||||
|
||||
2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
[BZ #14104]
|
||||
|
@ -36,7 +36,7 @@ __logb (double x)
|
||||
return x * x;
|
||||
if (__builtin_expect (ex == 0, 0))
|
||||
{
|
||||
int m = (ix == 0) ? 0 : __builtin_clzl (ix);
|
||||
int m = (ix == 0) ? 0 : __builtin_clzll (ix);
|
||||
return -1022.0 + (double)(11 -m);
|
||||
}
|
||||
return (double) (ex - 1023);
|
||||
|
Loading…
Reference in New Issue
Block a user