diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2005-08-31 20:29:36 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2005-08-31 20:29:36 +0000 |
commit | c558442f56c102f081dbaf1b39f414e6897481f1 (patch) | |
tree | e4862c4eb536856eebc71cbaebfbb89d3f5a4cda /tests | |
parent | 109a9ee1deab6491a24802a6374705c71c5fd76f (diff) | |
download | mpfr-c558442f56c102f081dbaf1b39f414e6897481f1.tar.gz |
added new test (emax)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3758 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests')
-rw-r--r-- | tests/tlog.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/tlog.c b/tests/tlog.c index 72d04676d..adf11917e 100644 --- a/tests/tlog.c +++ b/tests/tlog.c @@ -177,6 +177,7 @@ static void special (void) { mpfr_t x, y; + mp_exp_t emax = mpfr_get_emax (); mpfr_init2 (x, 53); mpfr_init2 (y, 53); @@ -213,6 +214,16 @@ special (void) test_log (y, x, GMP_RNDN); MPFR_ASSERTN(mpfr_nan_p (y)); + /* infinite loop when */ + set_emax (128); + mpfr_set_prec (x, 251); + mpfr_set_prec (y, 251); + mpfr_set_str_binary (x, "0.10010111000000000001101E8"); + /* x = 4947981/32768, log(x) ~ 5.017282... */ + test_log (y, x, GMP_RNDN); + + set_emax (emax); + mpfr_clear (x); mpfr_clear (y); } |