[Gmp-commit] /var/hg/gmp: 3 new changesets
mercurial at gmplib.org
mercurial at gmplib.org
Sat Apr 17 20:33:54 UTC 2021
details: /var/hg/gmp/rev/e51722c4d760
changeset: 18209:e51722c4d760
user: Marco Bodrato <bodrato at mail.dm.unipi.it>
date: Fri Apr 16 16:47:30 2021 +0200
description:
mini-gmp/mini-gmp.c (gmp_millerrabin): Don't check unlikely 0 or 1.
details: /var/hg/gmp/rev/7cf5d11caca2
changeset: 18210:7cf5d11caca2
user: Marco Bodrato <bodrato at mail.dm.unipi.it>
date: Fri Apr 16 16:48:15 2021 +0200
description:
mini-gmp/mini-gmp.h: Update FILE tests from gmp-h
details: /var/hg/gmp/rev/92681f2490cc
changeset: 18211:92681f2490cc
user: Marco Bodrato <bodrato at mail.dm.unipi.it>
date: Fri Apr 16 16:49:02 2021 +0200
description:
Changelog
diffstat:
mini-gmp/ChangeLog | 9 +++++++++
mini-gmp/mini-gmp.c | 5 -----
mini-gmp/mini-gmp.h | 3 ++-
3 files changed, 11 insertions(+), 6 deletions(-)
diffs (50 lines):
diff -r 16dcc5929aa3 -r 92681f2490cc mini-gmp/ChangeLog
--- a/mini-gmp/ChangeLog Thu Mar 11 21:29:30 2021 +0100
+++ b/mini-gmp/ChangeLog Fri Apr 16 16:49:02 2021 +0200
@@ -1,3 +1,12 @@
+2021-04-16 Marco Bodrato <bodrato at mail.dm.unipi.it>
+
+ * mini-gmp.c (gmp_millerrabin): Don't check unlikely 0 or 1.
+ * mini-gmp.h: Update FILE tests from gmp-h.
+
+2021-01-02 Marco Bodrato <bodrato at mail.dm.unipi.it>
+
+ * mini-gmp.c (mpz_export): Correct error message (tx: Guillermo Monguia)
+
2020-11-28 Marco Bodrato <bodrato at mail.dm.unipi.it>
* mini-gmp.c (mpz_gcd): Support limbs larger than unsigned long.
diff -r 16dcc5929aa3 -r 92681f2490cc mini-gmp/mini-gmp.c
--- a/mini-gmp/mini-gmp.c Thu Mar 11 21:29:30 2021 +0100
+++ b/mini-gmp/mini-gmp.c Fri Apr 16 16:49:02 2021 +0200
@@ -3555,11 +3555,6 @@
mpz_powm_ui (y, y, 2, n);
if (mpz_cmp (y, nm1) == 0)
return 1;
- /* y == 1 means that the previous y was a non-trivial square root
- of 1 (mod n). y == 0 means that n is a power of the base.
- In either case, n is not prime. */
- if (mpz_cmp_ui (y, 1) <= 0)
- return 0;
}
return 0;
}
diff -r 16dcc5929aa3 -r 92681f2490cc mini-gmp/mini-gmp.h
--- a/mini-gmp/mini-gmp.h Thu Mar 11 21:29:30 2021 +0100
+++ b/mini-gmp/mini-gmp.h Fri Apr 16 16:49:02 2021 +0200
@@ -1,6 +1,6 @@
/* mini-gmp, a minimalistic implementation of a GNU GMP subset.
-Copyright 2011-2015, 2017, 2019-2020 Free Software Foundation, Inc.
+Copyright 2011-2015, 2017, 2019-2021 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -296,6 +296,7 @@
|| defined (_STDIO_H_INCLUDED) /* QNX4 */ \
|| defined (_ISO_STDIO_ISO_H) /* Sun C++ */ \
|| defined (__STDIO_LOADED) /* VMS */ \
+ || defined (_STDIO) /* HPE NonStop */ \
|| defined (__DEFINED_FILE) /* musl */
size_t mpz_out_str (FILE *, int, const mpz_t);
#endif
More information about the gmp-commit
mailing list