[libc-commits] [libc] [libc] Implement generic SIMD helper 'simd.h' and implement strlen (PR #152605)

Michael Jones via libc-commits libc-commits at lists.llvm.org
Fri Aug 29 12:53:35 PDT 2025


================
@@ -23,14 +23,16 @@
 #include "src/__support/macros/optimization.h" // LIBC_UNLIKELY
 
 #if defined(LIBC_COPT_STRING_UNSAFE_WIDE_READ)
-#if defined(LIBC_TARGET_ARCH_IS_X86)
+#if LIBC_HAS_VECTOR_TYPE
+#include "src/string/memory_utils/generic/inline_strlen.h"
----------------
michaelrj-google wrote:

I'd expect the target specific versions to be faster, unless there's a reason that they shouldn't be.

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


More information about the libc-commits mailing list