Skip to content

Commit 9f5ea41

Browse files
committed
Added masked vload method for LoopValue.
1 parent 7fb35f4 commit 9f5ea41

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/add_loads.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ end
5454
struct LoopValue end
5555
@inline VectorizationBase.stridedpointer(::LoopValue) = LoopValue()
5656
@inline SIMDPirates.vload(::LoopValue, i::Tuple{_MM{W}}) where {W} = SVec(SIMDPirates.vrangeincr(Val{W}(), @inbounds(i[1].i), Val{1}()))
57+
@inline SIMDPirates.vload(::LoopValue, i::Tuple{_MM{W}}, ::Unsigned) where {W} = SVec(SIMDPirates.vrangeincr(Val{W}(), @inbounds(i[1].i), Val{1}()))
5758
@inline VectorizationBase.load(::LoopValue, i::Integer) = i + one(i)
5859
@inline VectorizationBase.load(::LoopValue, i::Tuple{I}) where {I<:Integer} = @inbounds(i[1]) + one(I)
5960
@inline Base.eltype(::LoopValue) = Int8

0 commit comments

Comments
 (0)