summaryrefslogtreecommitdiff
path: root/mpfr-impl.h
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2007-02-09 11:55:51 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2007-02-09 11:55:51 +0000
commit4d4d1ab0a5a6530e863bc6f236e0c2dc626ad1f5 (patch)
tree45e2e18487f42d762bc53e668cecc88575e12139 /mpfr-impl.h
parent08f8c45d7453a73ba4f4631e89d4a1007d651c5f (diff)
downloadmpfr-4d4d1ab0a5a6530e863bc6f236e0c2dc626ad1f5.tar.gz
mpfr-impl.h: added a comment about the exponent limits for MPFR numbers.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4353 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'mpfr-impl.h')
-rw-r--r--mpfr-impl.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/mpfr-impl.h b/mpfr-impl.h
index aa071f154..4bbbed71b 100644
--- a/mpfr-impl.h
+++ b/mpfr-impl.h
@@ -537,7 +537,11 @@ typedef unsigned long int mpfr_uexp_t;
#define MPFR_EXP_INVALID \
((mp_exp_t) 1 << (BITS_PER_MP_LIMB*sizeof(mp_exp_t)/sizeof(mp_limb_t)-2))
-/* Definition of the intervals of the exponent limits */
+/* Definition of the exponent limits for MPFR numbers.
+ * These limits are chosen so that if e is such an exponent, then 2e-1 and
+ * 2e+1 are representable. This is useful for intermediate computations,
+ * in particular the multiplication.
+ */
#undef MPFR_EMIN_MIN
#undef MPFR_EMIN_MAX
#undef MPFR_EMAX_MIN