WPILibC++ 2023.4.3-108-ge5452e3
floor.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  internal
 

Functions

template<typename T >
constexpr int internal::floor_resid (const T x, const T x_whole) noexcept
 
template<typename T >
constexpr T internal::floor_int (const T x, const T x_whole) noexcept
 
template<typename T >
constexpr T internal::floor_check_internal (const T x) noexcept
 
template<>
constexpr float internal::floor_check_internal< float > (const float x) noexcept
 
template<>
constexpr double internal::floor_check_internal< double > (const double x) noexcept
 
template<>
constexpr long double internal::floor_check_internal< long double > (const long double x) noexcept
 
template<typename T >
constexpr T internal::floor_check (const T x) noexcept
 
template<typename T >
constexpr return_t< T > floor (const T x) noexcept
 Compile-time floor function. More...
 

Function Documentation

◆ floor()

template<typename T >
constexpr return_t< T > floor ( const T  x)
constexprnoexcept

Compile-time floor function.

Parameters
xa real-valued input.
Returns
computes the floor-value of the input.