diff options
Diffstat (limited to 'libgo/go/math/sqrt.go')
-rw-r--r-- | libgo/go/math/sqrt.go | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/libgo/go/math/sqrt.go b/libgo/go/math/sqrt.go index 86c0452..c65c32e 100644 --- a/libgo/go/math/sqrt.go +++ b/libgo/go/math/sqrt.go @@ -13,7 +13,7 @@ func Sqrt(x float64) float64 { // The original C code and the long comment below are // from FreeBSD's /usr/src/lib/msun/src/e_sqrt.c and -// came with this notice. The go code is a simplified +// came with this notice. The go code is a simplified // version of the original C. // // ==================================================== @@ -86,7 +86,7 @@ func Sqrt(x float64) float64 { // equal to huge for some floating point number "huge" and "tiny". // // -// Notes: Rounding mode detection omitted. The constants "mask", "shift", +// Notes: Rounding mode detection omitted. The constants "mask", "shift", // and "bias" are found in src/math/bits.go // Sqrt returns the square root of x. @@ -148,7 +148,3 @@ func sqrt(x float64) float64 { ix = q>>1 + uint64(exp-1+bias)<<shift // significand + biased exponent return Float64frombits(ix) } - -func sqrtC(f float64, r *float64) { - *r = sqrt(f) -} |