File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
libc/src/string/memory_utils/aarch64 Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1515#include < arm_neon.h>
1616#include < stddef.h> // size_t
1717namespace LIBC_NAMESPACE_DECL {
18- namespace neon {
18+ namespace internal :: neon {
1919[[maybe_unused]] LIBC_NO_SANITIZE_OOB_ACCESS LIBC_INLINE static size_t
2020string_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
You can’t perform that action at this time.
0 commit comments