diff options
author | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2003-12-09 13:52:50 +0000 |
---|---|---|
committer | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2003-12-09 13:52:50 +0000 |
commit | e97bb114dc859b50ac84a62ee8747f6cde0a98c4 (patch) | |
tree | 56e9936e70bf10ad3d73380c9d839947106bb4ff /tests/ttan.c | |
parent | b0a8072e3f96fb138f35b466d50bcbe2336bbec6 (diff) | |
download | mpfr-e97bb114dc859b50ac84a62ee8747f6cde0a98c4.tar.gz |
+ Add function mpfr_print_mantissa_binary, for debugging reason.
+ Rename MPFR_ALLOC_SIZE in MPFR_MALLOC_SIZE.
+ Add conditionnal -DSMALL directive in mpfr-impl.h.
+ Add new function: sub1sp.
Substraction in case of all the ops have the same prec.
+ Add its test (tsub1sp).
+ Modify a few the tests to avoid comparing mpfr results with double, for portability reason.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2569 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/ttan.c')
-rw-r--r-- | tests/ttan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ttan.c b/tests/ttan.c index 9b15ea9f6..8f435037a 100644 --- a/tests/ttan.c +++ b/tests/ttan.c @@ -82,7 +82,7 @@ main(int argc, char *argv[]) mpfr_set_prec (x, 2); mpfr_set_str (x, "0.5", 10, GMP_RNDN); mpfr_tan (x, x, GMP_RNDD); - if (mpfr_get_d1 (x) != 0.5) + if (mpfr_cmp_ui_2exp(x, 1, -1)) { printf ("mpfr_tan(0.5, GMP_RNDD) failed\n" "expected 0.5, got %f\n", mpfr_get_d1 (x)); |