diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-02-09 08:19:58 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-02-09 08:19:58 +0000 |
commit | 94252f4bcc0a3f487b804ce535cb77b8bef4db83 (patch) | |
tree | 7ca86535c5a6b99d4cc432ba5cfddabc5ee4ea16 /libgo/go/math/atanh.go | |
parent | cd6368115dbd75d9187877097c48a0d8d4c04fd4 (diff) | |
download | gcc-94252f4bcc0a3f487b804ce535cb77b8bef4db83.zip gcc-94252f4bcc0a3f487b804ce535cb77b8bef4db83.tar.gz gcc-94252f4bcc0a3f487b804ce535cb77b8bef4db83.tar.bz2 |
libgo: Update to weekly.2012-02-07.
From-SVN: r184034
Diffstat (limited to 'libgo/go/math/atanh.go')
-rw-r--r-- | libgo/go/math/atanh.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libgo/go/math/atanh.go b/libgo/go/math/atanh.go index e150673..5b5d468 100644 --- a/libgo/go/math/atanh.go +++ b/libgo/go/math/atanh.go @@ -46,11 +46,9 @@ package math // Atanh(NaN) = NaN func Atanh(x float64) float64 { const NearZero = 1.0 / (1 << 28) // 2**-28 - // TODO(rsc): Remove manual inlining of IsNaN - // when compiler does it for us // special cases switch { - case x < -1 || x > 1 || x != x: // x < -1 || x > 1 || IsNaN(x): + case x < -1 || x > 1 || IsNaN(x): return NaN() case x == 1: return Inf(1) |