summaryrefslogtreecommitdiffstats
path: root/libgo/go/math
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2011-09-16 15:47:21 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2011-09-16 15:47:21 +0000
commit49b4e44b7d540fa846d353b10237848a67789cbf (patch)
treeea2b52e3c258d6b6d9356977c683c7f72a4a5fd5 /libgo/go/math
parent82ceb8f6a88a0193971f53e0571e017f2764f7d7 (diff)
downloadppe42-gcc-49b4e44b7d540fa846d353b10237848a67789cbf.tar.gz
ppe42-gcc-49b4e44b7d540fa846d353b10237848a67789cbf.zip
Update Go library to r60.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178910 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo/go/math')
-rw-r--r--libgo/go/math/acosh.go1
-rw-r--r--libgo/go/math/asin.go1
-rw-r--r--libgo/go/math/asinh.go1
-rw-r--r--libgo/go/math/atanh.go1
-rw-r--r--libgo/go/math/erf.go1
-rw-r--r--libgo/go/math/exp_port.go1
-rw-r--r--libgo/go/math/expm1.go1
-rw-r--r--libgo/go/math/floor.go1
-rw-r--r--libgo/go/math/fmod.go1
-rw-r--r--libgo/go/math/log.go2
-rw-r--r--libgo/go/math/log1p.go1
-rw-r--r--libgo/go/math/sin.go1
-rw-r--r--libgo/go/math/sinh.go1
-rw-r--r--libgo/go/math/sqrt_port.go6
-rw-r--r--libgo/go/math/tan.go1
-rw-r--r--libgo/go/math/tanh.go1
16 files changed, 6 insertions, 16 deletions
diff --git a/libgo/go/math/acosh.go b/libgo/go/math/acosh.go
index d8067c06583..7e8740b89bd 100644
--- a/libgo/go/math/acosh.go
+++ b/libgo/go/math/acosh.go
@@ -4,7 +4,6 @@
package math
-
// The original C code, the long comment, and the constants
// below are from FreeBSD's /usr/src/lib/msun/src/e_acosh.c
// and came with this notice. The go code is a simplified
diff --git a/libgo/go/math/asin.go b/libgo/go/math/asin.go
index 3bace8ff1c4..0a0b0a11cb4 100644
--- a/libgo/go/math/asin.go
+++ b/libgo/go/math/asin.go
@@ -4,7 +4,6 @@
package math
-
/*
Floating-point arcsine and arccosine.
diff --git a/libgo/go/math/asinh.go b/libgo/go/math/asinh.go
index 90dcd27ab97..c1cad563c76 100644
--- a/libgo/go/math/asinh.go
+++ b/libgo/go/math/asinh.go
@@ -4,7 +4,6 @@
package math
-
// The original C code, the long comment, and the constants
// below are from FreeBSD's /usr/src/lib/msun/src/s_asinh.c
// and came with this notice. The go code is a simplified
diff --git a/libgo/go/math/atanh.go b/libgo/go/math/atanh.go
index 6aecb7b3bb3..ed38fcac665 100644
--- a/libgo/go/math/atanh.go
+++ b/libgo/go/math/atanh.go
@@ -4,7 +4,6 @@
package math
-
// The original C code, the long comment, and the constants
// below are from FreeBSD's /usr/src/lib/msun/src/e_atanh.c
// and came with this notice. The go code is a simplified
diff --git a/libgo/go/math/erf.go b/libgo/go/math/erf.go
index b608999337a..6d3d9b7c537 100644
--- a/libgo/go/math/erf.go
+++ b/libgo/go/math/erf.go
@@ -4,7 +4,6 @@
package math
-
/*
Floating-point error function and complementary error function.
*/
diff --git a/libgo/go/math/exp_port.go b/libgo/go/math/exp_port.go
index 071420c24c5..618c31a5d11 100644
--- a/libgo/go/math/exp_port.go
+++ b/libgo/go/math/exp_port.go
@@ -4,7 +4,6 @@
package math
-
// The original C code, the long comment, and the constants
// below are from FreeBSD's /usr/src/lib/msun/src/e_exp.c
// and came with this notice. The go code is a simplified
diff --git a/libgo/go/math/expm1.go b/libgo/go/math/expm1.go
index 35100caa402..e9f833140b5 100644
--- a/libgo/go/math/expm1.go
+++ b/libgo/go/math/expm1.go
@@ -4,7 +4,6 @@
package math
-
// The original C code, the long comment, and the constants
// below are from FreeBSD's /usr/src/lib/msun/src/s_expm1.c
// and came with this notice. The go code is a simplified
diff --git a/libgo/go/math/floor.go b/libgo/go/math/floor.go
index b22b94ad639..babbf645f5c 100644
--- a/libgo/go/math/floor.go
+++ b/libgo/go/math/floor.go
@@ -4,7 +4,6 @@
package math
-
// Floor returns the greatest integer value less than or equal to x.
//
// Special cases are:
diff --git a/libgo/go/math/fmod.go b/libgo/go/math/fmod.go
index fc57f7483fa..75c614629d4 100644
--- a/libgo/go/math/fmod.go
+++ b/libgo/go/math/fmod.go
@@ -4,7 +4,6 @@
package math
-
/*
Floating-point mod function.
*/
diff --git a/libgo/go/math/log.go b/libgo/go/math/log.go
index 39d94512d3f..a786c8ce3ab 100644
--- a/libgo/go/math/log.go
+++ b/libgo/go/math/log.go
@@ -23,7 +23,7 @@ package math
// ====================================================
//
// __ieee754_log(x)
-// Return the logrithm of x
+// Return the logarithm of x
//
// Method :
// 1. Argument Reduction: find k and f such that
diff --git a/libgo/go/math/log1p.go b/libgo/go/math/log1p.go
index e1fc275d0c3..c25d73b6641 100644
--- a/libgo/go/math/log1p.go
+++ b/libgo/go/math/log1p.go
@@ -4,7 +4,6 @@
package math
-
// The original C code, the long comment, and the constants
// below are from FreeBSD's /usr/src/lib/msun/src/s_log1p.c
// and came with this notice. The go code is a simplified
diff --git a/libgo/go/math/sin.go b/libgo/go/math/sin.go
index 35220cb3e5a..8a2edd7e563 100644
--- a/libgo/go/math/sin.go
+++ b/libgo/go/math/sin.go
@@ -4,7 +4,6 @@
package math
-
/*
Floating-point sine and cosine.
diff --git a/libgo/go/math/sinh.go b/libgo/go/math/sinh.go
index 23a8719f2ca..eaf28a51cd6 100644
--- a/libgo/go/math/sinh.go
+++ b/libgo/go/math/sinh.go
@@ -4,7 +4,6 @@
package math
-
/*
Floating-point hyperbolic sine and cosine.
diff --git a/libgo/go/math/sqrt_port.go b/libgo/go/math/sqrt_port.go
index 6f35a383d11..148239bcff6 100644
--- a/libgo/go/math/sqrt_port.go
+++ b/libgo/go/math/sqrt_port.go
@@ -50,7 +50,7 @@ package math
// If (2) is false, then q = q ; otherwise q = q + 2 .
// i+1 i i+1 i
//
-// With some algebric manipulation, it is not difficult to see
+// With some algebraic manipulation, it is not difficult to see
// that (2) is equivalent to
// -(i+1)
// s + 2 <= y (3)
@@ -141,3 +141,7 @@ func sqrtGo(x float64) float64 {
ix = q>>1 + uint64(exp-1+bias)<<shift // significand + biased exponent
return Float64frombits(ix)
}
+
+func sqrtGoC(f float64, r *float64) {
+ *r = sqrtGo(f)
+}
diff --git a/libgo/go/math/tan.go b/libgo/go/math/tan.go
index a36ebbf449c..6d7a60ba6b2 100644
--- a/libgo/go/math/tan.go
+++ b/libgo/go/math/tan.go
@@ -4,7 +4,6 @@
package math
-
/*
Floating point tangent.
*/
diff --git a/libgo/go/math/tanh.go b/libgo/go/math/tanh.go
index 8bcf2ddac2e..f4a8a5a4d60 100644
--- a/libgo/go/math/tanh.go
+++ b/libgo/go/math/tanh.go
@@ -4,7 +4,6 @@
package math
-
/*
Floating-point hyperbolic tangent.
OpenPOWER on IntegriCloud