Function memchr::memmem::searcher::searcher_kind_avx2

source ·
unsafe fn searcher_kind_avx2(
    searcher: &Searcher,
    _prestate: &mut PrefilterState,
    haystack: &[u8],
    needle: &[u8],
) -> Option<usize>
Expand description

Reads from the avx2 field of SearcherKind to execute the x86_64 AVX2 vectorized substring search implementation.

§Safety

Callers must ensure that the searcher.kind.avx2 union field is set.