Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wardvermeulen committed Nov 7, 2023
1 parent 402187d commit cf04fa2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/layout.jl
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ end
end

@inline @generated function vstorea!(::Type{Vec{N, T}}, ptr::Core.LLVMPtr{T, AS},
x::NTuple{M,<:Any}) where {N, T, AS, M}
x::NTuple{M,<:Any}, i::Integer = 1) where {N, T, AS, M}
alignment = sizeof(T) * N

ex = quote end
Expand All @@ -56,7 +56,7 @@ end
y = @ntuple $N j -> VecElement{T}(x[j+$offset].value)
vec_ptr = Base.bitcast(Core.LLVMPtr{NTuple{N, VecElement{T}}, AS}, ptr)
@boundscheck checkalignment(vec_ptr)
unsafe_store!(vec_ptr, y, $offset ÷ N + 1, Val($alignment))
unsafe_store!(vec_ptr, y, $offset ÷ N + (i - 1) ÷ N + 1, Val($alignment))
end).args)
end

Expand Down

0 comments on commit cf04fa2

Please sign in to comment.