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 n) noexcept -> double
 
constexpr auto abs (float n) noexcept -> float
 
constexpr auto abs (int n) 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 double n) noexcept -> long double
 
constexpr auto abs (long long n) noexcept -> long long
 
constexpr auto abs (long n) noexcept -> long
 
constexpr auto fabs (double n) noexcept -> double
 
constexpr auto fabs (float n) noexcept -> float
 
constexpr auto fabs (long double n) noexcept -> long double
 
constexpr auto fabsf (float n) noexcept -> float
 
constexpr auto fabsl (long double n) noexcept -> long double