|
inlineconstexpr |
Returns a logical true if and only if the element value is a power of 2.
Defined in Header
Parameters
x
: argument.Return value
Checks elementwise if x
is an integral power of two.
Masked Call
The call eve;is_pow2[mask](x)
provides a masked version of eve::is_pow2
which is equivalent to if_else (mask, is_pow2(x), eve::false( eve::as(x)))
.
Example