summaryrefslogtreecommitdiff
path: root/libgo/go/math/mod.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/math/mod.go')
-rw-r--r--libgo/go/math/mod.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/libgo/go/math/mod.go b/libgo/go/math/mod.go
index dbb3aa00eb4..0b208f4eda3 100644
--- a/libgo/go/math/mod.go
+++ b/libgo/go/math/mod.go
@@ -27,9 +27,7 @@ func Mod(x, y float64) float64 {
}
func mod(x, y float64) float64 {
- // TODO(rsc): Remove manual inlining of IsNaN, IsInf
- // when compiler does it for us.
- if y == 0 || x > MaxFloat64 || x < -MaxFloat64 || x != x || y != y { // y == 0 || IsInf(x, 0) || IsNaN(x) || IsNan(y)
+ if y == 0 || IsInf(x, 0) || IsNaN(x) || IsNaN(y) {
return NaN()
}
if y < 0 {