From e8766354a4666044d23027de177e57f2fc992802 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 10 Nov 2008 14:54:10 -0800 Subject: handle Inf, NaN in float print R=r DELTA=48 (23 added, 14 deleted, 11 changed) OCL=18707 CL=18922 --- src/runtime/runtime.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/runtime/runtime.c') 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; -- cgit v1.3-5-g9baa