diff options
Diffstat (limited to 'libgo/go/math/log1p.go')
-rw-r--r-- | libgo/go/math/log1p.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libgo/go/math/log1p.go b/libgo/go/math/log1p.go index c155730..2c68ca9 100644 --- a/libgo/go/math/log1p.go +++ b/libgo/go/math/log1p.go @@ -131,10 +131,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 |