[Gmp-commit] /var/hg/gmp: 3 new changesets
mercurial at gmplib.org
mercurial at gmplib.org
Thu Apr 19 23:31:10 CEST 2012
details: /var/hg/gmp/rev/df99c5e934f6
changeset: 14862:df99c5e934f6
user: Torbjorn Granlund <tege at gmplib.org>
date: Thu Apr 19 23:27:18 2012 +0200
description:
Clear out mpz variables.
details: /var/hg/gmp/rev/aaa71159eca3
changeset: 14863:aaa71159eca3
user: Torbjorn Granlund <tege at gmplib.org>
date: Thu Apr 19 23:30:49 2012 +0200
description:
(check_PROGRAMS): Add t-remove.
details: /var/hg/gmp/rev/518022aa78cf
changeset: 14864:518022aa78cf
user: Torbjorn Granlund <tege at gmplib.org>
date: Thu Apr 19 23:30:58 2012 +0200
description:
*** empty log message ***
diffstat:
ChangeLog | 16 ++++++++++++++++
tests/mpz/Makefile.am | 4 ++--
tests/mpz/t-remove.c | 11 ++++-------
3 files changed, 22 insertions(+), 9 deletions(-)
diffs (73 lines):
diff -r cf8e33d6e17e -r 518022aa78cf ChangeLog
--- a/ChangeLog Thu Apr 19 21:58:59 2012 +0200
+++ b/ChangeLog Thu Apr 19 23:30:58 2012 +0200
@@ -1,3 +1,19 @@
+2012-04-19 Torbjorn Granlund <tege at gmplib.org>
+
+ * tests/mpz/Makefile.am (check_PROGRAMS): Add t-remove.
+
+ * tests/mpz/t-remove.c: Clear out mpz variables.
+
+ * tests/mpz/t-cong.c (check_random): Use much larger numbers.
+ (check_data): Check congruences mod 0.
+
+ * tests/mpz/t-divis.c: Test divisibility by zero.
+
+ * tests/mpz/reuse.c: Test mpz_mod.
+
+ * mpz/setbit.c: Remove dead code. Use CNST_LIMB.
+ * mpz/clrbit.c: Use CNST_LIMB.
+
2012-04-19 Marco Bodrato <bodrato at mail.dm.unipi.it>
* primesieve.c: New file, with functions from mpz/oddfac_1.c .
diff -r cf8e33d6e17e -r 518022aa78cf tests/mpz/Makefile.am
--- a/tests/mpz/Makefile.am Thu Apr 19 21:58:59 2012 +0200
+++ b/tests/mpz/Makefile.am Thu Apr 19 23:30:58 2012 +0200
@@ -27,10 +27,10 @@
convert io t-inp_str logic bit t-powm t-powm_ui t-pow t-div_2exp reuse \
t-root t-perfsqr t-perfpow t-jac t-bin t-get_d t-get_d_2exp t-get_si \
t-set_d t-set_si \
- t-fac_ui t-primorial_ui t-fib_ui t-lucnum_ui t-scan t-fits \
+ t-fac_ui t-primorial_ui t-fib_ui t-lucnum_ui t-scan t-fits \
t-divis t-divis_2exp t-cong t-cong_2exp t-sizeinbase t-set_str \
t-aorsmul t-cmp_d t-cmp_si t-hamdist t-oddeven t-popcount t-set_f \
- t-io_raw t-import t-export t-pprime_p t-nextprime
+ t-io_raw t-import t-export t-pprime_p t-nextprime t-remove
TESTS = $(check_PROGRAMS)
diff -r cf8e33d6e17e -r 518022aa78cf tests/mpz/t-remove.c
--- a/tests/mpz/t-remove.c Thu Apr 19 21:58:59 2012 +0200
+++ b/tests/mpz/t-remove.c Thu Apr 19 23:30:58 2012 +0200
@@ -1,6 +1,6 @@
/* Test mpz_remove.
-Copyright 1991, 1993, 1994, 1996, 1997, 2000, 2001, 2009 Free Software
+Copyright 1991, 1993, 1994, 1996, 1997, 2000, 2001, 2009, 2012 Free Software
Foundation, Inc.
This file is part of the GNU MP Library.
@@ -47,12 +47,7 @@
if (argc == 2)
reps = atoi (argv[1]);
- mpz_init (bs);
- mpz_init (t);
- mpz_init (dest);
- mpz_init (refdest);
- mpz_init (dividend);
- mpz_init (divisor);
+ mpz_inits (bs, t, dest, refdest, dividend, divisor, NULL);
for (i = 0; i < reps; i++)
{
@@ -92,6 +87,8 @@
}
}
+ mpz_clears (bs, t, dest, refdest, dividend, divisor, NULL);
+
tests_end ();
exit (0);
}
More information about the gmp-commit
mailing list