aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2012-02-16 07:17:03 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2012-02-16 07:17:03 +0000
commita64b24bdef4f6406cb21befd3daf015c5d8954cd (patch)
tree1ab7cec33b88bae63152092f7759b26b11fbfc9d
parent6df020c0d10c41d8a7bd61714e445ccfa66b99e6 (diff)
downloadgcc-a64b24bdef4f6406cb21befd3daf015c5d8954cd.zip
gcc-a64b24bdef4f6406cb21befd3daf015c5d8954cd.tar.gz
gcc-a64b24bdef4f6406cb21befd3daf015c5d8954cd.tar.bz2
re PR go/51874 (Many libgo testsuite failures on IRIX)
PR go/51874 math: Don't use libc log2 and trunc functions. From-SVN: r184300
-rw-r--r--libgo/go/math/floor.go5
-rw-r--r--libgo/go/math/log10.go5
2 files changed, 2 insertions, 8 deletions
diff --git a/libgo/go/math/floor.go b/libgo/go/math/floor.go
index b35066e..c40be41 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 07ba8ca..3d2cec6 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 {