◆ bit_andnot
Callable object computing the bitwise ANDNOT operation. Required header: Members Functions
Definition: value.hpp:31 Parameters a0, Return value The value returned is of same type as
auto operator[]( conditional_expression auto cond ) const noexcept;
Higher-order function generating a masked version of eve::bit_andnot 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_andnot.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'
return 0;
}
constexpr callable_bit_andnot_ bit_andnot Callable object computing the bitwise ANDNOT operation. Definition: bit_andnot.hpp:81 |