summaryrefslogtreecommitdiff
path: root/exp.c
diff options
context:
space:
mode:
authorpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2004-03-17 08:45:08 +0000
committerpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2004-03-17 08:45:08 +0000
commit0053edb12c78f5619ad79adf8bddf4b35245bc02 (patch)
tree939ecd076e8b3d35d4283420c977e88938fbb38a /exp.c
parent8c58e4a2d11fe6bc66a3f2f4c8b6221e1f8e688e (diff)
downloadmpfr-0053edb12c78f5619ad79adf8bddf4b35245bc02.tar.gz
Rename mpfr_exp3 in mpfr_exp_3.
Update THRESHOLD for mpfr_exp. Add MPFR_EXP_THRESHOLD. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2848 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'exp.c')
-rw-r--r--exp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/exp.c b/exp.c
index 1b1050e60..e6b3b2fa2 100644
--- a/exp.c
+++ b/exp.c
@@ -102,8 +102,8 @@ mpfr_exp (mpfr_ptr y, mpfr_srcptr x, mp_rnd_t rnd_mode)
return -MPFR_FROM_SIGN_TO_INT(signx);
}
- if (precy > 13000)
- return mpfr_exp3 (y, x, rnd_mode); /* O(M(n) log(n)^2) */
+ if (precy > MPFR_EXP_THRESHOLD)
+ return mpfr_exp_3 (y, x, rnd_mode); /* O(M(n) log(n)^2) */
else
return mpfr_exp_2 (y, x, rnd_mode); /* O(n^(1/3) M(n)) */
}