Searches a fixed-size range by splitting off a leading SIMD register.
Declared in <folly/algorithm/simd/FindFixed.h>
template<
typename T,
std::size_t N>
std::optional<std::size_t>
findSplitFirstRegister(
std::span<T const, N> where,
T x);
Index of the first matching element, or std::nullopt if not found.
| Name | Description |
|---|---|
| where | The fixed-size range to search. |
| x | The value to search for. |