projects
/
external
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b412350
)
(__ilogbl): Fix test for infinity.
author
Andreas Jaeger
<aj@suse.de>
Wed, 8 Aug 2001 16:17:56 +0000
(16:17 +0000)
committer
Andreas Jaeger
<aj@suse.de>
Wed, 8 Aug 2001 16:17:56 +0000
(16:17 +0000)
sysdeps/ieee754/ldbl-96/s_ilogbl.c
patch
|
blob
|
history
diff --git
a/sysdeps/ieee754/ldbl-96/s_ilogbl.c
b/sysdeps/ieee754/ldbl-96/s_ilogbl.c
index
9688f5a
..
6b78101
100644
(file)
--- a/
sysdeps/ieee754/ldbl-96/s_ilogbl.c
+++ b/
sysdeps/ieee754/ldbl-96/s_ilogbl.c
@@
-53,9
+53,13
@@
static char rcsid[] = "$NetBSD: $";
return ix;
}
else if (es<0x7fff) return es-0x3fff;
- else if (FP_ILOGBNAN != INT_MAX && (hx|lx) == 0)
- /* ISO C99 requires ilogbl(+-Inf) == INT_MAX. */
- return INT_MAX;
+ else if (FP_ILOGBNAN != INT_MAX)
+ {
+ GET_LDOUBLE_WORDS(es,hx,lx,x);
+ if ((hx & 0x7fffffff|lx) == 0)
+ /* ISO C99 requires ilogbl(+-Inf) == INT_MAX. */
+ return INT_MAX;
+ }
return FP_ILOGBNAN;
}
weak_alias (__ilogbl, ilogbl)