[libc-commits] [libc] [llvm] Add vector-based strlen implementation for x86_64 and aarch64 (PR #152389)

via libc-commits libc-commits at lists.llvm.org
Mon Aug 18 13:51:20 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);
----------------
Sterling-Augustine wrote:

Done.

https://github.com/llvm/llvm-project/pull/152389


More information about the libc-commits mailing list