[Gmp-commit] /var/hg/gmp: MPN_ZERO -> MPN_FILL to skip a branch when we know ...
mercurial at gmplib.org
mercurial at gmplib.org
Wed Aug 19 06:06:46 UTC 2015
details: /var/hg/gmp/rev/3c383927c9b8
changeset: 16773:3c383927c9b8
user: Marco Bodrato <bodrato at mail.dm.unipi.it>
date: Wed Aug 19 08:06:42 2015 +0200
description:
MPN_ZERO -> MPN_FILL to skip a branch when we know size != 0.
diffstat:
mpn/generic/rootrem.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 150fe66d26cf -r 3c383927c9b8 mpn/generic/rootrem.c
--- a/mpn/generic/rootrem.c Tue Aug 18 22:28:46 2015 +0200
+++ b/mpn/generic/rootrem.c Wed Aug 19 08:06:42 2015 +0200
@@ -107,7 +107,7 @@
TMP_ALLOC_LIMBS_2 (wp, wn, /* will contain the padded input */
sp, sn); /* approximate root of padded input */
MPN_COPY (wp + k, up, un);
- MPN_ZERO (wp, k);
+ MPN_FILL (wp, k, 0);
rn = mpn_rootrem_internal (sp, NULL, wp, wn, k, 1);
/* The approximate root S = {sp,sn} is either the correct root of
{sp,sn}, or 1 too large. Thus unless the least significant limb of
@@ -437,7 +437,7 @@
/* now divide {rp, rn} by {wp, wn} to get the low part of the root */
if (UNLIKELY (rn < wn))
{
- MPN_ZERO (sp, bn);
+ MPN_FILL (sp, bn, 0);
}
else
{
More information about the gmp-commit
mailing list