|
inlineconstexpr |
Computes the bitwise AND of its arguments.
Defined in Header
Parameters
Return value
The value of the bitwise AND of its arguments in the type of the first one is returned.
Although the infix notation with &
is supported for two parameters, the &
operator on standard scalar types is the original one and so can lead to automatic promotion. Moreover, and due to C++ limitations is not available for floating point scalar entries.
Masked Call
The call eve::bit_and[mask](x, ...)
provides a masked version of bit_and
which is equivalent to if_else(mask, bit_and(x, ...), x)
Example