[Gmp-commit] /var/hg/gmp: 4 new changesets
mercurial at gmplib.org
mercurial at gmplib.org
Thu Sep 17 12:57:58 UTC 2020
details: /var/hg/gmp/rev/a033d82e264d
changeset: 18086:a033d82e264d
user: Marco Bodrato <bodrato at mail.dm.unipi.it>
date: Thu Sep 17 10:23:44 2020 +0200
description:
mini-gmp/tests/t-mpq_double.c: Whitespace
details: /var/hg/gmp/rev/6a8d1705eeda
changeset: 18087:6a8d1705eeda
user: Marco Bodrato <bodrato at mail.dm.unipi.it>
date: Thu Sep 17 10:24:16 2020 +0200
description:
mini-gmp/mini-gmp.h: Update FILE tests from gmp-h (spotted by Vincent Lefevre)
details: /var/hg/gmp/rev/2e8d695b3772
changeset: 18088:2e8d695b3772
user: Marco Bodrato <bodrato at mail.dm.unipi.it>
date: Thu Sep 17 10:24:28 2020 +0200
description:
ChangeLog
details: /var/hg/gmp/rev/b851f9336a86
changeset: 18089:b851f9336a86
user: Marco Bodrato <bodrato at mail.dm.unipi.it>
date: Thu Sep 17 12:00:00 2020 +0200
description:
tests/mpf/reuse.c: Check index, not function. Allows make check with CC=tcc --disable-assembly
diffstat:
mini-gmp/ChangeLog | 2 ++
mini-gmp/mini-gmp.h | 3 ++-
mini-gmp/tests/t-mpq_double.c | 2 +-
tests/mpf/reuse.c | 4 ++--
4 files changed, 7 insertions(+), 4 deletions(-)
diffs (58 lines):
diff -r 57547dbdd7d4 -r b851f9336a86 mini-gmp/ChangeLog
--- a/mini-gmp/ChangeLog Fri Sep 11 01:15:37 2020 +0200
+++ b/mini-gmp/ChangeLog Thu Sep 17 12:00:00 2020 +0200
@@ -4,6 +4,8 @@
* mini-gmp.c (mpz_get_str): Explicit cast from void* to char*.
+ * mini-gmp.h: Update FILE tests from gmp-h (tx Vincent Lefèvre).
+
2020-05-27 Minux Ma <minux.ma at gmail.com>
Pass correct old_size to custom free and reallocate functions.
diff -r 57547dbdd7d4 -r b851f9336a86 mini-gmp/mini-gmp.h
--- a/mini-gmp/mini-gmp.h Fri Sep 11 01:15:37 2020 +0200
+++ b/mini-gmp/mini-gmp.h Thu Sep 17 12:00:00 2020 +0200
@@ -295,7 +295,8 @@
|| defined (_MSL_STDIO_H) /* Metrowerks */ \
|| defined (_STDIO_H_INCLUDED) /* QNX4 */ \
|| defined (_ISO_STDIO_ISO_H) /* Sun C++ */ \
- || defined (__STDIO_LOADED) /* VMS */
+ || defined (__STDIO_LOADED) /* VMS */ \
+ || defined (__DEFINED_FILE) /* musl */
size_t mpz_out_str (FILE *, int, const mpz_t);
#endif
diff -r 57547dbdd7d4 -r b851f9336a86 mini-gmp/tests/t-mpq_double.c
--- a/mini-gmp/tests/t-mpq_double.c Fri Sep 11 01:15:37 2020 +0200
+++ b/mini-gmp/tests/t-mpq_double.c Thu Sep 17 12:00:00 2020 +0200
@@ -123,7 +123,7 @@
mpq_set_d (y, d);
if (i == 0)
- mpq_neg (z, y);
+ mpq_neg (z, y);
mpq_add (y, y, z);
mpq_set_d (z, mpq_get_d (y));
diff -r 57547dbdd7d4 -r b851f9336a86 tests/mpf/reuse.c
--- a/tests/mpf/reuse.c Fri Sep 11 01:15:37 2020 +0200
+++ b/tests/mpf/reuse.c Thu Sep 17 12:00:00 2020 +0200
@@ -150,7 +150,7 @@
unsigned long this_in2i = in2i;
/* Don't divide by 0. */
- if (dsi_funcs[i] == mpf_div_ui && this_in2i == 0)
+ if (i == 0 && this_in2i == 0) /* dsi_funcs[i] == mpf_div_ui */
continue;
/* Avoid overflow/underflow in the exponent. */
@@ -173,7 +173,7 @@
for (i = 0; i < sizeof (dis_funcs) / sizeof (dis_func); i++)
{
/* Don't divide by 0. */
- if (dis_funcs[i] == mpf_ui_div
+ if (i == 0 /* dis_funcs[i] == mpf_ui_div */
&& mpf_cmp_ui (in2, 0) == 0)
continue;
More information about the gmp-commit
mailing list