summaryrefslogtreecommitdiffstats
path: root/libgo/go/math/expm1.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/math/expm1.go')
-rw-r--r--libgo/go/math/expm1.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/libgo/go/math/expm1.go b/libgo/go/math/expm1.go
index e7705b06a86..f7e15dbbc9d 100644
--- a/libgo/go/math/expm1.go
+++ b/libgo/go/math/expm1.go
@@ -148,12 +148,10 @@ func expm1(x float64) float64 {
)
// special cases
- // TODO(rsc): Remove manual inlining of IsNaN, IsInf
- // when compiler does it for us
switch {
- case x > MaxFloat64 || x != x: // IsInf(x, 1) || IsNaN(x):
+ case IsInf(x, 1) || IsNaN(x):
return x
- case x < -MaxFloat64: // IsInf(x, -1):
+ case IsInf(x, -1):
return -1
}
OpenPOWER on IntegriCloud