Skip to content

Commit 1a6f9fd

Browse files
authored
[libc++] Enable algorithm vectorization on arm neon (#128873)
Previously the wrong detection macro has been used to check whether arm NEON is available. This fixes it, and removes a few unnecessary includes from `__algorithm/simd_utils.h` as a drive-by.
1 parent 1aea024 commit 1a6f9fd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

libcxx/include/__algorithm/simd_utils.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
#include <__bit/countr.h>
1616
#include <__config>
1717
#include <__cstddef/size_t.h>
18-
#include <__type_traits/is_arithmetic.h>
19-
#include <__type_traits/is_same.h>
2018
#include <__utility/integer_sequence.h>
2119
#include <cstdint>
2220

@@ -78,7 +76,7 @@ using __get_as_integer_type_t _LIBCPP_NODEBUG = typename __get_as_integer_type_i
7876
# if defined(__AVX__) || defined(__MVS__)
7977
template <class _Tp>
8078
inline constexpr size_t __native_vector_size = 32 / sizeof(_Tp);
81-
# elif defined(__SSE__) || defined(__ARM_NEON__)
79+
# elif defined(__SSE__) || defined(__ARM_NEON)
8280
template <class _Tp>
8381
inline constexpr size_t __native_vector_size = 16 / sizeof(_Tp);
8482
# elif defined(__MMX__)

0 commit comments

Comments
 (0)