Skip to content

Commit

Permalink
set xnlo to -0.0 initially
Browse files Browse the repository at this point in the history
  • Loading branch information
oscardssmith committed Sep 25, 2024
1 parent 6e5e87b commit 3868be3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion base/math.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1252,7 +1252,8 @@ end
# this method is only reliable for -2^20 < n < 2^20 (cf. #53881 #53886)
@assume_effects :terminates_locally @noinline function pow_body(x::Float64, n::Integer)
y = 1.0
xnlo = ynlo = 0.0
xnlo = -0.0
ynlo = 0.0
n == 3 && return x*x*x # keep compatibility with literal_pow
if n < 0
rx = inv(x)
Expand Down

0 comments on commit 3868be3

Please sign in to comment.