Skip to content

Commit

Permalink
Don't use estrin for VecUnrolls
Browse files Browse the repository at this point in the history
  • Loading branch information
chriselrod committed Jan 10, 2021
1 parent 2dd30f4 commit 41e600b
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/estrin.jl
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,17 @@
end
ex
end
# Given a `VecUnroll` argument, we'll instruction level parallelism that way and can thus forgo `estrin`
@inline estrin(x::VecUnroll, p::NTuple{N}) where {N} = evalpoly(x, p)

macro estrin(x, p...)
t = Expr(:tuple); foreach(pᵢ -> push!(t.args, pᵢ), p)
if __module__ == SLEEFPirates
esc(Expr(:call, :estrin, x, t))
else
esc(Expr(:call, Expr(:(.), :SLEEFPirates, QuoteNode(:estrin)), x, t))
end
end
# macro estrin(x, p...)
# t = Expr(:tuple); foreach(pᵢ -> push!(t.args, pᵢ), p)
# if __module__ == SLEEFPirates
# esc(Expr(:call, :estrin, x, t))
# else
# esc(Expr(:call, Expr(:(.), :SLEEFPirates, QuoteNode(:estrin)), x, t))
# end
# end

macro horner(x, p...)
N = length(p)
Expand Down

2 comments on commit 41e600b

@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/27693

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.4 -m "<description of version>" 41e600b1670e9436b0b6d441b2572e77b5c9b697
git push origin v0.6.4

Please sign in to comment.