Skip to content

Commit 08b412e

Browse files
committed
Extra indirection
1 parent 25a8f5e commit 08b412e

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

include/xsimd/arch/xsimd_neon.hpp

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,15 @@
2626
#include "./common/xsimd_common_cast.hpp"
2727
#include "./xsimd_common_fwd.hpp"
2828

29-
#define WRAP_BINARY_IMPL(OP, VEC, RT) \
30-
namespace wrap \
31-
{ \
32-
XSIMD_INLINE auto(OP)(VEC a, VEC b) noexcept -> RT<VEC> \
33-
{ \
34-
return (::OP)(a, b); \
35-
} \
29+
#define APPLY_TEMPLATE(T, X) T<X>
30+
31+
#define WRAP_BINARY_IMPL(OP, VEC, RT) \
32+
namespace wrap \
33+
{ \
34+
XSIMD_INLINE auto(OP)(VEC a, VEC b) noexcept -> APPLY_TEMPLATE(RT, VEC) \
35+
{ \
36+
return (::OP)(a, b); \
37+
} \
3638
}
3739

3840
#define WRAP_BINARY_UINT_EXCLUDING_64(OP_U8, OP_U16, OP_U32, RT) \

0 commit comments

Comments
 (0)