diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2016-03-02 00:50:40 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2016-03-02 00:50:40 +0000 |
commit | acdda0ee039e133729d6a16b7d9b7563365580a2 (patch) | |
tree | 760d5a5ef9aa8e4b1668b3ef6a20e82cc5114f8b | |
parent | 3400e11293f2e4f4ec840d4e14faf5d88c01c4ed (diff) | |
download | mpfr-acdda0ee039e133729d6a16b7d9b7563365580a2.tar.gz |
[src/get_flt.c] FIXME: The code assumes the IEEE-754 binary32 format
with subnormal support.
(merged changeset r10175 from the trunk)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@10176 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r-- | src/get_flt.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/get_flt.c b/src/get_flt.c index b1cf41e5f..07b71206d 100644 --- a/src/get_flt.c +++ b/src/get_flt.c @@ -49,6 +49,9 @@ mpfr_get_flt (mpfr_srcptr src, mpfr_rnd_t rnd_mode) if (MPFR_UNLIKELY(rnd_mode == MPFR_RNDA)) rnd_mode = negative ? MPFR_RNDD : MPFR_RNDU; + /* FIXME: The code below assumes the IEEE-754 binary32 format + with subnormal support. */ + /* the smallest positive normal float number is 2^(-126) = 0.5*2^(-125), and the smallest positive subnormal number is 2^(-149) = 0.5*2^(-148) */ if (MPFR_UNLIKELY (e < -148)) |