[CI SKIP] Disable multiprecision in certain compilers.

This commit is contained in:
Nick Thompson
2018-10-29 08:52:20 -06:00
parent f76d776698
commit cd60c4c9f9
3 changed files with 16 additions and 5 deletions

View File

@ -32,12 +32,12 @@ boost::optional<Z> mod_inverse(Z a, Z modulus)
if (a == 0)
{
// a doesn't have a modular multiplicative inverse:
return {};
return boost::none;
}
euclidean_result_t<Z> u = extended_euclidean(a, modulus);
if (u.gcd > 1)
{
return {};
return boost::none;
}
// x might not be in the range 0 < x < m, let's fix that:
while (u.x <= 0)