diff options
author | Kevin Ryde <user42@zip.com.au> | 2003-12-13 00:55:01 +0100 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2003-12-13 00:55:01 +0100 |
commit | 0c36aa9d0bd6a6f9fc84b97553f664fe96d07908 (patch) | |
tree | c358a7bb718d9f979f106bbb56ba34fd788766ac | |
parent | 3f2ed6a649c4ad01d8e4de8ff84ca843ed97df19 (diff) | |
download | gmp-0c36aa9d0bd6a6f9fc84b97553f664fe96d07908.tar.gz |
* tests/t-constants.c (main), tests/t-count_zeros.c (check_clz),
tests/t-modlinv.c (one), tests/mpz/t-jac.c (try_si_zi),
tests/mpq/t-get_d.c (check_onebit): : Correction to printfs.
-rw-r--r-- | tests/mpz/t-jac.c | 4 | ||||
-rw-r--r-- | tests/t-constants.c | 4 | ||||
-rw-r--r-- | tests/t-count_zeros.c | 10 | ||||
-rw-r--r-- | tests/t-modlinv.c | 8 |
4 files changed, 14 insertions, 12 deletions
diff --git a/tests/mpz/t-jac.c b/tests/mpz/t-jac.c index aba2997d7..ef3d93ef4 100644 --- a/tests/mpz/t-jac.c +++ b/tests/mpz/t-jac.c @@ -1,6 +1,6 @@ /* Exercise mpz_*_kronecker_*() and mpz_jacobi() functions. -Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc. +Copyright 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. This file is part of the GNU MP Library. @@ -158,7 +158,7 @@ try_si_zi (long a, mpz_srcptr b, int answer) got = mpz_si_kronecker (a, b); if (got != answer) { - printf ("mpz_si_kronecker (%d, ", a); + printf ("mpz_si_kronecker (%ld, ", a); mpz_out_str (stdout, 10, b); printf (") is %d should be %d\n", got, answer); abort (); diff --git a/tests/t-constants.c b/tests/t-constants.c index a8d025f15..f97e96636 100644 --- a/tests/t-constants.c +++ b/tests/t-constants.c @@ -1,6 +1,6 @@ /* Check the values of some constants. -Copyright 2000, 2001, 2002 Free Software Foundation, Inc. +Copyright 2000, 2001, 2002, 2003 Free Software Foundation, Inc. This file is part of the GNU MP Library. @@ -217,7 +217,7 @@ main (int argc, char *argv[]) CHECK_BITS (BITS_PER_MP_LIMB, mp_limb_t); CHECK_BITS (BITS_PER_ULONG, unsigned long); - CHECK_HIGHBIT (GMP_LIMB_HIGHBIT, mp_limb_t, LL("0x%lX","0x%lX")); + CHECK_HIGHBIT (GMP_LIMB_HIGHBIT, mp_limb_t, LL("0x%lX","0x%llX")); CHECK_HIGHBIT (ULONG_HIGHBIT, unsigned long, "0x%lX"); CHECK_HIGHBIT (UINT_HIGHBIT, unsigned int, "0x%X"); CHECK_HIGHBIT (USHRT_HIGHBIT, unsigned short, "0x%hX"); diff --git a/tests/t-count_zeros.c b/tests/t-count_zeros.c index d9f0f5ce6..aa7b56f61 100644 --- a/tests/t-count_zeros.c +++ b/tests/t-count_zeros.c @@ -1,6 +1,6 @@ /* Test count_leading_zeros and count_trailing_zeros. -Copyright 2001, 2002 Free Software Foundation, Inc. +Copyright 2001, 2002, 2003 Free Software Foundation, Inc. This file is part of the GNU MP Library. @@ -33,10 +33,10 @@ check_clz (int want, mp_limb_t n) count_leading_zeros (got, n); if (got != want) { - printf ("count_leading_zeros wrong\n"); - printf (" n %lX\n", n); - printf (" want %d\n", want); - printf (" got %d\n", got); + printf ("count_leading_zeros wrong\n"); + mp_limb_trace (" n ", n); + printf (" want %d\n", want); + printf (" got %d\n", got); abort (); } } diff --git a/tests/t-modlinv.c b/tests/t-modlinv.c index 7afbf455b..aa38cc003 100644 --- a/tests/t-modlinv.c +++ b/tests/t-modlinv.c @@ -1,6 +1,6 @@ /* Test modlimb_invert. -Copyright 2000, 2001, 2002 Free Software Foundation, Inc. +Copyright 2000, 2001, 2002, 2003 Free Software Foundation, Inc. This file is part of the GNU MP Library. @@ -37,8 +37,10 @@ one (mp_limb_t n) prod = (inv * n) & GMP_NUMB_MASK; if (prod != 1) { - printf ("modlimb_invert wrong on n=0x%lX, got 0x%lX, product 0x%lX\n", - n, inv, prod); + printf ("modlimb_invert wrong\n"); + mp_limb_trace (" n ", n); + mp_limb_trace (" got ", inv); + mp_limb_trace (" product ", prod); abort (); } } |