diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2014-06-17 09:03:11 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2014-06-17 09:03:11 +0000 |
commit | 7ff33ca83490b36ebe8d6f026c96c2d84a998fa0 (patch) | |
tree | 5ad7fca9a6b855c289706ffcc7669088762e94f3 /doc | |
parent | 7fd0c4a63c0f9abd6c346594fb2d771d3b470c17 (diff) | |
download | mpfr-7ff33ca83490b36ebe8d6f026c96c2d84a998fa0.tar.gz |
[doc/README.dev] Added a note about ternary values.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9067 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'doc')
-rw-r--r-- | doc/README.dev | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/README.dev b/doc/README.dev index 51379c616..03f603275 100644 --- a/doc/README.dev +++ b/doc/README.dev @@ -962,6 +962,15 @@ For implementation details, see the mpfr.h and mpfr-impl.h files. =========================================================================== +Be careful that the ternary value (a.k.a. "inexact") is not guaranteed +to be -1, 0, or 1, in general (for some functions, the exact value may +contain other information, such as midpoint cases with MPFR_EVEN_INEX), +and the exact behavior may change in the future. So, it is not correct +to multiply ternary values returned by arbitrary functions as this may +overflow. + +=========================================================================== + Because of a bug in the Mac OS X 10.5 linker, avoid tentative definitions (C99, 6.9.2). Depending on the context, use either a simple declaration (with the "extern" storage-class specifier) or an external definition. |