simdpp::bit_and

From libsimdpp-docs
template<unsigned N, class V1, class V2>
PROMOTED_EXPRESSION bit_and( const any_vec<N,V1>& a, const any_vec<N,V2>& b );

Computes bitwise AND 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.

Scalar arguments[edit]

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[edit]

a, b - any two vectors of same size

Return value[edit]

A vector expression evaluating to bitwise a & b.

Equivalent operation[edit]

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

See also[edit]