diff --git a/include/boost/multiprecision/cpp_int/misc.hpp b/include/boost/multiprecision/cpp_int/misc.hpp index 0ef79b94..393694e2 100644 --- a/include/boost/multiprecision/cpp_int/misc.hpp +++ b/include/boost/multiprecision/cpp_int/misc.hpp @@ -505,14 +505,14 @@ template >::value>::type eval_gcd(cpp_int_backend& result, const cpp_int_backend& a, const cpp_int_backend& b) BOOST_NOEXCEPT { - *result.limbs() = boost::math::gcd(*a.limbs(), *b.limbs()); + *result.limbs() = boost::integer::gcd(*a.limbs(), *b.limbs()); } // This one is only enabled for unchecked cpp_int's, for checked int's we need the checking in the default version: template BOOST_MP_FORCEINLINE typename enable_if_c >::value && (Checked1 == unchecked)>::type eval_lcm(cpp_int_backend& result, const cpp_int_backend& a, const cpp_int_backend& b) BOOST_NOEXCEPT_IF((is_non_throwing_cpp_int >::value)) { - *result.limbs() = boost::math::lcm(*a.limbs(), *b.limbs()); + *result.limbs() = boost::integer::lcm(*a.limbs(), *b.limbs()); result.normalize(); // result may overflow the specified number of bits }