aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/runtime.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2008-11-10 14:54:10 -0800
committerRuss Cox <rsc@golang.org>2008-11-10 14:54:10 -0800
commite8766354a4666044d23027de177e57f2fc992802 (patch)
treedcd846a941c08b30f82d0c82beb136e2d34ed563 /src/runtime/runtime.c
parent842e1a9aa70648a013d5a48073683f08332e461d (diff)
downloadgo-e8766354a4666044d23027de177e57f2fc992802.tar.xz
handle Inf, NaN in float print
R=r DELTA=48 (23 added, 14 deleted, 11 changed) OCL=18707 CL=18922
Diffstat (limited to 'src/runtime/runtime.c')
-rw-r--r--src/runtime/runtime.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/runtime.c b/src/runtime/runtime.c
index a0d97dcda9..a8b2367950 100644
--- a/src/runtime/runtime.c
+++ b/src/runtime/runtime.c
@@ -172,7 +172,7 @@ static uint64 uvnan = 0x7FF0000000000001ULL;
static uint64 uvinf = 0x7FF0000000000000ULL;
static uint64 uvneginf = 0xFFF0000000000000ULL;
-static int32
+bool
isInf(float64 d, int32 sign)
{
uint64 x;
@@ -199,7 +199,7 @@ NaN(void)
return *(float64*)&uvnan;
}
-static int32
+bool
isNaN(float64 d)
{
uint64 x;