[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 10:57:36 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:
do we want the generic vector strlen to be the default or the target specific one? Either way we should probably consider a followup PR which allows configuring this.
https://github.com/llvm/llvm-project/pull/152605
More information about the libc-commits
mailing list