Home My Page Projects MPFR
Summary Activity Forums Tracker Lists Tasks Docs News SCM Files

Forum: GNU MPFR 3.0.0 is released

Posted by: Vincent Lefèvre
Date: 2010-07-06 15:44
Summary: GNU MPFR 3.0.0 is released
Project: MPFR


The GNU MPFR library, a C library for multiple-precision floating-point computations with correct rounding, version 3.0.0 ("boudin aux pommes") is now available for download from the MPFR web site:


from INRIAGForge:


and from the GNU FTP site:


Changes from versions 2.4.* to version 3.0.0:
- MPFR 3.0.0 is binary incompatible with previous versions but (almost) API compatible. More precisely the obsolete functions mpfr_random and mpfr_random2 have been removed, the meaning of the return type of the function mpfr_get_f has changed, and the return type of the function mpfr_get_z is now int instead of void. In practice, this should not break any existing code.
- MPFR is now distributed under the GNU Lesser General Public License version 3 or later (LGPL v3+).
- Rounding modes GMP_RNDx are now MPFR_RNDx (GMP_RNDx kept for compatibility).
- A new rounding mode (MPFR_RNDA) is available to round away from zero.
- The rounding mode type is now mpfr_rnd_t (as in previous versions, both mpfr_rnd_t and mp_rnd_t are accepted, but mp_rnd_t may be removed in the future).
- The precision type is now mpfr_prec_t (as in previous versions, both mpfr_prec_t and mp_prec_t are accepted, but mp_prec_t may be removed in the future) and it is now signed (it was unsigned in MPFR 2.*, but this was not documented). In practice, this change should not affect existing code that assumed nothing on the precision type.
- MPFR now has its own exponent type mpfr_exp_t, which is currently the same as GMP's mp_exp_t.
- Functions mpfr_random and mpfr_random2 have been removed.
- mpfr_get_f and mpfr_get_z now return a ternary value.
- mpfr_strtofr now accepts bases from 37 to 62.
- mpfr_custom_get_mantissa was renamed to mpfr_custom_get_significand (mpfr_custom_get_mantissa is still available via a #define).
- Functions mpfr_get_si, mpfr_get_ui, mpfr_get_sj, mpfr_get_uj, mpfr_get_z and mpfr_get_z_2exp no longer have cases with undefined behavior; in these cases, the behavior is now specified, and in particular, the erange flag is set.
- New functions mpfr_buildopt_tls_p and mpfr_buildopt_decimal_p giving information about options used at MPFR build time.
- New function mpfr_regular_p.
- New function mpfr_set_zero.
- New function mpfr_digamma.
- New function mpfr_ai (incomplete, experimental).
- New functions mpfr_set_flt and mpfr_get_flt to convert from/to the float type.
- New function mpfr_urandom.
- New function mpfr_set_z_2exp (companion to mpfr_get_z_2exp, which was renamed from mpfr_get_z_exp in previous versions).
- Speed improvement for large operands in the trigonometric functions (mpfr_sin, mpfr_cos, mpfr_tan, mpfr_sin_cos): speedup of about 2.5 for 10^5 digits, of about 5 for 10^6 digits.
- Speed improvement for large operands of the inverse trigonometric functions (arcsin, arccos, arctan): about 2 for 10^3 digits, up to 2.7 for 10^6 digits.
- Some documentation files are installed in $docdir.
- The detection of a GMP build directory (more precisely, the internal header files of GMP) was previously done separately from the use of the --with-gmp-build configure option. This was not consistent with the documentation and with other parts of the configure script. So, as of MPFR 3.0.0, the internal header files of GMP are now used if and only if the --with-gmp-build configure option is given.
- The configure script recognizes some extra "long double" formats (double big endian, double little endian, double-double big endian).
- MPFR manual: added "API Compatibility" section.
- Test coverage: 97.1% lines of code.
- Bug fixes.

Note: MPFR 3.0.0 was actually released on June 10, but due to technical problems, this announce wasn't sent earlier. In the mean time, two patches are available, from both the MPFR web site and INRIAGforge (click on "files" or on "[View All Project Files]").
Latest News

GNU MPFR 4.0.1 is released

Vincent Lefèvre - 2018-02-08 21:02 -

GNU MPFR 3.1.6 is released

Vincent Lefèvre - 2017-09-11 06:15 -

GNU MPFR 3.1.5 is released

Vincent Lefèvre - 2016-09-29 14:50 -

GNU MPFR 3.1.3 is released

Vincent Lefèvre - 2015-06-22 07:50 -

GNU MPFR 3.1.2 is released

Vincent Lefèvre - 2013-03-18 14:12 -
Monitor Forum | Start New Thread Start New Thread
Topic Topic Starter Replies Last Post
Tiffany Heart Uggbottes Uggbottes02010-12-25 09:21