MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / inner_abs

Function inner_abs

extern/boost/boost/rational.hpp:418–420  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

416 { return b == zero ? a : inner_gcd(b, a % b, zero); }
417
418 static BOOST_CONSTEXPR
419 int_type inner_abs( param_type x, int_type const &zero = int_type(0) )
420 { return x < zero ? -x : +x; }
421
422 // Representation note: Fractions are kept in normalized form at all
423 // times. normalized form is defined as gcd(num,den) == 1 and den > 0.

Callers 1

is_normalizedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected