Skip to content

Commit c8ecb6d

Browse files
committed
_gesp
1 parent 54b291e commit c8ecb6d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/vectorizationbase_compat/subsetview.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
StridedPointer{$T,$(N-1),$newC,$B,$newR}($gptr, $newstrd, $newoffsets)
3333
end
3434
end
35-
@generated function _gesp(sp, ::StaticInt{I}, i::Integer) where {I,N,T}
35+
@inline _gesp(sp::VectorizationBase.FastRange, ::StaticInt{1}, i) = gesp(sp, (i,))
36+
@generated function _gesp(sp::AbstractStridedPointer{T,N}, ::StaticInt{I}, i::Integer) where {I,N,T}
3637
t = Expr(:tuple)
3738
for j 1:I-1
3839
push!(t.args, staticexpr(0))

0 commit comments

Comments
 (0)