21#ifndef _gcem_round_HPP
22#define _gcem_round_HPP
61 return(
abs(x) >= 8388608.f ? \
74 return(
abs(x) >= 4503599627370496. ? \
87 return(
abs(x) >= 9223372036854775808.l ? \
128 if (std::is_constant_evaluated()) {
131 return std::round(x);
constexpr float round_check_internal< float >(const float x) noexcept
Definition round.hpp:58
constexpr bool is_nan(const T x) noexcept
Definition is_nan.hpp:39
constexpr long double round_check_internal< long double >(const long double x) noexcept
Definition round.hpp:84
constexpr double round_check_internal< double >(const double x) noexcept
Definition round.hpp:71
constexpr T floor_check(const T x) noexcept
Definition floor.hpp:102
constexpr bool is_finite(const T x) noexcept
Definition is_finite.hpp:37
constexpr T round_check_internal(const T x) noexcept
Definition round.hpp:49
constexpr T round_int(const T x) noexcept
Definition round.hpp:36
constexpr T round_check(const T x) noexcept
Definition round.hpp:97
constexpr return_t< T > round(const T x) noexcept
Compile-time round function.
Definition round.hpp:125
constexpr T abs(const T x) noexcept
Compile-time absolute value function.
Definition abs.hpp:40
std::numeric_limits< T > GCLIM
Definition gcem_options.hpp:74
typename std::conditional< std::is_integral< T >::value, double, T >::type return_t
Definition gcem_options.hpp:77
constexpr int sgn(const T x) noexcept
Compile-time sign function.
Definition sgn.hpp:37