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

Function gcd

extern/boost/boost/integer/common_factor_rt.hpp:481–484  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

479//
480template <typename Integer>
481inline typename boost::enable_if_c<std::numeric_limits<Integer>::is_specialized, boost::rational<Integer> >::type gcd(boost::rational<Integer> const &a, boost::rational<Integer> const &b)
482{
483 return boost::rational<Integer>(static_cast<Integer>(gcd(a.numerator(), b.numerator())), static_cast<Integer>(lcm(a.denominator(), b.denominator())));
484}
485
486template <typename Integer>
487inline typename boost::enable_if_c<std::numeric_limits<Integer>::is_specialized, boost::rational<Integer> >::type lcm(boost::rational<Integer> const &a, boost::rational<Integer> const &b)

Callers 3

BOOST_GCD_NOEXCEPTFunction · 0.70
lcmFunction · 0.70
operator()Function · 0.70

Calls 1

lcmFunction · 0.70

Tested by

no test coverage detected