From 6e9506a7b45958665c3f48deecc8555f3ee2c42b Mon Sep 17 00:00:00 2001 From: Shenghou Ma Date: Tue, 7 Aug 2012 09:57:14 +0800 Subject: math, runtime: use a NaN that matches gcc's our old choice is not working properly at least on VFPv2 in ARM1136JF-S (it's not preserved across float64->float32 conversions). Fixes #3745. R=dave, rsc CC=golang-dev https://golang.org/cl/6344078 --- src/pkg/runtime/float.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pkg/runtime') diff --git a/src/pkg/runtime/float.c b/src/pkg/runtime/float.c index f481519f65..4d9f125977 100644 --- a/src/pkg/runtime/float.c +++ b/src/pkg/runtime/float.c @@ -4,7 +4,7 @@ #include "runtime.h" -static uint64 uvnan = 0x7FF0000000000001ULL; +static uint64 uvnan = 0x7FF8000000000001ULL; static uint64 uvinf = 0x7FF0000000000000ULL; static uint64 uvneginf = 0xFFF0000000000000ULL; -- cgit v1.3-5-g9baa