Searches 16 bytes for a value using a SIMD register.
Declared in <folly/algorithm/simd/FindFixed.h>
template<typename T>
std::optional<std::size_t>
find16bytes(
T const* from,
T x);
Index of the first matching element, or std::nullopt if not found.
| Name | Description |
|---|---|
| from | Pointer to the 16 bytes to search. |
| x | The value to search for. |