aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/float.c
diff options
context:
space:
mode:
authorShenghou Ma <minux.ma@gmail.com>2012-08-07 09:57:14 +0800
committerShenghou Ma <minux.ma@gmail.com>2012-08-07 09:57:14 +0800
commit6e9506a7b45958665c3f48deecc8555f3ee2c42b (patch)
tree4cc2d8f39f001caf2b5e78b6483f3a22ebc21a33 /src/pkg/runtime/float.c
parent41645847b4f5187c088149f1177e8a3fc7d1f373 (diff)
downloadgo-6e9506a7b45958665c3f48deecc8555f3ee2c42b.tar.xz
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
Diffstat (limited to 'src/pkg/runtime/float.c')
-rw-r--r--src/pkg/runtime/float.c2
1 files changed, 1 insertions, 1 deletions
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;