header_utils
Loading...
Searching...
No Matches
ghassanpl::constexpr_math Namespace Reference

Functions

constexpr bool isnan (std::integral auto f) noexcept
constexpr bool isnan (float f)
constexpr bool isnan (double f)
constexpr bool isfinite (std::integral auto f) noexcept
constexpr bool isfinite (float f)
constexpr bool isfinite (double f)
template<std::floating_point T, typename RESULT = T>
constexpr RESULT floor (T num) noexcept
template<typename T>
constexpr bool signbit (T num)
template<typename T>
constexpr int sign (T val)
template<std::floating_point T, typename RESULT = T>
constexpr RESULT ceil (T num) noexcept
template<std::floating_point T, typename RESULT = T>
constexpr RESULT trunc (T num) noexcept
template<arithmetic T>
constexpr auto abs (T num)
template<arithmetic T, arithmetic U, arithmetic V>
constexpr auto fma (T a, U b, V c) noexcept
template<arithmetic T, arithmetic U>
constexpr auto fmod (T a, U b) noexcept
template<arithmetic T>
constexpr auto sqrt (T value) noexcept
template<arithmetic T, arithmetic U>
constexpr auto pow (T base, U exponent) noexcept
template<std::integral T>
constexpr unsigned ilog2 (T val) noexcept
constexpr double unlerp (const double a, const double b, const double t) noexcept

Detailed Description