summaryrefslogtreecommitdiffstats
path: root/libgo/go/math/log.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/math/log.go')
-rw-r--r--libgo/go/math/log.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/libgo/go/math/log.go b/libgo/go/math/log.go
index 5e5c427c0fa..60b57552d8b 100644
--- a/libgo/go/math/log.go
+++ b/libgo/go/math/log.go
@@ -98,11 +98,9 @@ func log(x float64) float64 {
L7 = 1.479819860511658591e-01 /* 3FC2F112 DF3E5244 */
)
- // TODO(rsc): Remove manual inlining of IsNaN, IsInf
- // when compiler does it for us
// special cases
switch {
- case x != x || x > MaxFloat64: // IsNaN(x) || IsInf(x, 1):
+ case IsNaN(x) || IsInf(x, 1):
return x
case x < 0:
return NaN()
OpenPOWER on IntegriCloud