summaryrefslogtreecommitdiff
path: root/tests/tsinh_cosh.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2009-03-03 16:51:07 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2009-03-03 16:51:07 +0000
commitf5f7883fc7cf47d38ed493a882fd7109bdd589bb (patch)
tree1058cf0d07593fa2cec9f32b4988ac40611b4bff /tests/tsinh_cosh.c
parentcbd40e1cb659b579e608afbe7a05da5b15a860be (diff)
downloadmpfr-f5f7883fc7cf47d38ed493a882fd7109bdd589bb.tar.gz
GMP_RNDX -> MPFR_RNDX
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6053 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tsinh_cosh.c')
-rw-r--r--tests/tsinh_cosh.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/tests/tsinh_cosh.c b/tests/tsinh_cosh.c
index 58467ad19..edbc86c4a 100644
--- a/tests/tsinh_cosh.c
+++ b/tests/tsinh_cosh.c
@@ -31,15 +31,15 @@ static void
failed (mpfr_t x, mpfr_t esh, mpfr_t gsh, mpfr_t ech, mpfr_t gch)
{
printf ("error : mpfr_sinh_cosh (x) x = ");
- mpfr_out_str (stdout, 10, 0, x, GMP_RNDD);
+ mpfr_out_str (stdout, 10, 0, x, MPFR_RNDD);
printf ("\nsinh(x) expected ");
- mpfr_out_str (stdout, 10, 0, esh, GMP_RNDD);
+ mpfr_out_str (stdout, 10, 0, esh, MPFR_RNDD);
printf ("\n got ");
- mpfr_out_str (stdout, 10, 0, gsh, GMP_RNDD);
+ mpfr_out_str (stdout, 10, 0, gsh, MPFR_RNDD);
printf ("\ncosh(x) expected ");
- mpfr_out_str (stdout, 10, 0, ech, GMP_RNDD);
+ mpfr_out_str (stdout, 10, 0, ech, MPFR_RNDD);
printf ("\n got ");
- mpfr_out_str (stdout, 10, 0, gch, GMP_RNDD);
+ mpfr_out_str (stdout, 10, 0, gch, MPFR_RNDD);
putchar ('\n');
mpfr_clears (x, esh, gsh, ech, gch, (mpfr_ptr) 0);
@@ -77,13 +77,13 @@ check_nans (void)
/* nan */
mpfr_set_nan (x);
- mpfr_sinh_cosh (sh, ch, x, GMP_RNDN);
+ mpfr_sinh_cosh (sh, ch, x, MPFR_RNDN);
MPFR_ASSERTN (mpfr_nan_p (sh));
MPFR_ASSERTN (mpfr_nan_p (ch));
/* +inf */
mpfr_set_inf (x, 1);
- mpfr_sinh_cosh (sh, ch, x, GMP_RNDN);
+ mpfr_sinh_cosh (sh, ch, x, MPFR_RNDN);
MPFR_ASSERTN (mpfr_inf_p (sh));
MPFR_ASSERTN (mpfr_sgn (sh) > 0);
MPFR_ASSERTN (mpfr_inf_p (ch));
@@ -91,7 +91,7 @@ check_nans (void)
/* -inf */
mpfr_set_inf (x, -1);
- mpfr_sinh_cosh (sh, ch, x, GMP_RNDN);
+ mpfr_sinh_cosh (sh, ch, x, MPFR_RNDN);
MPFR_ASSERTN (mpfr_inf_p (sh));
MPFR_ASSERTN (mpfr_sgn (sh) < 0);
MPFR_ASSERTN (mpfr_inf_p (ch));
@@ -114,16 +114,16 @@ main (int argc, char *argv[])
/* check against values given by sinh(x), cosh(x) */
mpfr_init2 (x, 53);
- mpfr_set_str (x, "FEDCBA987654321p-48", 16, GMP_RNDN);
+ mpfr_set_str (x, "FEDCBA987654321p-48", 16, MPFR_RNDN);
for (i = 0; i < 10; ++i)
{
/* x = i - x / 2 : boggle sign and bits */
- mpfr_ui_sub (x, i, x, GMP_RNDD);
- mpfr_div_2ui (x, x, 2, GMP_RNDD);
+ mpfr_ui_sub (x, i, x, MPFR_RNDD);
+ mpfr_div_2ui (x, x, 2, MPFR_RNDD);
- check (x, GMP_RNDN);
- check (x, GMP_RNDU);
- check (x, GMP_RNDD);
+ check (x, MPFR_RNDN);
+ check (x, MPFR_RNDU);
+ check (x, MPFR_RNDD);
}
mpfr_clear (x);