[Gmp-commit] /var/hg/gmp: 2 new changesets
mercurial at gmplib.org
mercurial at gmplib.org
Sun Jan 5 10:39:44 UTC 2014
details: /var/hg/gmp/rev/320dd6e5433f
changeset: 16167:320dd6e5433f
user: Marco Bodrato <bodrato at mail.dm.unipi.it>
date: Sun Jan 05 11:39:06 2014 +0100
description:
tests/mpn/t-div.c: Use mpn_sec_div_*_itch().
details: /var/hg/gmp/rev/10e248c9a7e1
changeset: 16168:10e248c9a7e1
user: Marco Bodrato <bodrato at mail.dm.unipi.it>
date: Sun Jan 05 11:39:36 2014 +0100
description:
ChangeLog
diffstat:
ChangeLog | 1 +
tests/mpn/t-div.c | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
diffs (32 lines):
diff -r 7b875bb261b3 -r 10e248c9a7e1 ChangeLog
--- a/ChangeLog Sun Jan 05 10:30:24 2014 +0100
+++ b/ChangeLog Sun Jan 05 11:39:36 2014 +0100
@@ -3,6 +3,7 @@
* tests/mpn/t-minvert.c: Always compare with mpz_invert results.
* tests/mpn/t-sizeinbase.c: New test.
* tests/mpn/Makefile.am (check_PROGRAMS): Added t-sizeinbase.c .
+ * tests/mpn/t-div.c: Use mpn_sec_div_*_itch().
* mpn/generic/pow_1.c: Micro-optimisation.
diff -r 7b875bb261b3 -r 10e248c9a7e1 tests/mpn/t-div.c
--- a/tests/mpn/t-div.c Sun Jan 05 10:30:24 2014 +0100
+++ b/tests/mpn/t-div.c Sun Jan 05 11:39:36 2014 +0100
@@ -296,7 +296,7 @@
}
/* Test mpn_sec_div_qr */
- itch = 3 * nn + 4;
+ itch = mpn_sec_div_qr_itch (nn, dn);
if (itch + 1 > alloc)
{
scratch = __GMP_REALLOCATE_FUNC_LIMBS (scratch, alloc, itch + 1);
@@ -311,7 +311,7 @@
check_one (qp, rp, np, nn, dup, dn, "mpn_sec_div_qr", 0);
/* Test mpn_sec_div_r */
- itch = nn + 2 * dn + 2;
+ itch = mpn_sec_div_r_itch (nn, dn);
if (itch + 1 > alloc)
{
scratch = __GMP_REALLOCATE_FUNC_LIMBS (scratch, alloc, itch + 1);
More information about the gmp-commit
mailing list