diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/cxx/t-ops2.cc | 40 | ||||
-rw-r--r-- | tests/devel/try.c | 2 | ||||
-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 | ||||
-rw-r--r-- | tests/mpz/t-jac.c | 4 |
6 files changed, 32 insertions, 32 deletions
diff --git a/tests/cxx/t-ops2.cc b/tests/cxx/t-ops2.cc index 9a6e7e020..4967ed208 100644 --- a/tests/cxx/t-ops2.cc +++ b/tests/cxx/t-ops2.cc @@ -148,18 +148,18 @@ void checkqf (){ CHECK_SI(T,0,3,*); CHECK_ALL_COMPARISONS(T,5.,2); CHECK_ALL_SIGNS_COMPARISONS(T,11.,3); - CHECK_MPZ(T,5,-2,<); - CHECK_MPZ(T,5,-2,>); + CHECK_MPZ(T,5,-2,<); + CHECK_MPZ(T,5,-2,>); CHECK_MPZ(T,5,-2,<=); CHECK_MPZ(T,5,-2,>=); CHECK_MPZ(T,5,-2,==); CHECK_MPZ(T,5,-2,!=); - CHECK_MPZ(T,0,0,<); - CHECK_MPZ(T,0,0,>); - CHECK_MPZ(T,0,0,<=); - CHECK_MPZ(T,0,0,>=); - CHECK_MPZ(T,0,0,==); - CHECK_MPZ(T,0,0,!=); + CHECK_MPZ(T,0,0,<); + CHECK_MPZ(T,0,0,>); + CHECK_MPZ(T,0,0,<=); + CHECK_MPZ(T,0,0,>=); + CHECK_MPZ(T,0,0,==); + CHECK_MPZ(T,0,0,!=); ASSERT_ALWAYS(T(6)<<2==6.*4); ASSERT_ALWAYS(T(6)>>2==6./4); ASSERT_ALWAYS(T(-13)<<2==-13.*4); @@ -217,18 +217,18 @@ void checkf (){ CHECK_MPQ(mpf_class,-5.5,-2.25,-); CHECK_MPQ(mpf_class,-5.5,-2.25,*); CHECK_MPQ(mpf_class,-5.25,-0.5,/); - CHECK_MPQ(mpf_class,5,-2,<); - CHECK_MPQ(mpf_class,5,-2,>); - CHECK_MPQ(mpf_class,5,-2,<=); - CHECK_MPQ(mpf_class,5,-2,>=); - CHECK_MPQ(mpf_class,5,-2,==); - CHECK_MPQ(mpf_class,5,-2,!=); - CHECK_MPQ(mpf_class,0,0,<); - CHECK_MPQ(mpf_class,0,0,>); - CHECK_MPQ(mpf_class,0,0,<=); - CHECK_MPQ(mpf_class,0,0,>=); - CHECK_MPQ(mpf_class,0,0,==); - CHECK_MPQ(mpf_class,0,0,!=); + CHECK_MPQ(mpf_class,5,-2,<); + CHECK_MPQ(mpf_class,5,-2,>); + CHECK_MPQ(mpf_class,5,-2,<=); + CHECK_MPQ(mpf_class,5,-2,>=); + CHECK_MPQ(mpf_class,5,-2,==); + CHECK_MPQ(mpf_class,5,-2,!=); + CHECK_MPQ(mpf_class,0,0,<); + CHECK_MPQ(mpf_class,0,0,>); + CHECK_MPQ(mpf_class,0,0,<=); + CHECK_MPQ(mpf_class,0,0,>=); + CHECK_MPQ(mpf_class,0,0,==); + CHECK_MPQ(mpf_class,0,0,!=); } int diff --git a/tests/devel/try.c b/tests/devel/try.c index bf09dd829..7ccb9de0b 100644 --- a/tests/devel/try.c +++ b/tests/devel/try.c @@ -459,7 +459,7 @@ validate_bdiv_q_1 refmpn_mul_1 (tp, dst, size, divisor); /* Set ignored low bits */ - tp[0] |= (src[0] & LOW_ZEROS_MASK (divisor)); + tp[0] |= (src[0] & LOW_ZEROS_MASK (divisor)); if (! refmpn_equal_anynail (tp, src, size)) { printf ("Bdiv wrong: res * divisor != src (mod B^size)\n"); 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; diff --git a/tests/mpz/t-jac.c b/tests/mpz/t-jac.c index 5d8cad177..34cd82e78 100644 --- a/tests/mpz/t-jac.c +++ b/tests/mpz/t-jac.c @@ -921,7 +921,7 @@ mpz_nextprime_step (mpz_ptr p, mpz_srcptr n, mpz_srcptr step_in) mpz_gcd (gcd, p, step); ASSERT_ALWAYS (mpz_cmp_ui (gcd, 1) == 0); mpz_clear (gcd); - + pn = SIZ(p); count_leading_zeros (cnt, PTR(p)[pn - 1]); nbits = pn * GMP_NUMB_BITS - (cnt - GMP_NAIL_BITS); @@ -1016,7 +1016,7 @@ check_large_quotients (void) mpz_set_ui (op1, 0); mpz_urandomb (bs, rands, 32); mpz_urandomb (bs, rands, mpz_get_ui (bs) % 10 + 1); - + gcd_size = 1 + mpz_get_ui (bs); if (gcd_size & 1) { |