[libc-commits] [libc] Implement vector version of memchr, and dispatch to same (PR #177711)

Joseph Huber via libc-commits libc-commits at lists.llvm.org
Mon Feb 2 12:50:54 PST 2026


================
@@ -46,6 +47,48 @@ LIBC_NO_SANITIZE_OOB_ACCESS LIBC_INLINE size_t string_length(const char *src) {
              cpp::find_first_set(mask);
   }
 }
+
+LIBC_INLINE static void *calculate_find_first_character_return(
----------------
jhuber6 wrote:

We have `find_first_set` and `find_last_set` in `simd.h`. Do those help here?

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


More information about the libc-commits mailing list