aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/float.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2014-11-11 17:07:06 -0500
committerRuss Cox <rsc@golang.org>2014-11-11 17:07:06 -0500
commit0c3c2c17243545e9bc7c5d158c5230fe299e8b73 (patch)
treedd4e6270a830a226f66f924b8e91616dba4bc310 /src/runtime/float.c
parent7b3ebb131f4a03c02f8f7723b26d55dd98bc702f (diff)
downloadgo-0c3c2c17243545e9bc7c5d158c5230fe299e8b73.tar.xz
[dev.cc] runtime: convert basic library routines from C to Go
float.c held bit patterns for special float64 values, hiding from the real uses. Rewrite Go code not to refer to those values directly. Convert library routines in runtime.c and string.c. LGTM=r R=r, dave CC=austin, dvyukov, golang-codereviews, iant, khr https://golang.org/cl/170330043
Diffstat (limited to 'src/runtime/float.c')
-rw-r--r--src/runtime/float.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/runtime/float.c b/src/runtime/float.c
deleted file mode 100644
index 42082e4347..0000000000
--- a/src/runtime/float.c
+++ /dev/null
@@ -1,10 +0,0 @@
-// Copyright 2009 The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-#include "runtime.h"
-
-// used as float64 via runtime· names
-uint64 ·nan = 0x7FF8000000000001ULL;
-uint64 ·posinf = 0x7FF0000000000000ULL;
-uint64 ·neginf = 0xFFF0000000000000ULL;