summaryrefslogtreecommitdiff
path: root/rand
diff options
context:
space:
mode:
authorMarco Bodrato <bodrato@mail.dm.unipi.it>2020-12-19 05:32:00 +0100
committerMarco Bodrato <bodrato@mail.dm.unipi.it>2020-12-19 05:32:00 +0100
commitc71f88558bd850c56c571ba8374199adfcfdcf4e (patch)
tree598f9ed08e8532be6f1dc5057ce1a718a3b3e584 /rand
parentfebc49d77d19d1523358fbe83aa6d41c1a10a8ec (diff)
downloadgmp-c71f88558bd850c56c571ba8374199adfcfdcf4e.tar.gz
rand/randlc2x.c: Use mpn_add instead of __GMPN_ADD
Diffstat (limited to 'rand')
-rw-r--r--rand/randlc2x.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/rand/randlc2x.c b/rand/randlc2x.c
index 4c03eb46f..0ee5146ec 100644
--- a/rand/randlc2x.c
+++ b/rand/randlc2x.c
@@ -76,7 +76,6 @@ lc (mp_ptr rp, gmp_randstate_t rstate)
mp_size_t tn, seedn, an;
unsigned long int m2exp;
unsigned long int bits;
- int cy;
mp_size_t xn;
gmp_rand_lc_struct *p;
TMP_DECL;
@@ -115,7 +114,7 @@ lc (mp_ptr rp, gmp_randstate_t rstate)
/* t = t + c. NOTE: tn is always >= p->_cn (precondition for __GMPN_ADD);
see initialization. */
ASSERT (tn >= p->_cn);
- __GMPN_ADD (cy, tp, tp, tn, p->_cp, p->_cn);
+ mpn_add (tp, tp, tn, p->_cp, p->_cn);
/* t = t % m */
tp[m2exp / GMP_NUMB_BITS] &= (CNST_LIMB (1) << m2exp % GMP_NUMB_BITS) - 1;