diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2016-07-06 14:30:09 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2016-07-06 14:30:09 +0000 |
commit | 0d80ecdedc268c45038a6f55d2a86f57654179b2 (patch) | |
tree | 87b20f144b1a6dcc15dcf2d0b910b3a86a0a679d | |
parent | a1c037856b522c888b8f3c01a52493dd9b5dd48f (diff) | |
download | mpfr-0d80ecdedc268c45038a6f55d2a86f57654179b2.tar.gz |
[tests/tadd.c] revert mpfr_add to test_add
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10586 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r-- | tests/tadd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/tadd.c b/tests/tadd.c index 00f255007..dcb62a3f8 100644 --- a/tests/tadd.c +++ b/tests/tadd.c @@ -647,7 +647,7 @@ check_overflow (void) mpfr_set_ui_2exp (c, 1, mpfr_get_emax () - prec_b / 2, MPFR_RNDN); mpfr_nextbelow (c); mpfr_clear_overflow (); - mpfr_add (a, b, c, (mpfr_rnd_t) r); + test_add (a, b, c, (mpfr_rnd_t) r); if (!mpfr_overflow_p () || (up && !mpfr_inf_p (a))) { printf ("No overflow (1) in check_overflow for rnd=%s\n", @@ -666,7 +666,7 @@ check_overflow (void) mpfr_set_ui_2exp (c, 1, mpfr_get_emax () - prec_b, MPFR_RNDN); mpfr_nextbelow (c); mpfr_clear_overflow (); - mpfr_add (a, b, c, (mpfr_rnd_t) r); + test_add (a, b, c, (mpfr_rnd_t) r); /* b + c is exactly representable iff prec_a >= prec_b + prec_c */ if (!mpfr_overflow_p () || !mpfr_inf_p (a)) { |