Skip to content

Commit

Permalink
SimdArray: use inline instead of Vc_INTRINSIC
Browse files Browse the repository at this point in the history
SimdArray::apply may be expensive so let the compiler choose whether to
make function call or not. Vc_INTRINSIC forces inlining and can thus
make the code blow up quite a bit.

Signed-off-by: Matthias Kretz <kretz@kde.org>
  • Loading branch information
mattkretz committed Oct 25, 2016
1 parent 444ad27 commit 826aa8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/simdarray.h
Expand Up @@ -1033,12 +1033,12 @@ public:

// apply {{{2
///\copybrief Vector::apply(F &&) const
template <typename F> Vc_INTRINSIC SimdArray apply(F &&f) const
template <typename F> inline SimdArray apply(F &&f) const
{
return {data0.apply(f), data1.apply(f)};
}
///\copybrief Vector::apply(F &&, MaskType) const
template <typename F> Vc_INTRINSIC SimdArray apply(F &&f, const mask_type &k) const
template <typename F> inline SimdArray apply(F &&f, const mask_type &k) const
{
return {data0.apply(f, Split::lo(k)), data1.apply(f, Split::hi(k))};
}
Expand Down

0 comments on commit 826aa8f

Please sign in to comment.