Skip to content

Commit fb45ed3

Browse files
committed
Add vecmemaybe for Tuples.
1 parent 6a5fb90 commit fb45ed3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ IfElse = "0.1"
2020
OffsetArrays = "1.4.1, 1.5"
2121
SLEEFPirates = "0.6.4"
2222
UnPack = "1"
23-
VectorizationBase = "0.15"
23+
VectorizationBase = "0.15.1"
2424
julia = "1.5"
2525

2626
[extras]

src/condense_loopset.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,7 @@ make_crashy(q) = Expr(:macrocall, Symbol("@inbounds"), LineNumberNode(@__LINE__,
303303

304304
@inline vecmemaybe(x::NativeTypes) = x
305305
@inline vecmemaybe(x::VectorizationBase._Vec) = Vec(x)
306+
@inline vecmemaybe(x::Tuple) = VectorizationBase.VecUnroll(x)
306307

307308
function setup_call_inline(ls::LoopSet, inline::Int8 = zero(Int8), U::Int8 = zero(Int8), T::Int8 = zero(Int8))
308309
call = generate_call(ls, (inline,U,T))

0 commit comments

Comments
 (0)