[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 15:47:58 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:
That link only has the x86 specific versions, I don't see the generic one. Either way, I have realized I should probably just do proper testing on both of them so I'm not going to block this PR on performance.
https://github.com/llvm/llvm-project/pull/152605
More information about the libc-commits
mailing list