Skip to content

Commit

Permalink
more fma -> vfmadd
Browse files Browse the repository at this point in the history
  • Loading branch information
chriselrod committed Apr 14, 2022
1 parent 42b879e commit dbb0648
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/estrin.jl
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,12 @@ end
lo = Symbol(:lo_,n)
push!(q.args, :($pₙ = p[$n]))
push!(q.args, :($prodₙ = $hi_old*x))
push!(q.args, :($errₙ = fma($hi_old, x, -$prodₙ)))
push!(q.args, :($errₙ = vfmadd($hi_old, x, -$prodₙ)))
push!(q.args, :($hi = $pₙ + $prodₙ))
if lo_old === hi_old
push!(q.args, :($lo = $prodₙ - ($hi - $pₙ) + $errₙ))
else
push!(q.args, :($lo = fma($lo_old, x, $prodₙ - ($hi - $pₙ) + $errₙ)))
push!(q.args, :($lo = vfmadd($lo_old, x, $prodₙ - ($hi - $pₙ) + $errₙ)))
end
hi_old = hi
lo_old = lo
Expand Down

2 comments on commit dbb0648

@chriselrod
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/58548

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.6.32 -m "<description of version>" dbb06480ebe1e23f1ac56e036234e8cf24dfd267
git push origin v0.6.32

Please sign in to comment.