tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
abs.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  etl
 

Functions

constexpr auto abs (double arg) noexcept -> double
 
constexpr auto abs (float arg) noexcept -> float
 
constexpr auto abs (int arg) noexcept -> int
 Computes the absolute value of an integer number. The behavior is undefined if the result cannot be represented by the return type. If abs is called with an unsigned integral argument that cannot be converted to int by integral promotion, the program is ill-formed.
 
constexpr auto abs (long arg) noexcept -> long
 
constexpr auto abs (long double arg) noexcept -> long double
 
constexpr auto abs (long long arg) noexcept -> long long