[Gmp-commit] /var/hg/gmp: 2 new changesets
mercurial at gmplib.org
mercurial at gmplib.org
Sat Apr 14 18:35:14 CEST 2012
details: /var/hg/gmp/rev/7442695805b5
changeset: 14822:7442695805b5
user: Marco Bodrato <bodrato at mail.dm.unipi.it>
date: Sat Apr 14 18:27:11 2012 +0200
description:
mpn/generic/toom62_mul.c: Use add_n, sub_n, when possible.
details: /var/hg/gmp/rev/b39a81208ef9
changeset: 14823:b39a81208ef9
user: Marco Bodrato <bodrato at mail.dm.unipi.it>
date: Sat Apr 14 18:35:05 2012 +0200
description:
Typo in a comment.
diffstat:
ChangeLog | 2 ++
mpn/generic/toom53_mul.c | 2 +-
mpn/generic/toom62_mul.c | 6 +++---
3 files changed, 6 insertions(+), 4 deletions(-)
diffs (45 lines):
diff -r 166319d51ee5 -r b39a81208ef9 ChangeLog
--- a/ChangeLog Sat Apr 14 17:55:54 2012 +0200
+++ b/ChangeLog Sat Apr 14 18:35:05 2012 +0200
@@ -23,6 +23,8 @@
* tests/mpn/t-toom8-sqr.c: New file.
* tests/mpn/Makefile.am (check_PROGRAMS): Add new tests.
+ * mpn/generic/toom62_mul.c: Use add_n, sub_n, when possible.
+
2012-04-12 Torbjorn Granlund <tege at gmplib.org>
* mpn/x86_64/fastsse/lshift-movdqu2.asm: New file.
diff -r 166319d51ee5 -r b39a81208ef9 mpn/generic/toom53_mul.c
--- a/mpn/generic/toom53_mul.c Sat Apr 14 17:55:54 2012 +0200
+++ b/mpn/generic/toom53_mul.c Sat Apr 14 18:35:05 2012 +0200
@@ -197,7 +197,7 @@
mpn_add_n (bs2, bs2, gp, n+1);
#endif
- /* Compute bsh = 4 b0 + 2 b1 + b0 = 2*(2*b0 + b1)+b0. */
+ /* Compute bsh = 4 b0 + 2 b1 + b2 = 2*(2*b0 + b1)+b2. */
#if HAVE_NATIVE_mpn_addlsh1_n
cy = mpn_addlsh1_n (bsh, b1, b0, n);
if (t < n)
diff -r 166319d51ee5 -r b39a81208ef9 mpn/generic/toom62_mul.c
--- a/mpn/generic/toom62_mul.c Sat Apr 14 17:55:54 2012 +0200
+++ b/mpn/generic/toom62_mul.c Sat Apr 14 18:35:05 2012 +0200
@@ -211,14 +211,14 @@
}
else
{
- ASSERT_NOCARRY (mpn_sub (bsm2, bsm1, n, b1, n));
+ ASSERT_NOCARRY (mpn_sub_n (bsm2, bsm1, b1, n));
}
bsm2[n] = 0;
}
}
- /* Compute bsh, recycling bs1 and bsm1. bsh=bs1+b0; */
- mpn_add (bsh, bs1, n + 1, b0, n);
+ /* Compute bsh, recycling bs1. bsh=bs1+b0; */
+ bsh[n] = bs1[n] + mpn_add_n (bsh, bs1, b0, n);
ASSERT (as1[n] <= 5);
ASSERT (bs1[n] <= 1);
More information about the gmp-commit
mailing list