Skip to content

Commit d726ee5

Browse files
Rework namespace for aarch64
1 parent 3827697 commit d726ee5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
#include <arm_neon.h>
1616
#include <stddef.h> // size_t
1717
namespace LIBC_NAMESPACE_DECL {
18-
namespace arch_vector {
1918
namespace neon {
2019
[[maybe_unused]] LIBC_NO_SANITIZE_OOB_ACCESS LIBC_INLINE static size_t
2120
string_length(const char *src) {
@@ -94,17 +93,18 @@ namespace sve {
9493
return len;
9594
}
9695
} // namespace sve
97-
} // namespace LIBC_NAMESPACE_DECL::arch_vector
9896
} // namespace LIBC_NAMESPACE_DECL
9997
#endif // LIBC_TARGET_CPU_HAS_SVE
10098

101-
namespace LIBC_NAMESPACE_DECL::arch_vector {
99+
namespace LIBC_NAMESPACE_DECL {
100+
namespace internal::arch_vector {
102101
[[maybe_unused]] LIBC_INLINE size_t string_length(const char *src) {
103102
#ifdef LIBC_TARGET_CPU_HAS_SVE
104103
return sve::string_length(src);
105104
#elif defined(__ARM_NEON)
106105
return neon::string_length(src);
107106
#endif
108107
}
109-
} // namespace LIBC_NAMESPACE_DECL::arch_vector
108+
} // namespace internal::arch_vector
109+
} // namespace LIBC_NAMESPACE_DECL
110110
#endif // LLVM_LIBC_SRC_STRING_MEMORY_UTILS_AARCH64_INLINE_STRLEN_H

0 commit comments

Comments
 (0)