diff options
Diffstat (limited to 'libgo/go/math/nextafter.go')
-rw-r--r-- | libgo/go/math/nextafter.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libgo/go/math/nextafter.go b/libgo/go/math/nextafter.go index e7723ba..7c4b5bc 100644 --- a/libgo/go/math/nextafter.go +++ b/libgo/go/math/nextafter.go @@ -11,10 +11,8 @@ package math // Nextafter(NaN, y) = NaN // Nextafter(x, NaN) = NaN func Nextafter(x, y float64) (r float64) { - // TODO(rsc): Remove manual inlining of IsNaN - // when compiler does it for us switch { - case x != x || y != y: // IsNaN(x) || IsNaN(y): // special case + case IsNaN(x) || IsNaN(y): // special case r = NaN() case x == y: r = x |