WPILibC++ 2024.3.2
trunc.hpp File Reference
#include <cmath>
#include <type_traits>

Go to the source code of this file.

Namespaces

namespace  gcem
 
namespace  gcem::internal
 

Functions

template<typename T >
constexpr T gcem::internal::trunc_int (const T x) noexcept
 
template<typename T >
constexpr T gcem::internal::trunc_check_internal (const T x) noexcept
 
template<>
constexpr float gcem::internal::trunc_check_internal< float > (const float x) noexcept
 
template<>
constexpr double gcem::internal::trunc_check_internal< double > (const double x) noexcept
 
template<>
constexpr long double gcem::internal::trunc_check_internal< long double > (const long double x) noexcept
 
template<typename T >
constexpr T gcem::internal::trunc_check (const T x) noexcept
 
template<typename T >
constexpr return_t< T > gcem::trunc (const T x) noexcept
 Compile-time trunc function. More...