diff options
Diffstat (limited to 'libgo/go/math')
-rw-r--r-- | libgo/go/math/acosh.go | 1 | ||||
-rw-r--r-- | libgo/go/math/asin.go | 1 | ||||
-rw-r--r-- | libgo/go/math/asinh.go | 1 | ||||
-rw-r--r-- | libgo/go/math/atanh.go | 1 | ||||
-rw-r--r-- | libgo/go/math/erf.go | 1 | ||||
-rw-r--r-- | libgo/go/math/exp_port.go | 1 | ||||
-rw-r--r-- | libgo/go/math/expm1.go | 1 | ||||
-rw-r--r-- | libgo/go/math/floor.go | 1 | ||||
-rw-r--r-- | libgo/go/math/fmod.go | 1 | ||||
-rw-r--r-- | libgo/go/math/log.go | 2 | ||||
-rw-r--r-- | libgo/go/math/log1p.go | 1 | ||||
-rw-r--r-- | libgo/go/math/sin.go | 1 | ||||
-rw-r--r-- | libgo/go/math/sinh.go | 1 | ||||
-rw-r--r-- | libgo/go/math/sqrt_port.go | 6 | ||||
-rw-r--r-- | libgo/go/math/tan.go | 1 | ||||
-rw-r--r-- | libgo/go/math/tanh.go | 1 |
16 files changed, 6 insertions, 16 deletions
diff --git a/libgo/go/math/acosh.go b/libgo/go/math/acosh.go index d8067c0..7e8740b 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 3bace8f..0a0b0a1 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 90dcd27..c1cad56 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 6aecb7b..ed38fca 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 b608999..6d3d9b7 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 071420c..618c31a 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 35100ca..e9f8331 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 b22b94a..babbf64 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 fc57f74..75c6146 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 39d9451..a786c8c 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 e1fc275..c25d73b 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 35220cb..8a2edd7 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 23a8719..eaf28a5 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 6f35a38..148239b 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 a36ebbf..6d7a60b 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 8bcf2dd..f4a8a5a 100644 --- a/libgo/go/math/tanh.go +++ b/libgo/go/math/tanh.go @@ -4,7 +4,6 @@ package math - /* Floating-point hyperbolic tangent. |