Design #1182
Updated by Anna Maria Bigatti almost 6 years ago
n % m, with n,m BigInt gives negative values.
Whether this is reasonable when working in FFp, I find it odd for BigInt.
The line to change is in @IntOperations@ (or @BigIntOps@?)
@ mpz_cdiv_r(mpzref(ans), mpzref(N1), mpzref(N2));@ for non-negative residues
@ mpz_tdiv_r(mpzref(ans), mpzref(N1), mpzref(N2));@ for symmetric residues
Whether this is reasonable when working in FFp, I find it odd for BigInt.
The line to change is in @IntOperations@ (or @BigIntOps@?)
@ mpz_cdiv_r(mpzref(ans), mpzref(N1), mpzref(N2));@ for non-negative residues
@ mpz_tdiv_r(mpzref(ans), mpzref(N1), mpzref(N2));@ for symmetric residues