summaryrefslogtreecommitdiff
path: root/tests/tdiv.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2003-01-16 16:01:55 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2003-01-16 16:01:55 +0000
commit53e4fc7c14c9c4b9b3be6b941d853ac1fcc7f81a (patch)
tree6ca0f6baf11496ffc528a474687f4326c00e9796 /tests/tdiv.c
parent3d3b3c4428015d063a0b8b5b1519588ab37920d1 (diff)
downloadmpfr-53e4fc7c14c9c4b9b3be6b941d853ac1fcc7f81a.tar.gz
replaced isnan() by Isnan()
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2180 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tdiv.c')
-rw-r--r--tests/tdiv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/tdiv.c b/tests/tdiv.c
index d0588dc6e..338bb061b 100644
--- a/tests/tdiv.c
+++ b/tests/tdiv.c
@@ -52,10 +52,10 @@ check4 (double N, double D, mp_rnd_t rnd_mode, int p, double Q)
mpfr_set_d(d, D, rnd_mode);
mpfr_div(q, n, d, rnd_mode);
Q2 = mpfr_get_d1 (q);
- if (p == 53 && Q != Q2 && (!isnan(Q) || !isnan(Q2)))
+ if (p == 53 && Q != Q2 && !(Isnan(Q) && Isnan(Q2)))
{
printf ("mpfr_div failed for n=%1.20e, d=%1.20e, rnd_mode=%s\n",
- N, D, mpfr_print_rnd_mode(rnd_mode));
+ N, D, mpfr_print_rnd_mode (rnd_mode));
printf ("correct quotient is %1.20e, mpfr_div gives %1.20e (%d ulp)\n",
Q, Q2, ulp (Q2, Q));
exit (1);