From 0c3c2c17243545e9bc7c5d158c5230fe299e8b73 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Tue, 11 Nov 2014 17:07:06 -0500 Subject: [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 --- src/runtime/float.c | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 src/runtime/float.c (limited to 'src/runtime/float.c') 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; -- cgit v1.3