summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2017-05-19 08:54:32 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2017-05-19 08:54:32 +0000
commitcc49fbfb72759320fe535ffd43365e6bc4ba2d68 (patch)
treecbdc88017597a82e88c1877e4dffc6090bb4695b
parentafce48341d8ca14e267e6dd167521170ccc8f90c (diff)
downloadmpfr-cc49fbfb72759320fe535ffd43365e6bc4ba2d68.tar.gz
[doc/README.dev] Details for "-DMPFR_TESTS_DIVBYZERO -DMPFR_ERRDIVZERO".
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11497 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r--doc/README.dev13
1 files changed, 10 insertions, 3 deletions
diff --git a/doc/README.dev b/doc/README.dev
index 971020aa1..1ea6b601b 100644
--- a/doc/README.dev
+++ b/doc/README.dev
@@ -244,9 +244,16 @@ To make a release (for the MPFR team):
32, mode32 and mode64 (in particular mode32, where long's have
32 bits and limbs have 64 bits [long long]).
- Test with -DMPFR_TESTS_DIVBYZERO -DMPFR_ERRDIVZERO in order to detect
- whether tests can fail due to a FP division by 0 on platforms where
- such an operation fails (e.g. trap).
+ Test with -DMPFR_TESTS_DIVBYZERO -DMPFR_ERRDIVZERO -DXDEBUG in order
+ to detect whether tests can fail due to a FP division by 0 (yielding
+ either FE_DIVBYZERO, e.g. from 1.0 / 0.0 to generate an infinity, or
+ FE_INVALID, e.g. from 0.0 / 0.0 to generate a NaN) on platforms where
+ such an operation fails (e.g. trap). On platforms that do not support
+ IEEE 754, such an operation yields an undefined behavior.
+ If _MPFR_IEEE_FLOATS is defined to 1 (by the configure script), some
+ divisions by 0 are avoided in the MPFR library. The -DXDEBUG option
+ sets _MPFR_IEEE_FLOATS to 0, allowing one to detect more issues, for
+ platforms without IEEE floats.
Test with -D_MPFR_PREC_FORMAT=2 when the "int" type is smaller
than the "long" type.