6 #include "../vnix/rat.hpp" 12 TEST_CASE(
"Number of bits is properly clamped.",
"[common-denom-params]") {
16 using CDP =
decltype(cdp);
17 REQUIRE(CDP::LCD_BITS == 64);
18 REQUIRE(CDP::N1_BITS == 64);
19 REQUIRE(CDP::N2_BITS == 56);
constexpr common_denom_params< NB1, DB1, NB2, DB2 > common_denom(rational< NB1, DB1 > r1, rational< NB2, DB2 > r2)
Compute least common denominator and corresponding numerators for the comparison of a pair of rationa...
constexpr rational(stype n=0, stype d=1)
Initialize from numerator and denominator.
Thomas E. Vaughan's public software.
Model of a fixed-precision rational number.
Classes and functions supporting a model of a fixed-precision rational number.