diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-02-16 07:17:03 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-02-16 07:17:03 +0000 |
commit | 82c0fd87ab0d6a22cc6fc6f7c968d4c479c82e24 (patch) | |
tree | 1ab7cec33b88bae63152092f7759b26b11fbfc9d /libgo/go | |
parent | 7172c94923b3ecac966b20c247eefea7f09bbd2b (diff) |
PR go/51874
math: Don't use libc log2 and trunc functions.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184300 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo/go')
-rw-r--r-- | libgo/go/math/floor.go | 5 | ||||
-rw-r--r-- | libgo/go/math/log10.go | 5 |
2 files changed, 2 insertions, 8 deletions
diff --git a/libgo/go/math/floor.go b/libgo/go/math/floor.go index b35066e58cb..c40be417152 100644 --- a/libgo/go/math/floor.go +++ b/libgo/go/math/floor.go @@ -58,11 +58,8 @@ func ceil(x float64) float64 { // Trunc(±Inf) = ±Inf // Trunc(NaN) = NaN -//extern trunc -func libc_trunc(float64) float64 - func Trunc(x float64) float64 { - return libc_trunc(x) + return trunc(x) } func trunc(x float64) float64 { diff --git a/libgo/go/math/log10.go b/libgo/go/math/log10.go index 07ba8ca165a..3d2cec6656c 100644 --- a/libgo/go/math/log10.go +++ b/libgo/go/math/log10.go @@ -21,11 +21,8 @@ func log10(x float64) float64 { // Log2 returns the binary logarithm of x. // The special cases are the same as for Log. -//extern log2 -func libc_log2(float64) float64 - func Log2(x float64) float64 { - return libc_log2(x) + return log2(x) } func log2(x float64) float64 { |