21#ifndef _gcem_trunc_HPP
22#define _gcem_trunc_HPP
33 return( T(
static_cast<llint_t>(x)) );
51 return(
abs(x) >= 8388608.f ? \
64 return(
abs(x) >= 4503599627370496. ? \
77 return(
abs(x) >= 9223372036854775808.l ? \
92 GCLIM<T>::quiet_NaN() :
UnitType abs(const UnitType x) noexcept
Compute absolute value.
Definition: math.h:721
constexpr common_t< T1, T2 > min(const T1 x, const T2 y) noexcept
Compile-time pairwise minimum function.
Definition: min.hpp:35
unsigned long long int ullint_t
Definition: gcem_options.hpp:69
long long int llint_t
Definition: gcem_options.hpp:71
Definition: Eigen_Colamd.h:50
constexpr T trunc_check_internal(const T x) noexcept
Definition: trunc.hpp:39
constexpr float trunc_check_internal< float >(const float x) noexcept
Definition: trunc.hpp:48
constexpr bool is_nan(const T x) noexcept
Definition: is_nan.hpp:36
constexpr double trunc_check_internal< double >(const double x) noexcept
Definition: trunc.hpp:61
constexpr bool is_finite(const T x) noexcept
Definition: is_finite.hpp:34
constexpr long double trunc_check_internal< long double >(const long double x) noexcept
Definition: trunc.hpp:74
constexpr T trunc_check(const T x) noexcept
Definition: trunc.hpp:87
constexpr T trunc_int(const T x) noexcept
Definition: trunc.hpp:30
constexpr int sgn(const T x) noexcept
Compile-time sign function.
Definition: sgn.hpp:34
constexpr return_t< T > trunc(const T x) noexcept
Compile-time trunc function.
Definition: trunc.hpp:115