[Gmp-commit] /var/hg/gmp: 2 new changesets
mercurial at gmplib.org
mercurial at gmplib.org
Fri Sep 7 07:00:27 UTC 2018
details: /var/hg/gmp/rev/181f3aa2b263
changeset: 17650:181f3aa2b263
user: Niels M?ller <nisse at lysator.liu.se>
date: Fri Sep 07 08:55:35 2018 +0200
description:
Fix typos, spotted by Paul zimmermann
details: /var/hg/gmp/rev/d393bac5d2d5
changeset: 17651:d393bac5d2d5
user: Niels M?ller <nisse at lysator.liu.se>
date: Fri Sep 07 08:58:55 2018 +0200
description:
mini-gmp: Add missing const declarations in t-div test.
diffstat:
mini-gmp/ChangeLog | 4 ++++
mini-gmp/mini-gmp.c | 2 +-
mini-gmp/tests/t-div.c | 12 ++++++------
3 files changed, 11 insertions(+), 7 deletions(-)
diffs (76 lines):
diff -r 1ad8cc22b714 -r d393bac5d2d5 mini-gmp/ChangeLog
--- a/mini-gmp/ChangeLog Tue Jul 03 11:16:06 2018 +0200
+++ b/mini-gmp/ChangeLog Fri Sep 07 08:58:55 2018 +0200
@@ -1,3 +1,7 @@
+2018-09-07 Niels Möller <nisse at lysator.liu.se>
+
+ * tests/t-div.c (testmain): Add missing const declarations.
+
2018-05-20 Marco Bodrato <bodrato at mail.dm.unipi.it>
* mini-gmp.c (mpz_get_d): Convert a fixed number of
diff -r 1ad8cc22b714 -r d393bac5d2d5 mini-gmp/mini-gmp.c
--- a/mini-gmp/mini-gmp.c Tue Jul 03 11:16:06 2018 +0200
+++ b/mini-gmp/mini-gmp.c Fri Sep 07 08:58:55 2018 +0200
@@ -827,7 +827,7 @@
r -= u1;
}
- /* Now m is the 2/1 invers of u1. If u0 > 0, adjust it to become a
+ /* Now m is the 2/1 inverse of u1. If u0 > 0, adjust it to become a
3/2 inverse. */
if (u0 > 0)
{
diff -r 1ad8cc22b714 -r d393bac5d2d5 mini-gmp/tests/t-div.c
--- a/mini-gmp/tests/t-div.c Tue Jul 03 11:16:06 2018 +0200
+++ b/mini-gmp/tests/t-div.c Fri Sep 07 08:58:55 2018 +0200
@@ -57,7 +57,7 @@
{
mpz_cdiv_qr, mpz_fdiv_qr, mpz_tdiv_qr
};
- static div_qr_ui_func *div_qr_ui[3] =
+ static div_qr_ui_func * const div_qr_ui[3] =
{
mpz_cdiv_qr_ui, mpz_fdiv_qr_ui, mpz_tdiv_qr_ui
};
@@ -65,7 +65,7 @@
{
mpz_cdiv_q, mpz_fdiv_q, mpz_tdiv_q
};
- static div_x_ui_func *div_q_ui[3] =
+ static div_x_ui_func * const div_q_ui[3] =
{
mpz_cdiv_q_ui, mpz_fdiv_q_ui, mpz_tdiv_q_ui
};
@@ -73,11 +73,11 @@
{
mpz_cdiv_r, mpz_fdiv_r, mpz_tdiv_r
};
- static div_x_ui_func *div_r_ui[3] =
+ static div_x_ui_func * const div_r_ui[3] =
{
mpz_cdiv_r_ui, mpz_fdiv_r_ui, mpz_tdiv_r_ui
};
- static div_ui_func *div_ui[3] =
+ static div_ui_func * const div_ui[3] =
{
mpz_cdiv_ui, mpz_fdiv_ui, mpz_tdiv_ui
};
@@ -199,7 +199,7 @@
rl = div_r_ui[j] (r, a, mpz_get_ui (b));
if (rl != mpz_get_ui (rr) || mpz_cmp (r, rr))
{
- fprintf (stderr, "mpz_%cdiv_qr_ui failed:\n", name[j]);
+ fprintf (stderr, "mpz_%cdiv_r_ui failed:\n", name[j]);
dump ("a", a);
dump ("b", b);
fprintf(stderr, "rl = %lx\n", rl);
@@ -211,7 +211,7 @@
rl = div_ui[j] (a, mpz_get_ui (b));
if (rl != mpz_get_ui (rr))
{
- fprintf (stderr, "mpz_%cdiv_qr_ui failed:\n", name[j]);
+ fprintf (stderr, "mpz_%cdiv_ui failed:\n", name[j]);
dump ("a", a);
dump ("b", b);
fprintf(stderr, "rl = %lx\n", rl);
More information about the gmp-commit
mailing list