summaryrefslogtreecommitdiff
path: root/tests/tadd_ui.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/tadd_ui.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/tadd_ui.c')
-rw-r--r--tests/tadd_ui.c25
1 files changed, 14 insertions, 11 deletions
diff --git a/tests/tadd_ui.c b/tests/tadd_ui.c
index f6563839d..cdf315463 100644
--- a/tests/tadd_ui.c
+++ b/tests/tadd_ui.c
@@ -42,20 +42,23 @@ void special _PROTO((void));
void
check3 (double x, unsigned long y, unsigned int rnd_mode, double z1)
{
- double z2; mpfr_t xx,zz;
+ double z2;
+ mpfr_t xx, zz;
- mpfr_init2(xx, 53);
- mpfr_init2(zz, 53);
- mpfr_set_d(xx, x, rnd_mode);
- mpfr_add_ui(zz, xx, y, rnd_mode);
+ mpfr_init2 (xx, 53);
+ mpfr_init2 (zz, 53);
+ mpfr_set_d (xx, x, rnd_mode);
+ mpfr_add_ui (zz, xx, y, rnd_mode);
z2 = mpfr_get_d1 (zz);
- if (z1!=z2 && !(isnan(z1) && isnan(z2))) {
- printf("expected sum is %1.20e, got %1.20e\n",z1,z2);
- printf("mpfr_add_ui failed for x=%1.20e y=%lu with rnd_mode=%s\n",
- x, y, mpfr_print_rnd_mode(rnd_mode));
- exit(1);
+ if (z1 != z2 && !(Isnan(z1) && Isnan(z2)))
+ {
+ printf ("expected sum is %1.20e, got %1.20e\n",z1,z2);
+ printf ("mpfr_add_ui failed for x=%1.20e y=%lu with rnd_mode=%s\n",
+ x, y, mpfr_print_rnd_mode(rnd_mode));
+ exit (1);
}
- mpfr_clear(xx); mpfr_clear(zz);
+ mpfr_clear (xx);
+ mpfr_clear (zz);
}
void