diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2012-05-14 05:04:11 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2012-05-14 05:04:11 -0700 |
commit | c044d724dc0fb61ba194d853b266f4a4dbd1329d (patch) | |
tree | f15a8ff1f4178ca15b665775cf0be6f2c2a46a4c /sysdeps/ieee754/dbl-64 | |
parent | 2523c62bec65ea0c17b1893ffdaba7ac3cff1e31 (diff) | |
download | glibc-c044d724dc0fb61ba194d853b266f4a4dbd1329d.tar glibc-c044d724dc0fb61ba194d853b266f4a4dbd1329d.tar.gz glibc-c044d724dc0fb61ba194d853b266f4a4dbd1329d.tar.bz2 glibc-c044d724dc0fb61ba194d853b266f4a4dbd1329d.zip |
Use __builtin_clzll on int64 in __logb
Diffstat (limited to 'sysdeps/ieee754/dbl-64')
-rw-r--r-- | sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c b/sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c index 474eeef36b..185dd05be3 100644 --- a/sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c +++ b/sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c @@ -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); |