◆ bit_notand
Callable object computing the bitwise NOTAND 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_notand 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_notand.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_notand_ bit_notand Callable object computing the bitwise NOTAND operation. Definition: bit_notand.hpp:81 |