diff options
| author | Shenghou Ma <minux.ma@gmail.com> | 2012-08-07 09:57:14 +0800 |
|---|---|---|
| committer | Shenghou Ma <minux.ma@gmail.com> | 2012-08-07 09:57:14 +0800 |
| commit | 6e9506a7b45958665c3f48deecc8555f3ee2c42b (patch) | |
| tree | 4cc2d8f39f001caf2b5e78b6483f3a22ebc21a33 /src/pkg/runtime | |
| parent | 41645847b4f5187c088149f1177e8a3fc7d1f373 (diff) | |
| download | go-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')
| -rw-r--r-- | src/pkg/runtime/float.c | 2 |
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; |
