aboutsummaryrefslogtreecommitdiff
path: root/src/math/log1p.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/log1p.go')
-rw-r--r--src/math/log1p.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/math/log1p.go b/src/math/log1p.go
index c4ec61b225..e34e1ff4f2 100644
--- a/src/math/log1p.go
+++ b/src/math/log1p.go
@@ -122,10 +122,7 @@ func log1p(x float64) float64 {
return Inf(1)
}
- absx := x
- if absx < 0 {
- absx = -absx
- }
+ absx := Abs(x)
var f float64
var iu uint64