summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2014-06-17 09:09:01 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2014-06-17 09:09:01 +0000
commitc5f9dec17f19d7168fd2a9b5955612ad181276b5 (patch)
tree0b57907b06b4beca6082156df817c58ae6c50df0 /doc
parent7ff33ca83490b36ebe8d6f026c96c2d84a998fa0 (diff)
downloadmpfr-c5f9dec17f19d7168fd2a9b5955612ad181276b5.tar.gz
[doc/README.dev] Updated note about ternary values (macros).
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9068 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'doc')
-rw-r--r--doc/README.dev5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/README.dev b/doc/README.dev
index 03f603275..05fd8d056 100644
--- a/doc/README.dev
+++ b/doc/README.dev
@@ -969,6 +969,11 @@ 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.
+To work with ternary values, mpfr-impl.h provides the following macros:
+
+#define SIGN(I) ((I) < 0 ? -1 : (I) > 0)
+#define SAME_SIGN(I1,I2) (SIGN (I1) == SIGN (I2))
+
===========================================================================
Because of a bug in the Mac OS X 10.5 linker, avoid tentative definitions