diff options
Diffstat (limited to 'tests/mpn')
-rw-r--r-- | tests/mpn/t-hgcd_appr.c | 14 | ||||
-rw-r--r-- | tests/mpn/t-mod_1.c | 2 | ||||
-rw-r--r-- | tests/mpn/t-mulmid.c | 2 |
3 files changed, 9 insertions, 9 deletions
diff --git a/tests/mpn/t-hgcd_appr.c b/tests/mpn/t-hgcd_appr.c index 912a1fde0..486b13061 100644 --- a/tests/mpn/t-hgcd_appr.c +++ b/tests/mpn/t-hgcd_appr.c @@ -261,7 +261,7 @@ one_test (mpz_t a, mpz_t b, int i) "after tp: %Mx\n" "expected: %Mx\n", hgcd_tp[hgcd_scratch], marker[3]); - + abort (); } @@ -424,7 +424,7 @@ hgcd_appr_valid_p (mpz_t a, mpz_t b, mp_size_t res0, mp_bitcnt_t dbits, abits, margin; mpz_t appr_r0, appr_r1, t, q; struct hgcd_ref appr; - + if (!res0) { if (!res1) @@ -433,7 +433,7 @@ hgcd_appr_valid_p (mpz_t a, mpz_t b, mp_size_t res0, fprintf (stderr, "mpn_hgcd_appr returned 1 when no reduction possible.\n"); return 0; } - + /* NOTE: No *_clear calls on error return, since we're going to abort anyway. */ mpz_init (t); @@ -441,7 +441,7 @@ hgcd_appr_valid_p (mpz_t a, mpz_t b, mp_size_t res0, hgcd_ref_init (&appr); mpz_init (appr_r0); mpz_init (appr_r1); - + if (mpz_size (ref_r0) <= s) { fprintf (stderr, "ref_r0 too small!!!: "); debug_mp (ref_r0, 16); @@ -460,7 +460,7 @@ hgcd_appr_valid_p (mpz_t a, mpz_t b, mp_size_t res0, fprintf (stderr, "ref |r0 - r1| too large!!!: "); debug_mp (t, 16); return 0; } - + if (!res1) { mpz_set (appr_r0, a); @@ -473,7 +473,7 @@ hgcd_appr_valid_p (mpz_t a, mpz_t b, mp_size_t res0, for (i = 0; i<2; i++) { unsigned j; - + for (j = 0; j<2; j++) { mp_size_t mn = hgcd->n; @@ -567,7 +567,7 @@ hgcd_appr_valid_p (mpz_t a, mpz_t b, mp_size_t res0, fprintf (stderr, "appr_r1: "); debug_mp (appr_r1, 16); fprintf (stderr, "ref_r1: "); debug_mp (ref_r1, 16); - + return 0; } mpz_clear (t); diff --git a/tests/mpn/t-mod_1.c b/tests/mpn/t-mod_1.c index f1966154d..2f86ba277 100644 --- a/tests/mpn/t-mod_1.c +++ b/tests/mpn/t-mod_1.c @@ -90,7 +90,7 @@ main (int argc, char **argv) rands = RANDS; mpz_init (a); mpz_init (b); - + for (i = 0; i < 300; i++) { mp_size_t asize; diff --git a/tests/mpn/t-mulmid.c b/tests/mpn/t-mulmid.c index ab224acea..a946aefe8 100644 --- a/tests/mpn/t-mulmid.c +++ b/tests/mpn/t-mulmid.c @@ -52,7 +52,7 @@ main (int argc, char **argv) bp = TMP_ALLOC_LIMBS (MAX_N); rp = TMP_ALLOC_LIMBS (MAX_N + 2); refp = TMP_ALLOC_LIMBS (MAX_N + 2); - + for (test = 0; test < COUNT; test++) { mp_size_t an, bn, rn; |