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

Function is_normalized

extern/boost/boost/rational.hpp:429–435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

427 BOOST_CXX14_CONSTEXPR void normalize();
428
429 static BOOST_CONSTEXPR
430 bool is_normalized( param_type n, param_type d, int_type const &zero =
431 int_type(0), int_type const &one = int_type(1) )
432 {
433 return d > zero && ( n != zero || d == one ) && inner_abs( inner_gcd(n,
434 d, zero), zero ) == one;
435 }
436 //
437 // Conversion checks:
438 //

Callers 1

rational.hppFile · 0.85

Calls 2

inner_absFunction · 0.85
inner_gcdFunction · 0.85

Tested by

no test coverage detected