◆ bit_and
Callable object computing the bitwise AND operation. Required header: Members Functions
Definition: value.hpp:31 Parameters a0, Return value A value of the same type as a0 containing the elementwise bitwise AND of a0 and all
auto operator[]( conditional_expression auto cond ) const noexcept;
Higher-order function generating a masked version of eve::bit_and Parameters
Return value A Callable object so that the expression Supported decoratorsno decorators are supported ExampleSee it live on Compiler Explorer #include <eve/function/bit_and.hpp>
#include <eve/literals.hpp>
#include <eve/wide.hpp>
#include <iostream>
int main()
{
using w_t = eve::wide<std::uint32_t, eve::fixed<4>>;
w_t pi = {3, 2, 3, 4}, qi = {4, 1, 1, ~0};
std::uint32_t z = 5;
std::cout << "---- simd" << '\n'
<< " <- qi = " << qi << '\n'
<< " <- z = " << z << '\n'
std::uint32_t mask = 1 >> 31;
float xi = -3.4565;
std::cout << "---- scalar" << '\n'
<< " <- xi = " << xi << '\n'
<< " <- mask = " << mask << '\n'
std::cout << "---- multi parameters" << '\n'
return 0;
}
constexpr callable_bit_and_ bit_and Callable object computing the bitwise AND operation. Definition: bit_and.hpp:79 |