diff options
Diffstat (limited to 'libgo/go/math/sqrt.go')
-rw-r--r-- | libgo/go/math/sqrt.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libgo/go/math/sqrt.go b/libgo/go/math/sqrt.go index 4f87f41..b5f297c 100644 --- a/libgo/go/math/sqrt.go +++ b/libgo/go/math/sqrt.go @@ -106,10 +106,8 @@ func Sqrt(x float64) float64 { // Sqrt(NaN) = NaN func sqrt(x float64) float64 { // special cases - // TODO(rsc): Remove manual inlining of IsNaN, IsInf - // when compiler does it for us switch { - case x == 0 || x != x || x > MaxFloat64: // x == 0 || IsNaN(x) || IsInf(x, 1): + case x == 0 || IsNaN(x) || IsInf(x, 1): return x case x < 0: return NaN() |