From c044d724dc0fb61ba194d853b266f4a4dbd1329d Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Mon, 14 May 2012 05:04:11 -0700 Subject: [PATCH] Use __builtin_clzll on int64 in __logb --- ChangeLog | 5 +++++ sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 5824961..56e19af 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 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] * sysdeps/unix/sysv/linux/check_pf.c (cache): Use libc_freeres_ptr. diff --git a/sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c b/sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c index 474eeef..185dd05 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); -- 2.7.4