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

Go to the source code of this file.

Namespaces

namespace  etl
 

Functions

constexpr auto fdim (double x, double y) noexcept -> double
 Returns the positive difference between x and y, that is, if x>y, returns x-y, otherwise (if x≤y), returns +0.
 
constexpr auto fdim (float x, float y) noexcept -> float
 Returns the positive difference between x and y, that is, if x>y, returns x-y, otherwise (if x≤y), returns +0.
 
constexpr auto fdim (long double x, long double y) noexcept -> long double
 Returns the positive difference between x and y, that is, if x>y, returns x-y, otherwise (if x≤y), returns +0.
 
constexpr auto fdimf (float x, float y) noexcept -> float
 Returns the positive difference between x and y, that is, if x>y, returns x-y, otherwise (if x≤y), returns +0.
 
constexpr auto fdiml (long double x, long double y) noexcept -> long double
 Returns the positive difference between x and y, that is, if x>y, returns x-y, otherwise (if x≤y), returns +0.