summaryrefslogtreecommitdiff
path: root/src/pkg/math/frexp.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/math/frexp.go')
-rw-r--r--src/pkg/math/frexp.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/pkg/math/frexp.go b/src/pkg/math/frexp.go
index b5458d763..0e26feb66 100644
--- a/src/pkg/math/frexp.go
+++ b/src/pkg/math/frexp.go
@@ -16,13 +16,11 @@ package math
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)