Skip to content

Commit a692739

Browse files
committed
add @avx
1 parent 1e37c5f commit a692739

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mapreduce.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ for (op, init) in zip((:+, :max, :min), (:zero, :identity, :identity))
9797

9898
@eval function vreduce(::typeof($op), arg)
9999
s = $init(arg[1])
100-
for i in 1:length(arg)
100+
@avx for i in 1:length(arg)
101101
s = $op(s, arg[i])
102102
end
103103
return s

0 commit comments

Comments
 (0)