simdpp::abs(integer)

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

Computes absolute value in a vector with signed integer values. The implementation behaves as if the following set of overloads is provided:

Ret Vec1
uint8 int8
uint16 int16
uint32 int32
uint64 int64

The return type is a vector expression.

Contents

Parameters

a - integer vector

Return value

A vector expression evaluating to abs(a).

Equivalent operation

r0 = abs(a0)
...
rN = abs(aN)

See also