WPILibC++ 2024.3.2
floor.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 int gcem::internal::floor_resid (const T x, const T x_whole) noexcept
 
template<typename T >
constexpr T gcem::internal::floor_int (const T x, const T x_whole) noexcept
 
template<typename T >
constexpr T gcem::internal::floor_check_internal (const T x) noexcept
 
template<>
constexpr float gcem::internal::floor_check_internal< float > (const float x) noexcept
 
template<>
constexpr double gcem::internal::floor_check_internal< double > (const double x) noexcept
 
template<>
constexpr long double gcem::internal::floor_check_internal< long double > (const long double x) noexcept
 
template<typename T >
constexpr T gcem::internal::floor_check (const T x) noexcept
 
template<typename T >
constexpr return_t< T > gcem::floor (const T x) noexcept
 Compile-time floor function. More...