[Gmp-commit] /var/hg/gmp: 2 new changesets
mercurial at gmplib.org
mercurial at gmplib.org
Wed Oct 2 05:24:43 UTC 2019
details: /var/hg/gmp/rev/1b24acc85414
changeset: 17936:1b24acc85414
user: Niels M?ller <nisse at lysator.liu.se>
date: Wed Oct 02 07:14:33 2019 +0200
description:
Fix gcdext_1 test for archs with mp_limb_t > unsigned long.
details: /var/hg/gmp/rev/2ac3716bda8a
changeset: 17937:2ac3716bda8a
user: Niels M?ller <nisse at lysator.liu.se>
date: Wed Oct 02 07:24:26 2019 +0200
description:
Increase repeat count for recent small gcd unit tests.
diffstat:
tests/mpn/t-gcd_11.c | 2 +-
tests/mpn/t-gcd_22.c | 2 +-
tests/mpn/t-gcdext_1.c | 6 +++---
3 files changed, 5 insertions(+), 5 deletions(-)
diffs (47 lines):
diff -r 9ba25d46609f -r 2ac3716bda8a tests/mpn/t-gcd_11.c
--- a/tests/mpn/t-gcd_11.c Wed Oct 02 00:10:49 2019 +0200
+++ b/tests/mpn/t-gcd_11.c Wed Oct 02 07:24:26 2019 +0200
@@ -24,7 +24,7 @@
#include "tests.h"
#ifndef COUNT
-#define COUNT 10000
+#define COUNT 500000
#endif
static void
diff -r 9ba25d46609f -r 2ac3716bda8a tests/mpn/t-gcd_22.c
--- a/tests/mpn/t-gcd_22.c Wed Oct 02 00:10:49 2019 +0200
+++ b/tests/mpn/t-gcd_22.c Wed Oct 02 07:24:26 2019 +0200
@@ -24,7 +24,7 @@
#include "tests.h"
#ifndef COUNT
-#define COUNT 10000
+#define COUNT 150000
#endif
static void
diff -r 9ba25d46609f -r 2ac3716bda8a tests/mpn/t-gcdext_1.c
--- a/tests/mpn/t-gcdext_1.c Wed Oct 02 00:10:49 2019 +0200
+++ b/tests/mpn/t-gcdext_1.c Wed Oct 02 07:24:26 2019 +0200
@@ -24,7 +24,7 @@
#include "tests.h"
#ifndef COUNT
-#define COUNT 10000
+#define COUNT 250000
#endif
static void
@@ -68,8 +68,8 @@
mp_limb_t abs_t = ABS_CAST(mp_limb_t, t);
mpz_mul_ui (sz, sz, 2);
mpz_mul_ui (tz, tz, 2);
- if ((abs_s == 1 || mpz_cmpabs_ui (sz, b_div_g) < 0)
- && (abs_t == 1 || mpz_cmpabs_ui (tz, a_div_g) < 0))
+ if ((abs_s == 1 || mpz_cmpabs (sz, mpz_roinit_n (tmp, &b_div_g, 1)) < 0)
+ && (abs_t == 1 || mpz_cmpabs (tz, mpz_roinit_n (tmp, &a_div_g, 1)) < 0))
{
mpz_clear (d);
mpz_clear (sz);
More information about the gmp-commit
mailing list