summaryrefslogtreecommitdiff
path: root/mpn/generic
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2001-01-17 22:58:44 +0100
committerKevin Ryde <user42@zip.com.au>2001-01-17 22:58:44 +0100
commit9c135d107694a0c7097b0c867fb3d2db22e87190 (patch)
tree67e3e53505d3e21d69d2891779387feac25a871b /mpn/generic
parent33be3c8b5119ae8f1d7a3283f50e7504e31607d7 (diff)
downloadgmp-9c135d107694a0c7097b0c867fb3d2db22e87190.tar.gz
* mpn/generic/sqrtrem.c: Use MPN_COPY_INCR (for when rp==NULL).
Diffstat (limited to 'mpn/generic')
-rw-r--r--mpn/generic/sqrtrem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mpn/generic/sqrtrem.c b/mpn/generic/sqrtrem.c
index 6081df6aa..af24d2497 100644
--- a/mpn/generic/sqrtrem.c
+++ b/mpn/generic/sqrtrem.c
@@ -1,7 +1,7 @@
/* mpn_sqrtrem -- square root and remainder */
/*
-Copyright 1999, 2000 Free Software Foundation, Inc.
+Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -242,7 +242,7 @@ mpn_sqrtrem (mp_ptr sp, mp_ptr rp, mp_srcptr np, mp_size_t nn)
if (rp == NULL) rp = tp;
c = c << 1;
if (c < BITS_PER_MP_LIMB) tn++; else { tp++; c -= BITS_PER_MP_LIMB; }
- if (c) mpn_rshift (rp, tp, tn, c); else MPN_COPY(rp, tp, tn);
+ if (c) mpn_rshift (rp, tp, tn, c); else MPN_COPY_INCR (rp, tp, tn);
rn = tn;
}
else