summaryrefslogtreecommitdiff
path: root/mpn
diff options
context:
space:
mode:
authortege <tege@gmplib.org>2002-04-30 03:19:53 +0200
committertege <tege@gmplib.org>2002-04-30 03:19:53 +0200
commit4dcc10c6f4f7f25918db8245125002846c50a9c8 (patch)
tree8a9b04096674db121425323800e002f57b855cad /mpn
parent64be894c0b12b9fb5cb5ba2cdbbe1206004b9596 (diff)
downloadgmp-4dcc10c6f4f7f25918db8245125002846c50a9c8.tar.gz
Additional nailify changes.
Diffstat (limited to 'mpn')
-rw-r--r--mpn/generic/divrem_1.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mpn/generic/divrem_1.c b/mpn/generic/divrem_1.c
index 039c2962a..5909562df 100644
--- a/mpn/generic/divrem_1.c
+++ b/mpn/generic/divrem_1.c
@@ -190,12 +190,12 @@ mpn_divrem_1 (mp_ptr qp, mp_size_t qxn,
if (un != 0)
{
n1 = up[un - 1] << GMP_NAIL_BITS;
- r |= (n1 >> (BITS_PER_MP_LIMB - norm));
+ r |= (n1 >> (GMP_LIMB_BITS - norm));
for (i = un - 2; i >= 0; i--)
{
n0 = up[i] << GMP_NAIL_BITS;
udiv_qrnnd (*qp, r, r,
- ((n1 << norm) | (n0 >> (BITS_PER_MP_LIMB - norm))),
+ ((n1 << norm) | (n0 >> (GMP_NUMB_BITS - norm))),
d);
r >>= GMP_NAIL_BITS;
qp--;
@@ -220,12 +220,12 @@ mpn_divrem_1 (mp_ptr qp, mp_size_t qxn,
if (un != 0)
{
n1 = up[un - 1] << GMP_NAIL_BITS;
- r |= (n1 >> (BITS_PER_MP_LIMB - norm));
+ r |= (n1 >> (GMP_LIMB_BITS - norm));
for (i = un - 2; i >= 0; i--)
{
n0 = up[i] << GMP_NAIL_BITS;
udiv_qrnnd_preinv (*qp, r, r,
- ((n1 << norm) | (n0 >> (BITS_PER_MP_LIMB - norm))),
+ ((n1 << norm) | (n0 >> (GMP_NUMB_BITS - norm))),
d, dinv);
r >>= GMP_NAIL_BITS;
qp--;