diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2010-01-08 19:13:48 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2010-01-08 19:13:48 +0000 |
commit | 1f7f06d17a7f5bacaa40d8cea4237ffe094ef433 (patch) | |
tree | 97fdc324d0ae9640c439df546f625d8a15ad50fe /tests/tadd.c | |
parent | 8f36df5d6bf5f20f4c4e60e9ac22e9d4d4a6508e (diff) | |
download | mpfr-1f7f06d17a7f5bacaa40d8cea4237ffe094ef433.tar.gz |
BITS_PER_MP_LIMB -> GMP_LIMB_BITS
got rid of BYTES_PER_MP_LIMB in configure.in (no longer defined by GMP)
Note[VL] (mpfr-impl.h): a mpn_sqr_n() macro is defined to use mpn_mul
if it is not already defined (in gmp-impl.h from GMP 4.x).
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6644 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tadd.c')
-rw-r--r-- | tests/tadd.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/tadd.c b/tests/tadd.c index cb6044a28..4dda3c5d2 100644 --- a/tests/tadd.c +++ b/tests/tadd.c @@ -818,18 +818,18 @@ coverage_bk_eq_0 (void) mpfr_t a, b, c; int inex; - mpfr_init2 (a, BITS_PER_MP_LIMB); - mpfr_init2 (b, 2 * BITS_PER_MP_LIMB); - mpfr_init2 (c, BITS_PER_MP_LIMB); + mpfr_init2 (a, GMP_LIMB_BITS); + mpfr_init2 (b, 2 * GMP_LIMB_BITS); + mpfr_init2 (c, GMP_LIMB_BITS); - mpfr_set_ui_2exp (b, 1, 2 * BITS_PER_MP_LIMB, MPFR_RNDN); + mpfr_set_ui_2exp (b, 1, 2 * GMP_LIMB_BITS, MPFR_RNDN); mpfr_sub_ui (b, b, 1, MPFR_RNDN); /* b = 111...111 (in base 2) where the 1's fit 2 whole limbs */ mpfr_set_ui_2exp (c, 1, -1, MPFR_RNDN); /* c = 1/2 */ inex = mpfr_add (a, b, c, MPFR_RNDU); - mpfr_set_ui_2exp (c, 1, 2 * BITS_PER_MP_LIMB, MPFR_RNDN); + mpfr_set_ui_2exp (c, 1, 2 * GMP_LIMB_BITS, MPFR_RNDN); if (! mpfr_equal_p (a, c)) { printf ("Error in coverage_bk_eq_0\n"); |