re PR go/51874 (Many libgo testsuite failures on IRIX)
authorIan Lance Taylor <ian@gcc.gnu.org>
Thu, 16 Feb 2012 07:17:03 +0000 (07:17 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Thu, 16 Feb 2012 07:17:03 +0000 (07:17 +0000)
PR go/51874
math: Don't use libc log2 and trunc functions.

From-SVN: r184300

libgo/go/math/floor.go
libgo/go/math/log10.go

index b35066e58cbb9031fc8a67d97502d7716889b6d1..c40be417152f354d5021f2e436f8596511a307d3 100644 (file)
@@ -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 {
index 07ba8ca165acb414bc5585c461b23b13d4215ea4..3d2cec6656c90c8ad2b45498fd845c06059fc933 100644 (file)
@@ -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 {