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

Joseph Huber via libc-commits libc-commits at lists.llvm.org
Fri Aug 29 12:13:30 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"
----------------
jhuber6 wrote:

That'd be my expectation, unless we expect the results to be significantly different.

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


More information about the libc-commits mailing list