NSIMD documentation
Index | Tutorial | FAQ | Contribute | API overview | API reference | Wrapped intrinsics | Modules
Fixed-point arithmetic module documentation
Overview | API reference

absolute value

Returns the absolute value of the argument.

Template parameter type for T:

When using the following typedef :

typedef nsimd::fixed_point::fp_t<lf, rt> fp_t

The T template parameter is one of the following types depending on the operator:

nsimd::fixed_point::pack<fp_t>
nsimd::fixed_point::packl<fp_t>
nsimd::fixed_point::fp_t<lf, rt>

C++ API

namespace nsimd {
namespace fixed_point {

pack<T> abs(const pack<T> & a0);

} // namespace fixed_point
} // namespace nsimd