units
Use physical dimensions at compile-time or run-time.
|
Definition of vnix::gcd. More...
Go to the source code of this file.
Namespaces | |
vnix | |
Thomas E. Vaughan's public software. | |
vnix::impl | |
Typedefs | |
template<typename U , typename V > | |
using | vnix::gcd_promoted = decltype(U()%V()) |
Output-type resulting from modular division of input-types. More... | |
Functions | |
template<typename A , typename B > | |
constexpr gcd_promoted< A, B > | vnix::impl::basic_gcd (A a, B b) |
Greatest common divisor of two nonnegative numbers. More... | |
template<typename A , typename B > | |
constexpr gcd_promoted< A, B > | vnix::gcd (A a, B b) |
Greatest common divisor of two numbers; only absolute values are used. More... | |