[Gmp-commit] /home/hgfiles/gmp: 3 new changesets
mercurial at gmplib.org
mercurial at gmplib.org
Sat Dec 26 21:10:53 CET 2009
details: /home/hgfiles/gmp/rev/44e1e8a3097b
changeset: 13225:44e1e8a3097b
user: Niels M?ller <nisse at lysator.liu.se>
date: Sat Dec 26 21:00:54 2009 +0100
description:
Fixed old uses of mpn_addsub_n, renamed to mpn_add_n_sub_n.
details: /home/hgfiles/gmp/rev/f922d886915c
changeset: 13226:f922d886915c
user: Niels M?ller <nisse at lysator.liu.se>
date: Sat Dec 26 21:03:00 2009 +0100
description:
Remove unused variables.
details: /home/hgfiles/gmp/rev/f35df780ef55
changeset: 13227:f35df780ef55
user: Niels M?ller <nisse at lysator.liu.se>
date: Sat Dec 26 21:03:44 2009 +0100
description:
Trivial spelling fix to comment.
diffstat:
ChangeLog | 8 ++++++++
mpn/generic/sbpi1_divappr_q.c | 5 ++---
mpn/generic/toom32_mul.c | 12 ++++++------
tests/mpn/t-bdiv.c | 2 +-
4 files changed, 17 insertions(+), 10 deletions(-)
diffs (84 lines):
diff -r 2f7eab694ee9 -r f35df780ef55 ChangeLog
--- a/ChangeLog Sat Dec 26 12:39:10 2009 +0100
+++ b/ChangeLog Sat Dec 26 21:03:44 2009 +0100
@@ -1,3 +1,11 @@
+2009-12-26 Niels Möller <nisse at lysator.liu.se>
+
+ * mpn/generic/sbpi1_divappr_q.c (mpn_sbpi1_divappr_q): Remove
+ unused variables.
+
+ * mpn/generic/toom32_mul.c (mpn_toom32_mul): Fixed left-over use
+ of mpn_addsub_n which should be mpn_add_n_sub_n.
+
2009-12-26 Marco Bodrato <bodrato at mail.dm.unipi.it>
* tune/Makefile.am (TUNE_MPN_SRCS_BASIC): Add new toom files (spotted by Torbjorn).
diff -r 2f7eab694ee9 -r f35df780ef55 mpn/generic/sbpi1_divappr_q.c
--- a/mpn/generic/sbpi1_divappr_q.c Sat Dec 26 12:39:10 2009 +0100
+++ b/mpn/generic/sbpi1_divappr_q.c Sat Dec 26 21:03:44 2009 +0100
@@ -41,9 +41,8 @@
mp_limb_t n1, n0;
mp_limb_t d1, d0;
mp_limb_t cy, cy1;
- mp_limb_t q, q0;
- mp_limb_t t1, t0;
- mp_limb_t mask, flag;
+ mp_limb_t q;
+ mp_limb_t flag;
ASSERT (dn > 2);
ASSERT (nn >= dn);
diff -r 2f7eab694ee9 -r f35df780ef55 mpn/generic/toom32_mul.c
--- a/mpn/generic/toom32_mul.c Sat Dec 26 12:39:10 2009 +0100
+++ b/mpn/generic/toom32_mul.c Sat Dec 26 21:03:44 2009 +0100
@@ -101,16 +101,16 @@
/* Compute ap1 = a0 + a1 + a3, am1 = a0 - a1 + a3 */
ap1[n] = mpn_add (ap1, a0, n, a2, s);
-#if HAVE_NATIVE_mpn_addsub_n
+#if HAVE_NATIVE_mpn_add_n_sub_n
if (ap1[n] == 0 && mpn_cmp (ap1, a1, n) < 0)
{
- ap1[n] = mpn_addsub_n (ap1, am1, a1, ap1, n) >> 1;
+ ap1[n] = mpn_add_n_sub_n (ap1, am1, a1, ap1, n) >> 1;
hi = 0;
vm1_neg = 1;
}
else
{
- cy = mpn_addsub_n (ap1, am1, ap1, a1, n);
+ cy = mpn_add_n_sub_n (ap1, am1, ap1, a1, n);
hi = ap1[n] - (cy & 1);
ap1[n] += (cy >> 1);
vm1_neg = 0;
@@ -133,15 +133,15 @@
/* Compute bp1 = b0 + b1 and bm1 = b0 - b1. */
if (t == n)
{
-#if HAVE_NATIVE_mpn_addsub_n
+#if HAVE_NATIVE_mpn_add_n_sub_n
if (mpn_cmp (b0, b1, n) < 0)
{
- cy = mpn_addsub_n (bp1, bm1, b1, b0, n);
+ cy = mpn_add_n_sub_n (bp1, bm1, b1, b0, n);
vm1_neg ^= 1;
}
else
{
- cy = mpn_addsub_n (bp1, bm1, b0, b1, n);
+ cy = mpn_add_n_sub_n (bp1, bm1, b0, b1, n);
}
bp1[n] = cy >> 1;
#else
diff -r 2f7eab694ee9 -r f35df780ef55 tests/mpn/t-bdiv.c
--- a/tests/mpn/t-bdiv.c Sat Dec 26 12:39:10 2009 +0100
+++ b/tests/mpn/t-bdiv.c Sat Dec 26 21:03:44 2009 +0100
@@ -109,7 +109,7 @@
qp = TMP_ALLOC_LIMBS (MAX_NN + 1);
rp = TMP_ALLOC_LIMBS (MAX_DN + 1);
- /* Claim larger nn that we'll use, to allow for a large quotient.
+ /* Claim larger nn than we'll use, to allow for a large quotient.
FIXME: This probably isn't the right way. */
max_qr_itch = mpn_bdiv_qr_itch (MAX_NN + MAX_DN, MAX_DN);
max_q_itch = mpn_bdiv_q_itch (MAX_NN + MAX_DN, MAX_DN);
More information about the gmp-commit
mailing list