WPILibC++ 2024.3.2
gcd.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  gcem
 
namespace  gcem::internal
 

Functions

template<typename T >
constexpr T gcem::internal::gcd_recur (const T a, const T b) noexcept
 
template<typename T , typename std::enable_if< std::is_integral< T >::value >::type * = nullptr>
constexpr T gcem::internal::gcd_int_check (const T a, const T b) noexcept
 
template<typename T1 , typename T2 , typename TC = common_t<T1,T2>>
constexpr TC gcem::internal::gcd_type_check (const T1 a, const T2 b) noexcept
 
template<typename T1 , typename T2 >
constexpr common_t< T1, T2 > gcem::gcd (const T1 a, const T2 b) noexcept
 Compile-time greatest common divisor (GCD) function. More...