Skip to content

Commit 845a556

Browse files
committed
Don't needlessly create anon func
1 parent 32b1077 commit 845a556

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/codegen/lower_threads.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ end
2727
@inline function avx_launch(
2828
::Val{UNROLL}, ::Val{OPS}, ::Val{ARF}, ::Val{AM}, ::Val{LPSYM}, lb::LB, vargs::V, tid
2929
) where {UNROLL,OPS,ARF,AM,LPSYM,LB,V}
30-
ThreadingUtilities.launch(tid, pointer(AVX{UNROLL,OPS,ARF,AM,LPSYM,LB,V}()), (lb,vargs)) do p, fptr, args
31-
setup_avx_threads!(p, fptr, args)
32-
end
30+
ThreadingUtilities.launch(setup_avx_threads!, tid, pointer(AVX{UNROLL,OPS,ARF,AM,LPSYM,LB,V}()), (lb,vargs))
3331
end
3432

3533
# function approx_cbrt(x)

0 commit comments

Comments
 (0)