Skip to content

Commit f85560f

Browse files
authored
slight performance deterioration fixed (#177)
1 parent 96a0af0 commit f85560f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/simdfunction.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ struct SIMDFunction{F,C1,C2}
2424
o2step::Int
2525
end
2626

27-
(sf::SIMDFunction{F,C1,C2})(i, x, θ) where {F,C1,C2} = sf.f(i, x, θ)
28-
(sf::SIMDFunction{F,C1,C2})(i, x, θ) where {F<:Real,C1,C2} = sf.f
27+
@inline (sf::SIMDFunction{F,C1,C2})(i, x, θ) where {F,C1,C2} = sf.f(i, x, θ)
28+
@inline (sf::SIMDFunction{F,C1,C2})(i, x, θ) where {F <: Real,C1,C2} = sf.f
2929

3030
"""
3131
SIMDFunction(gen::Base.Generator, o0 = 0, o1 = 0, o2 = 0)

0 commit comments

Comments
 (0)