simdpp::cmp_eq(integer)

From cppreference.com
< int
template<unsigned N, class E1, class E2>
Ret<N, _DETAIL_> cmp_eq( Vec1<N,E1> a, Vec2<N,E2> b );

Compares values in two integer vectors. The implementation behaves as if the following set of overloads is provided:

Ret Vec1 Vec2
mask_int8 any int8 vector or mask any int8 vector or mask
mask_int16 any int16 vector or mask any int16 vector or mask
mask_int32 any int32 vector or mask any int32 vector or mask
mask_int64 any int64 vector or mask any int64 vector or mask

The return type is a vector expression.

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, float, double. Each element of the expanded vector is set to the source value, converting it using standard conversions if needed.

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 - integer vectors

Return value

A vector expression evaluating to a == b.

Equivalent operation

r0 = a0 == b0 ? 0xff...ff : 0
...
rN = aN == bN ? 0xff...ff : 0

See also