summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2017-12-07 15:10:29 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2017-12-07 15:10:29 +0000
commit87cc964e06b37efdfa80b46d20326bb9c1aa5bee (patch)
treedff1176ada2d3365f7c2a3b981fc653c19805f81 /src
parentf0ec95025157fbca88983722e05f7b59f3f50dd0 (diff)
downloadmpfr-87cc964e06b37efdfa80b46d20326bb9c1aa5bee.tar.gz
[src/fpif.c] Removed FIXME about the sign bit of NaN: done in
r11910 and r11920 (documentation + tests). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11929 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src')
-rw-r--r--src/fpif.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/fpif.c b/src/fpif.c
index 0d5d9f4d0..7dd620ba7 100644
--- a/src/fpif.c
+++ b/src/fpif.c
@@ -54,15 +54,11 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc.,
E = 119 (MPFR_KIND_ZERO) for a signed zero;
E = 120 (MPFR_KIND_INF) for a signed infinity;
E = 121 (MPFR_KIND_NAN) for NaN.
- *** FIXME *** Decide whether the sign bit of NaN matters here
- (the sign is currently transmitted before checking the value,
- so that the code would not need to be changed).
- It seems important that for export, the sign bit of NaN be
- specified in some way (to ease things like binary diffs or
- hashes).
3. Then we store the significand (for regular values).
+ The sign bit is preserved by the import/export functions, even for NaN.
+
Note: When a size is stored, it must be minimal, i.e. a number cannot
start with a null byte. Otherwise the import may fail.
*/