[libc] [llvm] Add vector-based strlen implementation for x86_64 and aarch64 (PR #152389)
Joseph Huber via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 6 16:52:53 PDT 2025
================
@@ -90,7 +102,7 @@ template <typename T> LIBC_INLINE size_t string_length(const T *src) {
// be aligned to a word boundary, so it's the size we use for reading the
// string a block at a time.
if constexpr (cpp::is_same_v<T, char>)
- return string_length_wide_read<unsigned int>(src);
+ return LIBC_SRC_STRING_MEMORY_UTILS_STRLEN_WIDE_READ<unsigned int>(src);
----------------
jhuber6 wrote:
Doesn't `glibc` do wide reads by default? Should we do the same thing?
https://github.com/llvm/llvm-project/pull/152389
More information about the llvm-commits
mailing list