summaryrefslogtreecommitdiff
path: root/libgo/go/math/frexp.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/math/frexp.go')
-rw-r--r--libgo/go/math/frexp.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/libgo/go/math/frexp.go b/libgo/go/math/frexp.go
index 6b928e714c5..4ad0aee54a4 100644
--- a/libgo/go/math/frexp.go
+++ b/libgo/go/math/frexp.go
@@ -18,13 +18,11 @@ func Frexp(f float64) (frac float64, exp int) {
}
func frexp(f float64) (frac float64, exp int) {
- // TODO(rsc): Remove manual inlining of IsNaN, IsInf
- // when compiler does it for us
// special cases
switch {
case f == 0:
return f, 0 // correctly return -0
- case f < -MaxFloat64 || f > MaxFloat64 || f != f: // IsInf(f, 0) || IsNaN(f):
+ case IsInf(f, 0) || IsNaN(f):
return f, 0
}
f, exp = normalize(f)