summaryrefslogtreecommitdiff
path: root/src/exp_2.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2018-02-16 01:39:57 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2018-02-16 01:39:57 +0000
commit273526299a0e4ed305bb89ba101090b718628367 (patch)
tree85733d25ac93b2a5456eac85944e5d27c50cb3af /src/exp_2.c
parent4924b53def77839fa36601c3e1870e1a5875284e (diff)
downloadmpfr-273526299a0e4ed305bb89ba101090b718628367.tar.gz
[src/exp_2.c] Note that the internal behavior depends on whether
MPFR_LONG_WITHIN_LIMB is defined or not (see also r12253). This should not matter, possibly except in case of bug, like currently. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12255 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src/exp_2.c')
-rw-r--r--src/exp_2.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/exp_2.c b/src/exp_2.c
index aafd431a9..548d0e70d 100644
--- a/src/exp_2.c
+++ b/src/exp_2.c
@@ -108,7 +108,10 @@ mpfr_exp_2 (mpfr_ptr y, mpfr_srcptr x, mpfr_rnd_t rnd_mode)
{
mp_limb_t r_limb[(sizeof (long) -1) / sizeof(mp_limb_t) + 1];
/* Note: we use precision sizeof (long) * CHAR_BIT - 1 here since it is
- more efficient that full limb precision. */
+ more efficient that full limb precision.
+ The value of n will depend on whether MPFR_LONG_WITHIN_LIMB is
+ defined or not. For instance, for r = 0.111E0, one gets n = 0
+ in the former case and n = 1 in the latter case. */
MPFR_TMP_INIT1(r_limb, r, sizeof (long) * CHAR_BIT - 1);
mpfr_div (r, x, __gmpfr_const_log2_RNDD, MPFR_RNDN);
#ifdef MPFR_LONG_WITHIN_LIMB