From: H.J. Lu Date: Mon, 14 May 2012 12:04:11 +0000 (-0700) Subject: Use __builtin_clzll on int64 in __logb X-Git-Tag: glibc-2.16-tps~359 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c044d724dc0fb61ba194d853b266f4a4dbd1329d;p=thirdparty%2Fglibc.git Use __builtin_clzll on int64 in __logb --- diff --git a/ChangeLog b/ChangeLog index 5824961e960..56e19afabed 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2012-05-14 H.J. Lu + + * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace + __builtin_clzl with __builtin_clzll. + 2012-05-14 H.J. Lu [BZ #14104] diff --git a/sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c b/sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c index 474eeef36b4..185dd05be38 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);