summaryrefslogtreecommitdiffstats
path: root/lib/msun/src
diff options
context:
space:
mode:
authordas <das@FreeBSD.org>2005-01-13 15:43:41 +0000
committerdas <das@FreeBSD.org>2005-01-13 15:43:41 +0000
commit5670c96a339f3102b82c5b155254b2e9e36b55f7 (patch)
tree547236fb4a038d763e435c92adbe085dba106eeb /lib/msun/src
parented0817dc30244e15d21bf469d43beaa68a6e571b (diff)
downloadFreeBSD-src-5670c96a339f3102b82c5b155254b2e9e36b55f7.zip
FreeBSD-src-5670c96a339f3102b82c5b155254b2e9e36b55f7.tar.gz
The isnormal() in rev 1.2 should have been isfinite() so subnormals
round correctly. Noticed by: stefanf
Diffstat (limited to 'lib/msun/src')
-rw-r--r--lib/msun/src/s_round.c2
-rw-r--r--lib/msun/src/s_roundf.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/msun/src/s_round.c b/lib/msun/src/s_round.c
index c3c0665..34b26f0 100644
--- a/lib/msun/src/s_round.c
+++ b/lib/msun/src/s_round.c
@@ -34,7 +34,7 @@ round(double x)
{
double t;
- if (!isnormal(x))
+ if (!isfinite(x))
return (x);
if (x >= 0.0) {
diff --git a/lib/msun/src/s_roundf.c b/lib/msun/src/s_roundf.c
index ba42e8e..a7a3da9 100644
--- a/lib/msun/src/s_roundf.c
+++ b/lib/msun/src/s_roundf.c
@@ -34,7 +34,7 @@ roundf(float x)
{
float t;
- if (!isnormal(x))
+ if (!isfinite(x))
return (x);
if (x >= 0.0) {
OpenPOWER on IntegriCloud