Sun Jan 28 16:18:23 2018 UTC ()
mpfr: update to 4.0.0.

Changes from versions 3.1.* to version 4.0.0:
- The "dinde aux marrons" release.
- MPFR now depends on GMP 5.0+ instead of 4.1+.
- API change:
  Applications that call GMP's mp_set_memory_functions function to change
  the allocators must first call the new function mpfr_mp_memory_cleanup
  in all threads where MPFR is potentially used; this new function is
  currently equivalent to mpfr_free_cache.
  The reason is that the way memory allocation is done by MPFR has changed
  (again), so that the current GMP allocators are used (since for some
  applications, the old allocators may become invalid).
  Note: Freeing the caches like this might have a performance impact on some
  particular applications; if this is an issue, this could be handled for a
  future MPFR version.
- Mini-gmp support via the --enable-mini-gmp configure option (experimental).
- The minimum precision MPFR_PREC_MIN is now 1, with rounding defined as
  in the errata of IEEE 754-2008 and in the following IEEE 754 revision
  (ties rounded away from zero).
- Shared caches for multithreaded applications.
  New function mpfr_free_cache2.
- Partial support of MPFR_RNDF (faithful rounding).
- New functions: mpfr_fpif_export and mpfr_fpif_import to export and import
  numbers in a floating-point interchange format, independent both on the
  number of bits per word and on the endianness.
- New function mpfr_fmodquo to return the low bits of the quotient
  corresponding to mpfr_fmod.
- New functions mpfr_flags_clear, mpfr_flags_set, mpfr_flags_test,
  mpfr_flags_save and mpfr_flags_restore to operate on groups of flags.
- New functions mpfr_set_float128 and mpfr_get_float128 to convert from/to
  the __float128 type (requires --enable-float128 and compiler support).
- New functions mpfr_buildopt_float128_p and mpfr_buildopt_sharedcache_p.
- New functions mpfr_rint_roundeven and mpfr_roundeven, completing the
  other similar round-to-integer functions for rounding to nearest with
  the even-rounding rule.
- New macro mpfr_round_nearest_away to add partial emulation of the
  rounding to nearest-away (as defined in IEEE 754-2008).
- New functions mpfr_nrandom and mpfr_erandom to generate random numbers
  following normal and exponential distributions respectively.
- New functions mpfr_fmma and mpfr_fmms to compute a*b+c*d and a*b-c*d.
- New function mpfr_rootn_ui, similar to mpfr_root, but agreeing with the
  rootn function of the IEEE 754-2008 standard.
- New functions mpfr_log_ui to compute the logarithm of an integer,
  mpfr_gamma_inc for the incomplete Gamma function.
- New function mpfr_beta for the Beta function (incomplete, experimental).
- New function mpfr_get_q to convert a floating-point number into rational.
- The mpfr_dump function is now described in the manual; its output format
  has slightly changed.
- The mpfr_eint function now returns the value of the E1/eint1 function
  for negative argument.
- The behavior of the mpfr_set_exp function changed, as it could easily
  yield undefined behavior in some cases (this modifies both the API and
  the ABI).
- In function mpfr_urandom, the next random state no longer depends on the
  current exponent range and the rounding mode. The exceptions due to the
  rounding of the random number are now correctly generated, following the
  uniform distribution.
- Functions mpfr_grandom and mpfr_root are deprecated and will be removed
  in a future release.
- Complete rewrite of function mpfr_sum, which now works in all cases (the
  old one could take all the memory and/or crash with inputs of different
  magnitudes in case of huge cancellation or table maker's dilemma). The
  sign of an exact zero result is now specified, and the return value is
  now the usual ternary value. Note that the position of "const" in the
  mpfr_sum prototype has been fixed (the manual was correct); user code
  should not be affected.
- Old, deprecated macros mpfr_add_one_ulp and mpfr_sub_one_ulp removed.
  The mpfr_next* functions should be used instead.
- Internally, improved caching: a minimum of 10% increase of the precision
  is guaranteed to avoid too many recomputations.
- Added internal small-precision mpz_t pool, which aims to avoid the
  overhead of memory allocation, in particular.
  New function mpfr_free_pool.
- Added configure option --enable-assert=none to avoid checking any assertion.
- The --enable-decimal-float configure option no longer requires
  --with-gmp-build, and support for decimal floats is now automatically
  detected by default (similarly for support for __float128).
- Updated tuning parameters.
- Better support for Automake 1.13+ (now used to generate the tarball).
- Dropped K&R C compatibility.
- Improved MPFR manual.
- New MPFRbench program (see the tools/bench directory).
- Major speedup in mpfr_add, mpfr_sub, mpfr_mul, mpfr_div and mpfr_sqrt when
  all operands have the same precision and this precision is less than twice
  the number of bits per word, e.g., less than 128 on a 64-bit computer.
- Speedup by a factor of almost 2 in the double <--> mpfr conversions
  (mpfr_set_d and mpfr_get_d).
- Speedup in mpfr_log1p and mpfr_atanh for small arguments.
- Speedup in the mpfr_const_euler function (contributed by Fredrik Johansson),
  in the computation of Bernoulli numbers (used in mpfr_gamma, mpfr_li2,
  mpfr_digamma, mpfr_lngamma and mpfr_lgamma), in mpfr_div, in mpfr_fma
  and mpfr_fms.
- Test coverage: 96.3% lines of code.
- Bug fixes. In particular: a speed improvement when the --enable-assert
  or --enable-assert=full configure option is used with GCC; mpfr_get_str
  now sets the NaN flag on NaN input and the inexact flag when the conversion
  is inexact. For a full list, see http://www.mpfr.org/mpfr-3.1.6/#fixed
  and the same section for any previous 3.1.x version (follow the links
  in the "Changes..." sections).
- Microsoft Windows: Added support for thread-safe DLL (shared library).
  Tested with MinGW, ICC and MSVC.
- Limited pkg-config support.
- Autotools: Under Linux, make sure that the old dtags (when supported)
  are used if LD_LIBRARY_PATH is defined; otherwise "make check" would
  check an installed, compatible MPFR library found in LD_LIBRARY_PATH
  instead of the one that has been built with "make".
- New: optional "make check-gmp-symbols", mainly for binary distributions,
  to check that MPFR does not use GMP internal symbols (experimental).


(wiz)
diff -r1.33 -r1.34 pkgsrc/math/mpfr/Makefile
diff -r1.4 -r1.5 pkgsrc/math/mpfr/PLIST
diff -r1.25 -r1.26 pkgsrc/math/mpfr/distinfo
diff -r1.1 -r0 pkgsrc/math/mpfr/patches/patch-acinclude.m4
diff -r1.1 -r0 pkgsrc/math/mpfr/patches/patch-configure

cvs diff -r1.33 -r1.34 pkgsrc/math/mpfr/Makefile (expand / switch to unified diff)

--- pkgsrc/math/mpfr/Makefile 2017/09/10 21:17:02 1.33
+++ pkgsrc/math/mpfr/Makefile 2018/01/28 16:18:23 1.34
@@ -1,24 +1,26 @@ @@ -1,24 +1,26 @@
1# $NetBSD: Makefile,v 1.33 2017/09/10 21:17:02 wiz Exp $ 1# $NetBSD: Makefile,v 1.34 2018/01/28 16:18:23 wiz Exp $
2 2
3DISTNAME= mpfr-3.1.6 3DISTNAME= mpfr-4.0.0
4CATEGORIES= math 4CATEGORIES= math
5MASTER_SITES= http://www.mpfr.org/${DISTNAME}/ 5MASTER_SITES= http://www.mpfr.org/${DISTNAME}/
6EXTRACT_SUFX= .tar.bz2 6EXTRACT_SUFX= .tar.bz2
7 7
8MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
9HOMEPAGE= http://www.mpfr.org/ 9HOMEPAGE= http://www.mpfr.org/
10COMMENT= GMP-based library for multiple-precision floating-point computations 10COMMENT= GMP-based library for multiple-precision floating-point computations
11LICENSE= gnu-lgpl-v3 11LICENSE= gnu-lgpl-v3
12 12
13GNU_CONFIGURE= yes 13GNU_CONFIGURE= yes
14USE_LIBTOOL= yes 14USE_LIBTOOL= yes
15TEST_TARGET= check 15TEST_TARGET= check
16INFO_FILES= yes 16INFO_FILES= yes
17 17
 18PKGCONFIG_OVERRIDE+= mpfr.pc.in
 19
 20BUILDLINK_API_DEPENDS.gmp+= gmp>=5.0
18.include "../../devel/gmp/buildlink3.mk" 21.include "../../devel/gmp/buildlink3.mk"
19.include "../../mk/bsd.pkg.mk" 22.include "../../mk/bsd.pkg.mk"
20 23
21.if (${MACHINE_ARCH} == alpha) 24.if (${MACHINE_ARCH} == alpha)
22CONFIGURE_ENV+=CFLAGS="${CFLAGS:N-mieee}" 25CONFIGURE_ENV+=CFLAGS="${CFLAGS:N-mieee}"
23.endif 26.endif
24 

cvs diff -r1.4 -r1.5 pkgsrc/math/mpfr/PLIST (expand / switch to unified diff)

--- pkgsrc/math/mpfr/PLIST 2010/07/15 20:30:40 1.4
+++ pkgsrc/math/mpfr/PLIST 2018/01/28 16:18:23 1.5
@@ -1,17 +1,19 @@ @@ -1,17 +1,19 @@
1@comment $NetBSD: PLIST,v 1.4 2010/07/15 20:30:40 asau Exp $ 1@comment $NetBSD: PLIST,v 1.5 2018/01/28 16:18:23 wiz Exp $
2include/mpf2mpfr.h 2include/mpf2mpfr.h
3include/mpfr.h 3include/mpfr.h
4info/mpfr.info 4info/mpfr.info
5lib/libmpfr.la 5lib/libmpfr.la
 6lib/pkgconfig/mpfr.pc
6share/doc/mpfr/AUTHORS 7share/doc/mpfr/AUTHORS
7share/doc/mpfr/BUGS 8share/doc/mpfr/BUGS
8share/doc/mpfr/COPYING 9share/doc/mpfr/COPYING
9share/doc/mpfr/COPYING.LESSER 10share/doc/mpfr/COPYING.LESSER
10share/doc/mpfr/FAQ.html 11share/doc/mpfr/FAQ.html
11share/doc/mpfr/NEWS 12share/doc/mpfr/NEWS
12share/doc/mpfr/TODO 13share/doc/mpfr/TODO
13share/doc/mpfr/examples/ReadMe 14share/doc/mpfr/examples/ReadMe
 15share/doc/mpfr/examples/can_round.c
14share/doc/mpfr/examples/divworst.c 16share/doc/mpfr/examples/divworst.c
15share/doc/mpfr/examples/rndo-add.c 17share/doc/mpfr/examples/rndo-add.c
16share/doc/mpfr/examples/sample.c 18share/doc/mpfr/examples/sample.c
17share/doc/mpfr/examples/version.c 19share/doc/mpfr/examples/version.c

cvs diff -r1.25 -r1.26 pkgsrc/math/mpfr/distinfo (expand / switch to unified diff)

--- pkgsrc/math/mpfr/distinfo 2017/09/10 21:17:02 1.25
+++ pkgsrc/math/mpfr/distinfo 2018/01/28 16:18:23 1.26
@@ -1,8 +1,6 @@ @@ -1,8 +1,6 @@
1$NetBSD: distinfo,v 1.25 2017/09/10 21:17:02 wiz Exp $ 1$NetBSD: distinfo,v 1.26 2018/01/28 16:18:23 wiz Exp $
2 2
3SHA1 (mpfr-3.1.6.tar.bz2) = c207aada1c0af969d800c16f25e0a78e15b9c9cc 3SHA1 (mpfr-4.0.0.tar.bz2) = 799245347044c8f0da9e513f86bb5e4c07974931
4RMD160 (mpfr-3.1.6.tar.bz2) = dd491cad5a46b5187268acad0c37ce0d4d66e4fc 4RMD160 (mpfr-4.0.0.tar.bz2) = 2f4445d4acaef9b807b5d611287cf3f8fe22134b
5SHA512 (mpfr-3.1.6.tar.bz2) = 0c310dd7956be527884f8059c195a5aca1042b089d0927ac6341e6310b1250a7059bc61aaaab4dfb76c6ab8b67e440878ca203f72674529bbcb46770ed9b6885 5SHA512 (mpfr-4.0.0.tar.bz2) = 43932f9d5e60fd5545c27ff984784dd7a286656a0297d0be7c106f72a2d2e0408702be16bd27e5b5f17a04a2069d06d644cdb4ca4ab4c26ae1a5896fc77bdefd
6Size (mpfr-3.1.6.tar.bz2) = 1287202 bytes 6Size (mpfr-4.0.0.tar.bz2) = 1619917 bytes
7SHA1 (patch-acinclude.m4) = 62cdd6710683d2a1ab202d0122cf023bb84ade04 
8SHA1 (patch-configure) = 77375ad75693f4f9665bc23687782631318481ec 

File Deleted: pkgsrc/math/mpfr/patches/Attic/patch-acinclude.m4

File Deleted: pkgsrc/math/mpfr/patches/Attic/patch-configure