summaryrefslogtreecommitdiff
path: root/mpz/cfdiv_r_2exp.c
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2001-06-29 01:05:21 +0200
committerKevin Ryde <user42@zip.com.au>2001-06-29 01:05:21 +0200
commit9a9d89617d2bbe51b92eec34c3b67907661e3479 (patch)
treec5147e9a3205dd8f54f378e981a2d9e31396896b /mpz/cfdiv_r_2exp.c
parent84ca0b8684ed7397d5b117ff74024dfe67c1fc73 (diff)
downloadgmp-9a9d89617d2bbe51b92eec34c3b67907661e3479.tar.gz
* mpn/generic/mul_n.c, mpz/cfdiv_r_2exp.c: Use MPN_INCR_U.
Diffstat (limited to 'mpz/cfdiv_r_2exp.c')
-rw-r--r--mpz/cfdiv_r_2exp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mpz/cfdiv_r_2exp.c b/mpz/cfdiv_r_2exp.c
index bf28eae10..094fe16fb 100644
--- a/mpz/cfdiv_r_2exp.c
+++ b/mpz/cfdiv_r_2exp.c
@@ -113,8 +113,8 @@ cfdiv_r_2exp (mpz_ptr w, mpz_srcptr u, unsigned long cnt, int dir)
wp[i] = MP_LIMB_T_MAX;
/* Twos complement. Since u!=0 in the relevant part, the twos
- complement never gives 0 and a carry, so can use mpn_incr_u. */
- mpn_incr_u (wp, CNST_LIMB(1));
+ complement never gives 0 and a carry, so can use MPN_INCR_U. */
+ MPN_INCR_U (wp, limb_cnt+1, CNST_LIMB(1));
usize = -usize;
}