From 5670c96a339f3102b82c5b155254b2e9e36b55f7 Mon Sep 17 00:00:00 2001 From: das Date: Thu, 13 Jan 2005 15:43:41 +0000 Subject: The isnormal() in rev 1.2 should have been isfinite() so subnormals round correctly. Noticed by: stefanf --- lib/msun/src/s_round.c | 2 +- lib/msun/src/s_roundf.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/msun') 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) { -- cgit v1.1