diff options
author | Russ Cox <rsc@golang.org> | 2009-01-22 16:49:11 -0800 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-01-22 16:49:11 -0800 |
commit | 72a14fb0bab9a59580c5795cbcf3fc1dc8e4956a (patch) | |
tree | 3e3f8aa078ef20a39e75ec78c94ff2a412e3a89b /src | |
parent | 29760f278cf9110e9e165af3f8aa53a89ff94f86 (diff) | |
download | golang-72a14fb0bab9a59580c5795cbcf3fc1dc8e4956a.tar.gz |
fix build - missed this file
TBR=r
OCL=23335
CL=23335
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/math/runtime.go | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/lib/math/runtime.go b/src/lib/math/runtime.go new file mode 100644 index 000000000..74db44a95 --- /dev/null +++ b/src/lib/math/runtime.go @@ -0,0 +1,20 @@ +// 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. + +func Float32bits(f float32) (b uint32) +func Float32frombits(b uint32) (f float32) +func Float64bits(f float64) (b uint64) +func Float64frombits(b uint64) (f float64) +func Frexp(f float64) (frac float64, exp int) +func Inf(sign int32) (f float64) +func IsInf(f float64, sign int) (is bool) +func IsNaN(f float64) (is bool) +func Ldexp(frac float64, exp int) (f float64) +func Modf(f float64) (integer float64, frac float64) +func NaN() (f float64) |