Skip to content

Commit cc30ea0

Browse files
committed
Try resolve global
1 parent 7f55a8a commit cc30ea0

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

include/xsimd/arch/xsimd_neon.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,14 @@
2727
#include "./xsimd_common_fwd.hpp"
2828

2929
#define APPLY_TEMPLATE(T, X) T<X>
30+
#define APPLY_GLOBAL(OP) ::OP
3031

3132
#define WRAP_BINARY_IMPL(OP, VEC, RT) \
3233
namespace wrap \
3334
{ \
3435
XSIMD_INLINE auto(x_##OP)(VEC a, VEC b) noexcept -> APPLY_TEMPLATE(RT, VEC) \
3536
{ \
36-
return ::OP((a), (b)); \
37+
return APPLY_GLOBAL(OP)(a, b); \
3738
} \
3839
}
3940

@@ -61,7 +62,7 @@
6162
{ \
6263
XSIMD_INLINE auto(x_##OP)(VEC a) noexcept -> VEC \
6364
{ \
64-
return ::OP(a); \
65+
return APPLY_GLOBAL(OP)(a); \
6566
} \
6667
}
6768

0 commit comments

Comments
 (0)