[Gmp-commit] /var/hg/gmp: 4 new changesets
mercurial at gmplib.org
mercurial at gmplib.org
Mon Feb 26 07:35:05 UTC 2018
details: /var/hg/gmp/rev/8127da8872cc
changeset: 17571:8127da8872cc
user: Marco Bodrato <bodrato at mail.dm.unipi.it>
date: Sun Feb 25 17:54:54 2018 +0100
description:
Copyright year
details: /var/hg/gmp/rev/efe80ce7a8a3
changeset: 17572:efe80ce7a8a3
user: Marco Bodrato <bodrato at mail.dm.unipi.it>
date: Sun Feb 25 18:09:35 2018 +0100
description:
mini-gmp/tests/t-div.c: overwrite results after checking.
details: /var/hg/gmp/rev/0d0c1541dca4
changeset: 17573:0d0c1541dca4
user: Marco Bodrato <bodrato at mail.dm.unipi.it>
date: Mon Feb 26 08:32:40 2018 +0100
description:
Remove some unused variables.
details: /var/hg/gmp/rev/dbd767bb43bf
changeset: 17574:dbd767bb43bf
user: Marco Bodrato <bodrato at mail.dm.unipi.it>
date: Mon Feb 26 08:34:53 2018 +0100
description:
Remove a signed unsigned comparison warning
diffstat:
gen-bases.c | 1 -
gen-trialdivtab.c | 2 +-
mini-gmp/tests/t-div.c | 6 +++++-
mpn/generic/divis.c | 1 -
mpq/equal.c | 2 +-
5 files changed, 7 insertions(+), 5 deletions(-)
diffs (82 lines):
diff -r 49fae824cbaf -r dbd767bb43bf gen-bases.c
--- a/gen-bases.c Sun Feb 25 17:21:44 2018 +0100
+++ b/gen-bases.c Mon Feb 26 08:34:53 2018 +0100
@@ -55,7 +55,6 @@
void
binvert (int numb_bits)
{
- int i;
mpz_t bbo;
mpz_init_set (bbo, big_base);
diff -r 49fae824cbaf -r dbd767bb43bf gen-trialdivtab.c
--- a/gen-trialdivtab.c Sun Feb 25 17:21:44 2018 +0100
+++ b/gen-trialdivtab.c Mon Feb 26 08:34:53 2018 +0100
@@ -59,7 +59,7 @@
int
main (int argc, char *argv[])
{
- unsigned long t, p;
+ int t, p;
mpz_t ppp, acc, inv, gmp_numb_max, tmp, Bhalf;
mpz_t pre[7];
int i;
diff -r 49fae824cbaf -r dbd767bb43bf mini-gmp/tests/t-div.c
--- a/mini-gmp/tests/t-div.c Sun Feb 25 17:21:44 2018 +0100
+++ b/mini-gmp/tests/t-div.c Mon Feb 26 08:34:53 2018 +0100
@@ -1,6 +1,6 @@
/*
-Copyright 2012, 2013 Free Software Foundation, Inc.
+Copyright 2012, 2013, 2018 Free Software Foundation, Inc.
This file is part of the GNU MP Library test suite.
@@ -131,6 +131,7 @@
}
}
+ mpz_set_si (r, -6);
if (j == 0 && mpz_sgn (b) < 0) /* ceil, negative divisor */
{
mpz_mod (r, a, b);
@@ -163,6 +164,8 @@
{
mp_limb_t rl;
+ mpz_set_si (r, -7);
+ mpz_set_ui (q, ~7);
rl = div_qr_ui[j] (q, r, a, mpz_get_ui (b));
if (rl != mpz_get_ui (rr)
|| mpz_cmp (r, rr) || mpz_cmp (q, rq))
@@ -231,6 +234,7 @@
if (j == 1) /* floor */
{
+ mpz_set_si (r, -2);
mpz_mod_ui (r, a, mpz_get_ui (b));
if (mpz_cmp (r, rr))
{
diff -r 49fae824cbaf -r dbd767bb43bf mpn/generic/divis.c
--- a/mpn/generic/divis.c Sun Feb 25 17:21:44 2018 +0100
+++ b/mpn/generic/divis.c Mon Feb 26 08:34:53 2018 +0100
@@ -61,7 +61,6 @@
{
mp_limb_t alow, dlow, dmask;
mp_ptr qp, rp, tp;
- mp_size_t i;
mp_limb_t di;
unsigned twos;
int c;
diff -r 49fae824cbaf -r dbd767bb43bf mpq/equal.c
--- a/mpq/equal.c Sun Feb 25 17:21:44 2018 +0100
+++ b/mpq/equal.c Mon Feb 26 08:34:53 2018 +0100
@@ -1,7 +1,7 @@
/* mpq_equal(u,v) -- Compare U, V. Return non-zero if they are equal, zero
if they are non-equal.
-Copyright 1996, 2001, 2002 Free Software Foundation, Inc.
+Copyright 1996, 2001, 2002, 2018 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
More information about the gmp-commit
mailing list