folly::find_fixed_detail::find16bytes

Searches 16 bytes for a value using a SIMD register.

Synopsis

Declared in <folly/algorithm/simd/FindFixed.h>

template<typename T>
std::optional<std::size_t>
find16bytes(
    T const* from,
    T x);

Return Value

Index of the first matching element, or std::nullopt if not found.

Parameters

NameDescription
fromPointer to the 16 bytes to search.
xThe value to search for.