From 488ca3c7a67ecb1ce4068ab40da6003feac5e16c Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Thu, 15 Oct 2009 23:09:22 -0700 Subject: move math out of runtime. a step toward enforcing package boundaries, necessary to eliminate global package name space. R=r DELTA=581 (310 added, 271 deleted, 0 changed) OCL=35805 CL=35823 --- src/pkg/math/runtime.go | 52 ------------------------------------------------- 1 file changed, 52 deletions(-) delete mode 100644 src/pkg/math/runtime.go (limited to 'src/pkg/math/runtime.go') diff --git a/src/pkg/math/runtime.go b/src/pkg/math/runtime.go deleted file mode 100644 index 69d333825b..0000000000 --- a/src/pkg/math/runtime.go +++ /dev/null @@ -1,52 +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. - -package math - -// implemented in C, in ../../runtime -// perhaps one day the implementations will move here. - -// Float32bits returns the IEEE 754 binary representation of f. -func Float32bits(f float32) (b uint32) - -// Float32frombits returns the floating point number corresponding -// to the IEEE 754 binary representation b. -func Float32frombits(b uint32) (f float32) - -// Float64bits returns the IEEE 754 binary representation of f. -func Float64bits(f float64) (b uint64) - -// Float64frombits returns the floating point number corresponding -// the IEEE 754 binary representation b. -func Float64frombits(b uint64) (f float64) - -// Frexp breaks f into a normalized fraction -// and an integral power of two. -// It returns frac and exp satisfying f == frac × 2exp, -// with the absolute value of frac in the interval [½, 1). -func Frexp(f float64) (frac float64, exp int) - -// Inf returns positive infinity if sign >= 0, negative infinity if sign < 0. -func Inf(sign int32) (f float64) - -// IsInf returns whether f is an infinity, according to sign. -// If sign > 0, IsInf returns whether f is positive infinity. -// If sign < 0, IsInf returns whether f is negative infinity. -// If sign == 0, IsInf returns whether f is either infinity. -func IsInf(f float64, sign int) (is bool) - -// IsNaN returns whether f is an IEEE 754 ``not-a-number'' value. -func IsNaN(f float64) (is bool) - -// Ldexp is the inverse of Frexp. -// It returns frac × 2exp. -func Ldexp(frac float64, exp int) (f float64) - -// Modf returns integer and fractional floating-point numbers -// that sum to f. -// Integer and frac have the same sign as f. -func Modf(f float64) (integer float64, frac float64) - -// NaN returns an IEEE 754 ``not-a-number'' value. -func NaN() (f float64) -- cgit v1.3-5-g9baa