Skip to content

Commit

Permalink
Merge pull request #31 from getzdan/patch-1
Browse files Browse the repository at this point in the history
Quick change to fix #30
  • Loading branch information
Jutho committed Jul 6, 2017
2 parents 0eb0443 + 3b94862 commit 0a19cf7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/auxiliary/meta.jl
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,14 @@ function _stridedloops(N::Int, dims::Symbol, args...)
forex = Expr(:(=), gensym(), rangeex)
ex = Expr(:for, forex, ex)
if d==1
ex = Expr(:macrocall, Symbol("@simd"), ex)
if VERSION < v"0.7-"
ex = Expr(:macrocall, Symbol("@simd"), ex)
else
ex = Expr(:macrocall, Symbol("@simd"), LineNumberNode(@__LINE__), ex)
end
end
end
pre = [Expr(:(=),Symbol(args[i],N),args[i+1]) for i in argiter]
ex = Expr(:block, pre..., ex)
return ex
end

0 comments on commit 0a19cf7

Please sign in to comment.