◆ bitwise_notand()

Value0 boost::simd::bitwise_notand ( Value0 const &  x,
Value1 const &  y 
)

This function object computes the bitwise not and of its parameters.

The result type is the one of the first operand.

Header <boost/simd/function/bitwise_notand.hpp>
Precondition
The operands must share the same bit size.
Example:
#include <boost/simd/bitwise.hpp>
#include <boost/simd/constant/nan.hpp>
#include <boost/simd/pack.hpp>
#include <iostream>
namespace bs = boost::simd;
int main() {
pack_it pi = {3, -2, 1, 0};
pack_it qi = {4, -1, 5, 25};
std::cout << "---- simd" << '\n'
<< " <- pi = " << pi << '\n'
<< " <- qi = " << qi << '\n'
<< " -> bs::bitwise_notand(pi, qi) = " << bs::bitwise_notand(pi, qi)
<< '\n';
std::uint32_t xi = 3, yi = 5;
std::cout << "---- scalar" << '\n'
<< " xi = " << xi << '\n'
<< " yi = " << yi << '\n'
<< " -> bs::bitwise_notand(xi, yi) = " << bs::bitwise_notand(xi, yi)
<< '\n';
return 0;
}
Possible output:
---- simd
<- pi = (3, 4294967294, 1, 0)
<- qi = (4, 4294967295, 5, 25)
-> bs::bitwise_notand(pi, qi) = (4, 1, 4, 25)
---- scalar
xi = 3
yi = 5
-> bs::bitwise_notand(xi, yi) = 4