fix for (bitlen(p) + 1) % 64 = 0

2merge^2
MITSUNARI Shigeo 4 years ago
parent 7806835e9c
commit 093e916151
  1. 1
      include/mcl/gmp_util.hpp

@ -960,6 +960,7 @@ struct SmallModp {
} }
uint32_t getTop(const Unit *x) const uint32_t getTop(const Unit *x) const
{ {
if (shiftR_ == 0) return x[N_ - 1];
return (x[N_ - 1] >> shiftR_) | (x[N_] << shiftL_); return (x[N_ - 1] >> shiftR_) | (x[N_] << shiftL_);
} }
uint32_t cvtInt(const mpz_class& x) const uint32_t cvtInt(const mpz_class& x) const

Loading…
Cancel
Save