diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2002-03-19 16:44:32 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2002-03-19 16:44:32 +0000 |
commit | 7f5910d6d74a6df6cdfe4e054daf146b2741eb8f (patch) | |
tree | b599758d3a523f224d6f70c80befaf4a3733f31d /tests/tadd_ui.c | |
parent | 5e312be811d30870960160d99704344f5f6a6933 (diff) | |
download | mpfr-7f5910d6d74a6df6cdfe4e054daf146b2741eb8f.tar.gz |
now use macros DBL_NAN, DBL_POS_INF, DBL_NEG_INF,
and functions mpfr_set_nan, mpfr_set_inf
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1758 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tadd_ui.c')
-rw-r--r-- | tests/tadd_ui.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/tests/tadd_ui.c b/tests/tadd_ui.c index d0df80981..778062ad2 100644 --- a/tests/tadd_ui.c +++ b/tests/tadd_ui.c @@ -104,15 +104,17 @@ main (int argc, char *argv[]) } #endif special (); - check3(-1.716113812768534e-140, 1271212614, GMP_RNDZ, 1.27121261399999976e9); - check3(1.22191250737771397120e+20, 948002822, GMP_RNDN, - 122191250738719408128.0); - check3(-6.72658901114033715233e-165, 2000878121, GMP_RNDZ, - 2.0008781209999997615e9); - check3(-2.0769715792901673e-5, 880524, GMP_RNDN, 8.8052399997923023e5); - check3(1/0., 2394875, GMP_RNDN, 1/0.); - check3(-1/0., 2394875, GMP_RNDN, -1/0.); - check3(0./0., 2394875, GMP_RNDN, 0./0.); + check3 (-1.716113812768534e-140, 1271212614, GMP_RNDZ, + 1.27121261399999976e9); + check3 (1.22191250737771397120e+20, 948002822, GMP_RNDN, + 122191250738719408128.0); + check3 (-6.72658901114033715233e-165, 2000878121, GMP_RNDZ, + 2.0008781209999997615e9); + check3 (-2.0769715792901673e-5, 880524, GMP_RNDN, 8.8052399997923023e5); + check3 (DBL_POS_INF, 2394875, GMP_RNDN, DBL_POS_INF); + check3 (DBL_NEG_INF, 2394875, GMP_RNDN, DBL_NEG_INF); + check3 (DBL_NAN, 2394875, GMP_RNDN, DBL_NAN); + return 0; } |