simdpp::isnan2

From libsimdpp-docs
< fp
template<unsigned N, class E1, class E2>
Ret<N, _DETAIL_> isnan( Vec1<N,E1> a, Vec2<N,E2> b );

Checks if the values in the floating-point vector a and b are Not-a-Number values. The implementation behaves as if the following set of overloads is provided:

Ret Vec
mask_float32 float32
mask_float64 float64

The return type is a vector expression.

Parameters[edit]

a - floating-point vector

Return value[edit]

A vector expression evaluating for each value to all bits set if at least one of the corresponding values from either a or b is not a number and zero otherwise.

Equivalent operation[edit]

r0 = isnan(a0) || isnan(b0) ? 0xff...00 : 0
...
rN = isnan(aN) || isnan(bN) ? 0xff...00 : 0

See also[edit]