diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2012-01-19 10:33:31 +0000 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2012-01-19 10:33:31 +0000 |
commit | 29137c6ff7a9e370e2332d855ab46616ad4e9cc9 (patch) | |
tree | fbca7aa7cfa645df1b059aeba7e81739620b013c /tests/mpn/t-hgcd_appr.c | |
parent | 962de8d4b353178d38c2c70e952944686b9fd47b (diff) | |
parent | 2c033efc02631f22e6e180ce737a2faf81b09ccc (diff) | |
download | gmp-29137c6ff7a9e370e2332d855ab46616ad4e9cc9.tar.gz |
Merge branch 'master' into baserock/morph
Diffstat (limited to 'tests/mpn/t-hgcd_appr.c')
-rw-r--r-- | tests/mpn/t-hgcd_appr.c | 14 |
1 files changed, 7 insertions, 7 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); |