NEWS 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329
  1. Copyright 2000-2016 Free Software Foundation, Inc.
  2. Contributed by the AriC and Caramba projects, INRIA.
  3. This file is part of the GNU MPFR Library.
  4. The GNU MPFR Library is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU Lesser General Public License as published by
  6. the Free Software Foundation; either version 3 of the License, or (at your
  7. option) any later version.
  8. The GNU MPFR Library is distributed in the hope that it will be useful, but
  9. WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  10. or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
  11. License for more details.
  12. You should have received a copy of the GNU Lesser General Public License
  13. along with the GNU MPFR Library; see the file COPYING.LESSER. If not, see
  14. http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc.,
  15. 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
  16. ##############################################################################
  17. Changes from version 3.1.4 to version 3.1.5:
  18. - C++11 compatibility.
  19. - Bug fixes (see <http://www.mpfr.org/mpfr-3.1.4/#fixed> and ChangeLog file).
  20. - More tests.
  21. Changes from version 3.1.3 to version 3.1.4:
  22. - Improved MPFR manual.
  23. - Bug fixes (see <http://www.mpfr.org/mpfr-3.1.3/#fixed> and ChangeLog file).
  24. - MinGW (MS Windows): Added support for thread-safe DLL (shared library).
  25. Changes from version 3.1.2 to version 3.1.3:
  26. - Better support for Automake 1.13+ (now used to generate the tarball).
  27. - Improved MPFR manual.
  28. - Bug fixes (see <http://www.mpfr.org/mpfr-3.1.2/#fixed> and ChangeLog file).
  29. Changes from version 3.1.1 to version 3.1.2:
  30. - Bug fixes (see <http://www.mpfr.org/mpfr-3.1.1/#fixed> or ChangeLog file).
  31. - Updated examples to the MPFR 3.x API.
  32. - Note: The official tarballs for MPFR up to 3.1.1 were affected by a
  33. vulnerability for "make distcheck" due to a bug in old GNU Automake
  34. versions: http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2012-3386
  35. Changes from version 3.1.0 to version 3.1.1:
  36. - Improved MPFR manual.
  37. - Test coverage: 96.5% lines of code.
  38. - Bug fixes (see <http://www.mpfr.org/mpfr-3.1.0/#fixed> or ChangeLog file).
  39. Changes from versions 3.0.* to version 3.1.0:
  40. - The "canard à l'orange" release.
  41. - The MPFR source has been reorganized.
  42. - Dropped ansi2knr support.
  43. - TLS support is now detected automatically. If TLS is supported, MPFR is
  44. built as thread safe by default. To disable TLS explicitly, configure
  45. MPFR with --disable-thread-safe.
  46. - New --enable-gmp-internals configure option to use GMP's undocumented
  47. functions (not from the public API). Note that library versioning is
  48. not guaranteed to work if this option is used.
  49. - The mpfr_urandom and mpfr_urandomb functions now return identical values
  50. on processors with different word size (assuming the same random seed, and
  51. since the GMP random generator does not depend itself on the word size,
  52. cf http://gmplib.org/list-archives/gmp-devel/2010-September/001642.html).
  53. - The mpfr_add_one_ulp and mpfr_sub_one_ulp macros (which are obsolete and
  54. no more documented) will be removed in a future release.
  55. - Speed improvement for the mpfr_sqr and mpfr_div functions using Mulders'
  56. algorithm. As a consequence, other functions using those routines are
  57. also faster.
  58. - Much faster formatted output (mpfr_printf, etc.) with %Rg and similar.
  59. - The --with-gmp-build configure option can now be used when the GMP
  60. source directory and the GMP build directory are different (without
  61. having to copy header files manually as before).
  62. - New functions mpfr_buildopt_gmpinternals_p, mpfr_buildopt_tune_case,
  63. mpfr_frexp, mpfr_grandom and mpfr_z_sub.
  64. - New divide-by-zero exception (flag) and associated functions.
  65. - The mpfr.h header can be included several times, while still supporting
  66. optional functions (see Section "Headers and Libraries" in the manual).
  67. - Updated tuning parameters.
  68. - Improved MPFR manual.
  69. - MPFR tests: libtool no longer generates wrapper scripts with "make check"
  70. (so that running the tests under valgrind or gdb is easier).
  71. - Internal change: the logging mechanism has been improved.
  72. - Test coverage: 95.2% lines of code.
  73. - Bug fixes, in particular a huge inefficiency in mpfr_exp (when the
  74. target precision is less than MPFR_EXP_THRESHOLD) on hard-to-round
  75. cases, which can take several minutes.
  76. Note: The mpfr_subnormalize implementation up to MPFR 3.0.0 did not change
  77. the flags. In particular, it did not follow the generic rule concerning
  78. the inexact flag (and no special behavior was specified). The case of the
  79. underflow flag was more a lack of specification.
  80. Changes from versions 2.4.* to version 3.0.0:
  81. - The "boudin aux pommes" release.
  82. - MPFR 3.0.0 is binary incompatible with previous versions but (almost)
  83. API compatible. More precisely the obsolete functions mpfr_random
  84. and mpfr_random2 have been removed, the meaning of the return type
  85. of the function mpfr_get_f has changed, and the return type of the
  86. function mpfr_get_z is now int instead of void. In practice, this
  87. should not break any existing code.
  88. - MPFR is now distributed under the GNU Lesser General Public License
  89. version 3 or later (LGPL v3+).
  90. - Rounding modes GMP_RNDx are now MPFR_RNDx (GMP_RNDx kept for
  91. compatibility).
  92. - A new rounding mode (MPFR_RNDA) is available to round away from zero.
  93. - The rounding mode type is now mpfr_rnd_t (as in previous versions,
  94. both mpfr_rnd_t and mp_rnd_t are accepted, but mp_rnd_t may be
  95. removed in the future).
  96. - The precision type is now mpfr_prec_t (as in previous versions, both
  97. mpfr_prec_t and mp_prec_t are accepted, but mp_prec_t may be removed
  98. in the future) and it is now signed (it was unsigned in MPFR 2.*, but
  99. this was not documented). In practice, this change should not affect
  100. existing code that assumed nothing on the precision type.
  101. - MPFR now has its own exponent type mpfr_exp_t, which is currently
  102. the same as GMP's mp_exp_t.
  103. - Functions mpfr_random and mpfr_random2 have been removed.
  104. - mpfr_get_f and mpfr_get_z now return a ternary value.
  105. - mpfr_strtofr now accepts bases from 37 to 62.
  106. - mpfr_custom_get_mantissa was renamed to mpfr_custom_get_significand
  107. (mpfr_custom_get_mantissa is still available via a #define).
  108. - Functions mpfr_get_si, mpfr_get_ui, mpfr_get_sj, mpfr_get_uj,
  109. mpfr_get_z and mpfr_get_z_2exp no longer have cases with undefined
  110. behavior; in these cases, the behavior is now specified, and in
  111. particular, the erange flag is set.
  112. - New functions mpfr_buildopt_tls_p and mpfr_buildopt_decimal_p giving
  113. information about options used at MPFR build time.
  114. - New function mpfr_regular_p.
  115. - New function mpfr_set_zero.
  116. - New function mpfr_digamma.
  117. - New function mpfr_ai (incomplete, experimental).
  118. - New functions mpfr_set_flt and mpfr_get_flt to convert from/to the
  119. float type.
  120. - New function mpfr_urandom.
  121. - New function mpfr_set_z_2exp (companion to mpfr_get_z_2exp, which
  122. was renamed from mpfr_get_z_exp in previous versions).
  123. - New function mpfr_min_prec.
  124. - Speed improvement for large precisions in the trigonometric functions
  125. (mpfr_sin, mpfr_cos, mpfr_tan, mpfr_sin_cos): speedup of about 2.5
  126. for 10^5 digits, of about 5 for 10^6 digits.
  127. - Speed improvement for large precisions of the inverse trigonometric
  128. functions (arcsin, arccos, arctan): about 2 for 10^3 digits, up to
  129. 2.7 for 10^6 digits.
  130. - Some documentation files are installed in $docdir.
  131. - The detection of a GMP build directory (more precisely, the internal
  132. header files of GMP) was previously done separately from the use of
  133. the --with-gmp-build configure option. This was not consistent with
  134. the documentation and with other parts of the configure script. So,
  135. as of MPFR 3.0.0, the internal header files of GMP are now used if
  136. and only if the --with-gmp-build configure option is given.
  137. - The configure script recognizes some extra "long double" formats
  138. (double big endian, double little endian, double-double big endian).
  139. - MPFR manual: added "API Compatibility" section.
  140. - Test coverage: 97.1% lines of code.
  141. - Bug fixes.
  142. Changes from versions 2.3.* to version 2.4.0:
  143. - The "andouillette sauce moutarde" release.
  144. - MPFR is now a GNU package.
  145. - Changes in the behavior of mpfr_strtofr and in its documentation
  146. concerning particular cases where the code and the documentation
  147. did not match; this change is also present in MPFR 2.3.1.
  148. - Behavior of mpfr_check_range changed: if the value is an inexact
  149. infinity, the overflow flag is set (in case it was lost); this
  150. change is also present in MPFR 2.3.2.
  151. - Function mpfr_init_gmp_rand (only defined when building MPFR without
  152. the --with-gmp-build configure option) is no longer defined at all.
  153. This function was private and not documented, and was used only in
  154. the MPFR test suite. User code that calls it is regarded as broken
  155. and may fail as a consequence. Running the old test suite against
  156. MPFR 2.4.0 may also fail.
  157. - New functions:
  158. * between a MPFR number and a double: mpfr_add_d, mpfr_sub_d,
  159. mpfr_d_sub, mpfr_mul_d, mpfr_div_d, mpfr_d_div,
  160. * formatted input/output:
  161. mpfr_printf, mpfr_fprintf, mpfr_vprintf, mpfr_vfprintf,
  162. mpfr_sprintf, mpfr_snprintf, mpfr_vsprintf, mpfr_vsnprintf,
  163. mpfr_asprintf, mpfr_vasprintf.
  164. * mpfr_sinh_cosh, mpfr_li2, mpfr_modf, mpfr_fmod, mpfr_rec_sqrt.
  165. - Configure test for TLS support.
  166. - Get default $CC and $CFLAGS from gmp.h (__GMP_CC / __GMP_CFLAGS,
  167. which are available as of GMP 4.2.3).
  168. - Documented the fact that mpfr_random and mpfr_random2 will be
  169. suppressed in the next release, and that the specification of
  170. mpfr_eq may change in the next release (for compatibility with
  171. the mpf layer of GMP).
  172. - Test coverage: 96.7% lines of code.
  173. - Bug fixes.
  174. Changes from versions 2.2.* to version 2.3.0:
  175. - The mpfr.info file is now installed in the share subdirectory
  176. (as required by the Filesystem Hierarchy Standard); see output
  177. of "./configure --help".
  178. - The shared library is now enabled by default. If the MPFR build
  179. fails on your platform, try the --disable-shared configure option
  180. to disable the shared library.
  181. - Thread-safe support with Microsoft Visual compiler.
  182. - New functions mpfr_j0, mpfr_j1, mpfr_jn, mpfr_y0, mpfr_y1, mpfr_yn,
  183. mpfr_lgamma, mpfr_remainder, mpfr_remquo, mpfr_fms, mpfr_signbit,
  184. mpfr_setsign, mpfr_copysign, mpfr_get_patches.
  185. - Functions mpfr_sin, mpfr_cos and mpfr_sin_cos improved (argument
  186. reduction).
  187. - More detailed MPFR manual.
  188. - Improved tests (make check).
  189. - Bug fixes.
  190. Changes from versions 2.1.* to version 2.2.0:
  191. - Bug fixes.
  192. - new functions mpfr_set_overflow, mpfr_set_underflow, mpfr_set_inexflag,
  193. mpfr_set_erangeflag, mpfr_set_nanflag, mpfr_erfc, mpfr_atan2, mpfr_pow_z,
  194. mpfr_subnormalize, mpfr_const_catalan, mpfr_sec, mpfr_csc, mpfr_cot,
  195. mpfr_root, mpfr_eint, mpfr_get_f, mpfr_sech, mpfr_csch, mpfr_coth,
  196. mpfr_lngamma.
  197. - new macro: MPFR_VERSION_STRING
  198. - Remove the exported MPFR variables from mpfr.h to mpfr-impl.h.
  199. (They were undocumented, so programs which respect the API still work).
  200. - Grep CC and CFLAGS from GMP Makefile if possible.
  201. - Math functions are faster (both average and worst cases).
  202. - Better support for long double.
  203. - Shared library of MPFR.
  204. - Binary compatible with previous versions if you do not use undocumented
  205. features.
  206. - Thread safe (if built with --enable-thread-safe).
  207. - Logging facility.
  208. - Change in the semantics of mpfr_out_str/mpfr_get_str when n_digits=0.
  209. - Better locale support.
  210. Changes from version 2.1.0 to version 2.1.1:
  211. - Better way to detect the GMP library.
  212. - Bug fixes.
  213. Changes from version 2.0.3 to version 2.1.0:
  214. - Bug fixes.
  215. - new functions mpfr_strtofr, mpfr_set_uj, mpfr_set_sj, mpfr_set_ui_2exp,
  216. mpfr_set_si_2exp, mpfr_set_sj_2exp, mpfr_set_uj_2exp, mpfr_get_uj,
  217. mpfr_get_sj, mpfr_get_z, mpfr_free_str, mpfr_si_sub, mpfr_sub_si,
  218. mpfr_mul_si, mpfr_si_div, mpfr_div_si, mpfr_sqr, mpfr_cmp_z, mpfr_cmp_q,
  219. mpfr_zero_p, mpfr_free_cache, mpfr_sum, mpfr_get_version,
  220. mpfr_get_default_rounding_mode, mpfr_get_emin_min, mpfr_get_emin_max,
  221. mpfr_get_emax_min, mpfr_get_emax_max, mpfr_inits, mpfr_inits2, mpfr_clears,
  222. mpfr_fits_intmax_p, mpfr_fits_uintmax_p, mpfr_clear_erangeflag,
  223. mpfr_erangeflag_p, mpfr_rint_round, mpfr_rint_trunc, mpfr_rint_ceil,
  224. mpfr_rint_floor.
  225. - new macros MPFR_DECL_INIT, MPFR_VERSION, MPFR_VERSION_NUM,
  226. MPFR_VERSION_MAJOR, MPFR_VERSION_MINOR, MPFR_VERSION_PATCHLEVEL.
  227. - improved documentation.
  228. - improved configure.
  229. - improved portability (library and test suite).
  230. - It handles correctly non IEEE-754 double.
  231. - GMP internal files are not needed to install MPFR.
  232. - It is faster with low-precision floating point.
  233. - New global flag: ERANGE_FLAG.
  234. - Binary incompatible with previous versions, but API compatible.
  235. - mpfr_set_str doesn't allow anymore "@NAN@garbagechar" and "@INF@garbagechar",
  236. allows base 0 (detection of the base), prefix (0x, 0b), leading whitespace.
  237. Changes from version 2.0.2 to version 2.0.3:
  238. - Bug fixes.
  239. - Support GMP as a shared library (not fully tested).
  240. Changes from version 2.0.1 to version 2.0.2:
  241. - many bug fixes and other improvements.
  242. - new functions mpfr_prec_round (replaces mpfr_round_prec), mpfr_get_exp,
  243. mpfr_set_exp, mpfr_get_ld, mpfr_set_ld, mpfr_get_d_2exp, mpfr_get_si,
  244. mpfr_get_ui, mpfr_nextabove, mpfr_nextbelow, mpfr_nexttoward, mpfr_frac,
  245. mpfr_fits_*, mpfr_cmp_d, mpfr_cmpabs, mpfr_erf, mpfr_gamma, mpfr_zeta,
  246. mpfr_greater_p, mpfr_greaterequal_p, mpfr_less_p, mpfr_lessequal_p,
  247. mpfr_lessgreater_p, mpfr_equal_p, mpfr_unordered_p.
  248. - removed functions: mpfr_print_binary, mpfr_round_prec (replaced by
  249. mpfr_prec_round), mpfr_set_str_raw, mpfr_set_machine_rnd_mode.
  250. - function mpfr_isinteger renamed mpfr_integer_p.
  251. - return type of some functions changed from void to int, for consistency.
  252. - return type of mpfr_set_prec changed from int to void.
  253. - new values for exponent range.
  254. - rename internal variables.
  255. Changes from version 2001 to version 2.0.1:
  256. - new mathematical functions: acos, acosh, asin, asinh, atan, atanh, cosh,
  257. base-2 exponential and logarithm, base-10 logarithm, expm1, factorial,
  258. pow, pow_si, pow_ui, sinh, tan, tanh, ui_pow, ui_pow_ui
  259. - other new functions: mpfr_const_euler, mpfr_dim, mpfr_fma, mpfr_hypot,
  260. mpfr_min, mpfr_max, mpfr_rint, mpfr_set_inf, mpfr_set_nan
  261. - new operations with MPZ or MPQ: mpfr_{add,sub,mul,div}_[zq]
  262. - new predicates: mpfr_inf_p, mpfr_nan_p, mpfr_number_p, mpfr_isinteger,
  263. - add mechanism to set/check exponent range (overflow, underflow), partially
  264. implemented in the mpfr functions.
  265. - efficiency: mpfr_div is now faster when the divisor has a few limbs
  266. - rounding: now mpfr_pow implements exact rounding, and most functions return a
  267. ternary value indicating the position of the returned value wrt the exact one
  268. (thus the return value is now 'int' instead of 'void')
  269. - complete rewrite of the configuration files
  270. - mpfr_get_d, mpfr_{add,sub}_one_ulp now get a rounding mode as 2nd argument
  271. - some function names did change: mpz_set_fr is now mpfr_get_z_exp,
  272. mpfr_print_raw is now mpfr_print_binary.
  273. Changes from version 1.0 to version 2001:
  274. - the default installation does not provide any more access to machine
  275. rounding mode, and as a consequence does not compare MPFR results with
  276. precision=53 to machine results. Add option -DTEST if you want to have
  277. access to machine rounding mode, and to check MPFR results against.
  278. - the MPFR files do not need <math.h> any more
  279. - the header file <mpfr.h> was split into <mpfr.h> for exported functions
  280. and <mpfr-impl.h> for internal functions. The user should not use functions
  281. or macros from <mpfr-impl.h>, since those may change in further releases.
  282. - <mpfr.h> was modified in order to make easy a C++ interface
  283. - MPFR now deals with infinities (+infinity and -infinity) and NaN
  284. - the missing function mpfr_swap is now available
  285. - mpfr_zeta was removed (was incomplete)
  286. - mpfr_init and mpfr_init2 now initialize the corresponding variable to 0
  287. (like in other initialization functions from GNU MP)
  288. - in case memory allocation fails, an error message is output
  289. - several bugs of version 1.0 were fixed
  290. Changes from version 0.4 to version 1.0:
  291. - Version 1.0 now uses a standard configure/make installation.
  292. - Version 1.0 implements all functions that are available in the MPF class
  293. from GMP 3.1 (except mpf_swap) and a header file mpf2mpfr.h is included in
  294. the distribution for easy change from MPF to MPFR.
  295. - Version 1.0 implements new elementary functions: mpfr_sincos
  296. - Some functions and macros have been renamed: mpfr_log2 is now
  297. mpfr_const_log2, mpfr_pi is now mpfr_const_pi, SIGN is now MPFR_SIGN.
  298. - Version 1.0 uses faster algorithms for mpfr_exp, mpfr_const_pi,
  299. mpfr_const_log2. Compare the timings from version 1.0 and version 0.4.
  300. - Version 1.0 corrects some bugs of version 0.4.
  301. - The precision of MPFR variables is now named mpfr_prec, which makes it
  302. easier to change it, to say unsigned long long. Same for the rounding mode
  303. which is called mp_rnd_t.
  304. You'll find other news concerning the GNU MPFR library on the web
  305. page <http://www.mpfr.org/>.