|
inlineconstexpr |
Computes elementwise the bit pattern in which the only bit set (if it exists) is the first bit set 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 set (beginning with the least significant bit) in the input.
Masked Call
The call eve::firstbitset[mask](x)
provides a masked version of firstbitset
which is equivalent to if_else(mask, firstbitset(x), x)
Example