simdpp::bit_andnot

From cppreference.com
template<unsigned N, class V1, class V2>
PROMOTED_EXPRESSION bit_andnot( const any_vec<N,V1>& a, const any_vec<N,V2>& b );

Computes bitwise AND NOT of integer or floating-point vectors.

The return type is a vector expression of N bytes. The vector type is governed by the expression promotion rules.

Contents

Scalar arguments

Several additional overloads are provided to implement implicit conversions from scalar types. Values of the following types are accepted as the first or the second argument: int32_t, int64_t, uint32_t, uint64_t. Each element of the expanded vector contains bitwise representation of the source value, with the highest bits discarded if the source data is too large.

The return type is a vector expression. The vector type is the same as the vector argument except that masks are unmasked to respective non-mask vector types.

Parameters

a, b - any two vectors of the same size

Return value

A vector expression evaluating to bitwise a & ~b.

Equivalent operation

r0 = a0 & ~b0
...
rN = aN & ~bN

See also