|
inlineconstexpr |
Computes elementwise the bit pattern in which the only bit set (if it exists) is the first bit unset in the input.
Defined in Header
Parameters
x
: argument.Return value
Computes elementwise the bit pattern in which the only bit set (if it exists) is the first bit unset (beginning with the least significant bit) in the input.
Masked Call
The call eve::firstbitunset[mask](x)
provides a masked version of firstbitunset
which is equivalent to if_else(mask, firstbitunset(x), x)
Example