diff options
| author | Russ Cox <rsc@golang.org> | 2009-10-15 23:09:22 -0700 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2009-10-15 23:09:22 -0700 |
| commit | 488ca3c7a67ecb1ce4068ab40da6003feac5e16c (patch) | |
| tree | 66a25d1ecc866955ce233ba94c620c3ffb0e5965 /src/pkg/runtime | |
| parent | 3c5a570ab41e6da2deca3ffc34ee83a7b2e3b632 (diff) | |
| download | go-488ca3c7a67ecb1ce4068ab40da6003feac5e16c.tar.xz | |
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
Diffstat (limited to 'src/pkg/runtime')
| -rw-r--r-- | src/pkg/runtime/float.c (renamed from src/pkg/runtime/float.cgo) | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/src/pkg/runtime/float.cgo b/src/pkg/runtime/float.c index 38114aa854..5122f359a7 100644 --- a/src/pkg/runtime/float.cgo +++ b/src/pkg/runtime/float.c @@ -2,7 +2,6 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -package math #include "runtime.h" static uint64 uvnan = 0x7FF0000000000001ULL; @@ -172,47 +171,3 @@ modf(float64 d, float64 *ip) return d - dd; } -func Frexp(f float64) (frac float64, exp int32) { - frac = frexp(f, &exp); -} - -func Ldexp(frac float64, exp int32) (f float64) { - f = ldexp(frac, exp); -} - -func Modf(f float64) (integer float64, frac float64) { - frac = modf(f, &integer); -} - -func IsInf(f float64, sign int32) (is bool) { - is = isInf(f, sign); -} - -func IsNaN(f float64) (is bool) { - is = isNaN(f); -} - -func Inf(sign int32) (f float64) { - f = Inf(sign); -} - -func NaN() (f float64) { - f = NaN(); -} - -func Float32bits(f float32) (b uint32) { - b = float32tobits(f); -} - -func Float64bits(f float64) (b uint64) { - b = float64tobits(f); -} - -func Float32frombits(b uint32) (f float32) { - f = float32frombits(b); -} - -func Float64frombits(b uint64) (f float64) { - f = float64frombits(b); -} - |
