Skip to content

Commit 7bc85ef

Browse files
committed
Merge #93 from branch 91-broken-internals
2 parents f00fdda + 30232f0 commit 7bc85ef

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/newton.jl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,8 @@ function extend_leja!(
131131
@inbounds for i = lbound(newpoints, 1):(u-i_add)
132132
p::Float64 = 1
133133
@inbounds for j = 0:(n+i_add-1) # existing Leja points
134-
# Note: the following two lines are optimized for performance,
135-
# using internals from the native `Δ^exponent`
136-
Δ = reinterpret(UInt64, abs(newpoints[i] - leja[j]))
137-
@inline p = p * Base.Math.pow_body(Δ, exponent)
134+
Δ = abs(newpoints[i] - leja[j])
135+
p = p * Δ^exponent
138136
end
139137
if p > p_max
140138
p_max = p

0 commit comments

Comments
 (0)