Skip to content

Commit dcdfa06

Browse files
committed
add scalar vsum/vprod. It probably shuold never be called, but LV was generating calls to it on an M1, and I don't have the time to look into it.
1 parent 6f02941 commit dcdfa06

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "VectorizationBase"
22
uuid = "3d5dd08c-fd9d-11e8-17fa-ed2836048c2f"
33
authors = ["Chris Elrod <[email protected]>"]
4-
version = "0.21.68"
4+
version = "0.21.69"
55

66
[deps]
77
ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"

src/llvm_intrin/intrin_funcs.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,8 @@ end
750750
# W += W
751751
# end
752752
# end
753+
@inline vsum(x::T) where {T<:NativeTypes} = x
754+
@inline vprod(x::T) where {T<:NativeTypes} = x
753755
@inline vsum(v::Vec{W,T}) where {W,T<:Union{Float32,Float64}} =
754756
vsum(-zero(T), v)
755757
@inline vprod(v::Vec{W,T}) where {W,T<:Union{Float32,Float64}} =

0 commit comments

Comments
 (0)