Bug in gmp/mpfr/mpc, never ending ctan computation
nisse at lysator.liu.se
Mon Nov 19 13:17:13 UTC 2018
Vincent Lefevre <vincent at vinc17.net> writes:
> MPFR has a bounded (user configurable) exponent range, with underflow
> and overflow exceptions for out-of-range results, like in IEEE 754.
Good! I didn't find that in the manual until I knew the phrase to search
for. It's in
and relevant functions are mpfr_set_emin, mpfr_set_emax and mpfr_subnormalize.
You might want to add an entry for "Exponent range" to the concept index
in the manual.
I guess gcc should set things up similarly to the example on that page,
"This is an example of how to emulate binary double IEEE 754
arithmetic", with the caveat "This emulates a double IEEE 754 arithmetic
with correct rounding in the subnormal range, which may not be the case
for your hardware".
Niels Möller. PGP-encrypted email is preferred. Keyid 368C6677.
Internet email is subject to wholesale government surveillance.
More information about the gmp-bugs