summaryrefslogtreecommitdiff
path: root/tests/tj1.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tj1.c')
-rw-r--r--tests/tj1.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/tests/tj1.c b/tests/tj1.c
index c6be96dcd..4fe0b4bf9 100644
--- a/tests/tj1.c
+++ b/tests/tj1.c
@@ -42,35 +42,35 @@ main (int argc, char *argv[])
/* special values */
mpfr_set_nan (x);
- mpfr_j1 (y, x, GMP_RNDN);
+ mpfr_j1 (y, x, MPFR_RNDN);
MPFR_ASSERTN(mpfr_nan_p (y));
mpfr_set_inf (x, 1); /* +Inf */
- mpfr_j1 (y, x, GMP_RNDN);
+ mpfr_j1 (y, x, MPFR_RNDN);
MPFR_ASSERTN(mpfr_cmp_ui (y, 0) == 0 && MPFR_IS_POS (y));
mpfr_set_inf (x, -1); /* -Inf */
- mpfr_j1 (y, x, GMP_RNDN);
+ mpfr_j1 (y, x, MPFR_RNDN);
MPFR_ASSERTN(mpfr_cmp_ui (y, 0) == 0 && MPFR_IS_POS (y));
- mpfr_set_ui (x, 0, GMP_RNDN); /* +0 */
- mpfr_j1 (y, x, GMP_RNDN);
+ mpfr_set_ui (x, 0, MPFR_RNDN); /* +0 */
+ mpfr_j1 (y, x, MPFR_RNDN);
MPFR_ASSERTN(mpfr_cmp_ui (y, 0) == 0 && MPFR_IS_POS (y)); /* j1(+0)=+0 */
- mpfr_set_ui (x, 0, GMP_RNDN);
- mpfr_neg (x, x, GMP_RNDN); /* -0 */
- mpfr_j1 (y, x, GMP_RNDN);
+ mpfr_set_ui (x, 0, MPFR_RNDN);
+ mpfr_neg (x, x, MPFR_RNDN); /* -0 */
+ mpfr_j1 (y, x, MPFR_RNDN);
MPFR_ASSERTN(mpfr_cmp_ui (y, 0) == 0 && MPFR_IS_NEG (y)); /* j1(-0)=-0 */
mpfr_set_prec (x, 53);
mpfr_set_prec (y, 53);
- mpfr_set_ui (x, 1, GMP_RNDN);
- mpfr_j1 (y, x, GMP_RNDN);
+ mpfr_set_ui (x, 1, MPFR_RNDN);
+ mpfr_j1 (y, x, MPFR_RNDN);
mpfr_set_str_binary (x, "0.0111000010100111001001111011101001011100001100011011");
if (mpfr_cmp (x, y))
{
- printf ("Error in mpfr_j1 for x=1, rnd=GMP_RNDN\n");
+ printf ("Error in mpfr_j1 for x=1, rnd=MPFR_RNDN\n");
printf ("Expected "); mpfr_dump (x);
printf ("Got "); mpfr_dump (y);
exit (1);