diff options
Diffstat (limited to 'libgo/go/math/acosh.go')
-rw-r--r-- | libgo/go/math/acosh.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libgo/go/math/acosh.go b/libgo/go/math/acosh.go index 8d556377f59..c6c8645e1ae 100644 --- a/libgo/go/math/acosh.go +++ b/libgo/go/math/acosh.go @@ -44,11 +44,9 @@ func Acosh(x float64) float64 { Ln2 = 6.93147180559945286227e-01 // 0x3FE62E42FEFA39EF Large = 1 << 28 // 2**28 ) - // TODO(rsc): Remove manual inlining of IsNaN - // when compiler does it for us // first case is special case switch { - case x < 1 || x != x: // x < 1 || IsNaN(x): + case x < 1 || IsNaN(x): return NaN() case x == 1: return 0 |