Skip to content

Commit

Permalink
Requre LLVM ll for some instrinsics
Browse files Browse the repository at this point in the history
  • Loading branch information
chriselrod committed Mar 8, 2021
1 parent 49aa2c5 commit a7f3fc0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/log.jl
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,10 @@ end

return muladd(x, t, en)
end
@inline log_fast(d::AbstractSIMD) = log_fast(d, VectorizationBase.has_feature(Val(:x86_64_avx512f)))
@static if Base.libllvm_version v"11"
@inline log_fast(d::AbstractSIMD) = log_fast(d, VectorizationBase.has_feature(Val(:x86_64_avx512f)))
else
@inline log_fast(d::AbstractSIMD) = log_fast(d, False())
end
@inline log_fast(d::Union{Float32,Float64}) = log_fast(d, False())

2 comments on commit a7f3fc0

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

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.11 -m "<description of version>" a7f3fc0b7fe9256ea0a2bf157b9e8289affee27b
git push origin v0.6.11

Please sign in to comment.