From 37815e5dce32ddfaf290698bbf8943c57096d440 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Hunold?= Date: Fri, 23 Jan 2015 18:01:34 +0100 Subject: [PATCH] adjust to move of gcd/lcm from math to integer library --- include/boost/multiprecision/cpp_int/misc.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/multiprecision/cpp_int/misc.hpp b/include/boost/multiprecision/cpp_int/misc.hpp index 775381f8..266edac2 100644 --- a/include/boost/multiprecision/cpp_int/misc.hpp +++ b/include/boost/multiprecision/cpp_int/misc.hpp @@ -506,14 +506,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 }