Skip to content

Commit 75c0216

Browse files
Fix aarch64
1 parent 5f27129 commit 75c0216

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

libc/src/string/memory_utils/aarch64/inline_strlen.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#include <arm_neon.h>
1616
#include <stddef.h> // size_t
1717
namespace LIBC_NAMESPACE_DECL {
18-
namespace neon {
18+
namespace internal::neon {
1919
[[maybe_unused]] LIBC_NO_SANITIZE_OOB_ACCESS LIBC_INLINE static size_t
2020
string_length(const char *src) {
2121
using Vector __attribute__((may_alias)) = uint8x8_t;
@@ -43,15 +43,15 @@ string_length(const char *src) {
4343
(cpp::countr_zero(cmp) >> 3));
4444
}
4545
}
46-
} // namespace neon
46+
} // namespace internal::neon
4747
} // namespace LIBC_NAMESPACE_DECL
4848
#endif // __ARM_NEON
4949

5050
#ifdef LIBC_TARGET_CPU_HAS_SVE
5151
#include "src/__support/macros/optimization.h"
5252
#include <arm_sve.h>
53-
namespace LIBC_NAMESPACE_DECL::arch_vector {
54-
namespace sve {
53+
namespace LIBC_NAMESPACE_DECL {
54+
namespace internal::sve {
5555
[[maybe_unused]] LIBC_INLINE static size_t string_length(const char *src) {
5656
const uint8_t *ptr = reinterpret_cast<const uint8_t *>(src);
5757
// Initialize the first-fault register to all true
@@ -92,7 +92,7 @@ namespace sve {
9292
len += svcntp_b8(all_true, before_zero);
9393
return len;
9494
}
95-
} // namespace sve
95+
} // namespace internal::sve
9696
} // namespace LIBC_NAMESPACE_DECL
9797
#endif // LIBC_TARGET_CPU_HAS_SVE
9898

0 commit comments

Comments
 (0)