texlive[45242] Build/source/libs: mpfr-3.1.6

commits+kakuto at tug.org commits+kakuto at tug.org
Fri Sep 8 08:11:52 CEST 2017


Revision: 45242
          http://tug.org/svn/texlive?view=revision&revision=45242
Author:   kakuto
Date:     2017-09-08 08:11:51 +0200 (Fri, 08 Sep 2017)
Log Message:
-----------
mpfr-3.1.6

Modified Paths:
--------------
    trunk/Build/source/libs/README
    trunk/Build/source/libs/mpfr/ChangeLog
    trunk/Build/source/libs/mpfr/TLpatches/ChangeLog
    trunk/Build/source/libs/mpfr/TLpatches/TL-Changes
    trunk/Build/source/libs/mpfr/TLpatches/patch-01-TL
    trunk/Build/source/libs/mpfr/configure
    trunk/Build/source/libs/mpfr/mpfr-src/BUGS
    trunk/Build/source/libs/mpfr/mpfr-src/ChangeLog
    trunk/Build/source/libs/mpfr/mpfr-src/INSTALL
    trunk/Build/source/libs/mpfr/mpfr-src/Makefile.am
    trunk/Build/source/libs/mpfr/mpfr-src/NEWS
    trunk/Build/source/libs/mpfr/mpfr-src/README
    trunk/Build/source/libs/mpfr/mpfr-src/TODO
    trunk/Build/source/libs/mpfr/mpfr-src/VERSION
    trunk/Build/source/libs/mpfr/mpfr-src/acinclude.m4
    trunk/Build/source/libs/mpfr/mpfr-src/configure.ac
    trunk/Build/source/libs/mpfr/mpfr-src/src/Makefile.am
    trunk/Build/source/libs/mpfr/mpfr-src/src/abort_prec_max.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/acos.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/acosh.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/add.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/add1.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/add1sp.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/add_d.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/add_ui.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/agm.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/ai.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/amd/amdfam10/mparam.h
    trunk/Build/source/libs/mpfr/mpfr-src/src/amd/athlon/mparam.h
    trunk/Build/source/libs/mpfr/mpfr-src/src/amd/k8/mparam.h
    trunk/Build/source/libs/mpfr/mpfr-src/src/arm/mparam.h
    trunk/Build/source/libs/mpfr/mpfr-src/src/asin.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/asinh.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/atan.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/atan2.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/atanh.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/bernoulli.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/buildopt.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/cache.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/cbrt.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/check.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/clear.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/clears.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/cmp.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/cmp2.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/cmp_abs.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/cmp_d.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/cmp_ld.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/cmp_si.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/cmp_ui.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/comparisons.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/const_catalan.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/const_euler.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/const_log2.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/const_pi.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/constant.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/copysign.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/cos.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/cosh.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/cot.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/coth.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/csc.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/csch.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/d_div.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/d_sub.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/digamma.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/dim.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/div.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/div_2exp.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/div_2si.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/div_2ui.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/div_d.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/div_ui.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/dump.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/eint.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/eq.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/erf.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/erfc.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/exceptions.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/exp.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/exp10.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/exp2.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/exp3.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/exp_2.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/expm1.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/extract.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/factorial.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/fits_intmax.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/fits_s.h
    trunk/Build/source/libs/mpfr/mpfr-src/src/fits_sint.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/fits_slong.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/fits_sshort.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/fits_u.h
    trunk/Build/source/libs/mpfr/mpfr-src/src/fits_uint.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/fits_uintmax.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/fits_ulong.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/fits_ushort.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/fma.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/fms.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/frac.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/free_cache.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/frexp.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/gamma.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/gammaonethird.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/gen_inverse.h
    trunk/Build/source/libs/mpfr/mpfr-src/src/generic/mparam.h
    trunk/Build/source/libs/mpfr/mpfr-src/src/get_d.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/get_d64.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/get_exp.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/get_f.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/get_flt.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/get_ld.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/get_patches.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/get_si.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/get_sj.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/get_str.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/get_ui.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/get_uj.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/get_z.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/get_z_exp.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/gmp_op.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/grandom.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/hppa/mparam.h
    trunk/Build/source/libs/mpfr/mpfr-src/src/hypot.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/ia64/mparam.h
    trunk/Build/source/libs/mpfr/mpfr-src/src/ieee_floats.h
    trunk/Build/source/libs/mpfr/mpfr-src/src/init.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/init2.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/inits.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/inits2.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/inp_str.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/int_ceil_log2.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/isinf.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/isinteger.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/isnan.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/isnum.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/isqrt.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/isregular.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/iszero.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/jn.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/jyn_asympt.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/li2.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/lngamma.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/log.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/log10.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/log1p.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/log2.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/logging.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/min_prec.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/minmax.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/modf.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/mp_clz_tab.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/mparam_h.in
    trunk/Build/source/libs/mpfr/mpfr-src/src/mpf2mpfr.h
    trunk/Build/source/libs/mpfr/mpfr-src/src/mpfr-gmp.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/mpfr-gmp.h
    trunk/Build/source/libs/mpfr/mpfr-src/src/mpfr-impl.h
    trunk/Build/source/libs/mpfr/mpfr-src/src/mpfr-intmax.h
    trunk/Build/source/libs/mpfr/mpfr-src/src/mpfr-longlong.h
    trunk/Build/source/libs/mpfr/mpfr-src/src/mpfr-thread.h
    trunk/Build/source/libs/mpfr/mpfr-src/src/mpfr.h
    trunk/Build/source/libs/mpfr/mpfr-src/src/mpn_exp.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/mul.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/mul_2exp.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/mul_2si.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/mul_2ui.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/mul_d.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/mul_ui.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/mulders.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/neg.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/next.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/out_str.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/pow.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/pow_si.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/pow_ui.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/pow_z.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/powerof2.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/powerpc32/mparam.h
    trunk/Build/source/libs/mpfr/mpfr-src/src/powerpc64/mparam.h
    trunk/Build/source/libs/mpfr/mpfr-src/src/print_raw.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/print_rnd_mode.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/printf.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/rec_sqrt.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/reldiff.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/rem1.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/rint.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/root.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/round_near_x.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/round_p.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/round_prec.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/round_raw_generic.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/scale2.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/sec.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/sech.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/set.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/set_d.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/set_d64.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/set_dfl_prec.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/set_exp.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/set_f.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/set_flt.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/set_inf.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/set_ld.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/set_nan.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/set_prc_raw.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/set_prec.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/set_q.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/set_rnd.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/set_si.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/set_si_2exp.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/set_sj.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/set_str.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/set_str_raw.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/set_ui.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/set_ui_2exp.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/set_uj.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/set_z.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/set_z_exp.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/set_zero.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/setmax.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/setmin.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/setsign.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/sgn.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/si_op.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/signbit.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/sin.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/sin_cos.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/sinh.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/sinh_cosh.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/sparc64/mparam.h
    trunk/Build/source/libs/mpfr/mpfr-src/src/sqr.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/sqrt.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/sqrt_ui.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/stack_interface.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/strtofr.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/sub.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/sub1.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/sub1sp.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/sub_d.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/sub_ui.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/subnormal.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/sum.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/swap.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/tan.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/tanh.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/uceil_exp2.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/uceil_log2.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/ufloor_log2.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/ui_div.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/ui_pow.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/ui_pow_ui.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/ui_sub.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/urandom.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/urandomb.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/vasprintf.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/version.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/volatile.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/x86/core2/mparam.h
    trunk/Build/source/libs/mpfr/mpfr-src/src/x86/mparam.h
    trunk/Build/source/libs/mpfr/mpfr-src/src/x86_64/core2/mparam.h
    trunk/Build/source/libs/mpfr/mpfr-src/src/x86_64/pentium4/mparam.h
    trunk/Build/source/libs/mpfr/mpfr-src/src/yn.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/zeta.c
    trunk/Build/source/libs/mpfr/mpfr-src/src/zeta_ui.c
    trunk/Build/source/libs/mpfr/version.ac

Modified: trunk/Build/source/libs/README
===================================================================
--- trunk/Build/source/libs/README	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/README	2017-09-08 06:11:51 UTC (rev 45242)
@@ -43,7 +43,7 @@
 luajit 2.1.0-beta2 - checked 09mar16
   http://luajit.org/download/LuaJIT-2.1.0-beta1.tar.gz
 
-mpfr 3.1.5 - checked 28sep16
+mpfr 3.1.6 - checked 08sep17
   http://ftp.gnu.org/gnu/mpfr/
 
 pixman 0.34.0 - checked 04feb16

Modified: trunk/Build/source/libs/mpfr/ChangeLog
===================================================================
--- trunk/Build/source/libs/mpfr/ChangeLog	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/ChangeLog	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,3 +1,8 @@
+2017-09-08  Akira Kakuto  <kakuto at fuk.kindai.ac.jp>
+
+	Import mpfr-3.1.6.
+	* version.ac: Adjust.
+
 2016-09-28  Akira Kakuto  <kakuto at fuk.kindai.ac.jp>
 
 	Import mpfr-3.1.5.

Modified: trunk/Build/source/libs/mpfr/TLpatches/ChangeLog
===================================================================
--- trunk/Build/source/libs/mpfr/TLpatches/ChangeLog	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/TLpatches/ChangeLog	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,3 +1,9 @@
+2017-09-08  Akira Kakuto  <kakuto at fuk.kindai.ac.jp>
+
+	Imported mpfr-3.1.6 source tree from:
+	  http://ftp.gnu.org/gnu/mpfr/
+	* patch-01-TL: Adapted.
+
 2016-09-28  Akira Kakuto  <kakuto at fuk.kindai.ac.jp>
 
 	Imported mpfr-3.1.5 source tree from:

Modified: trunk/Build/source/libs/mpfr/TLpatches/TL-Changes
===================================================================
--- trunk/Build/source/libs/mpfr/TLpatches/TL-Changes	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/TLpatches/TL-Changes	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,4 +1,4 @@
-Changes applied to the mpfr-3.1.5/ tree as obtained from:
+Changes applied to the mpfr-3.1.6/ tree as obtained from:
 	http://ftp.gnu.org/gnu/mpfr/
 
 Removed:

Modified: trunk/Build/source/libs/mpfr/TLpatches/patch-01-TL
===================================================================
--- trunk/Build/source/libs/mpfr/TLpatches/patch-01-TL	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/TLpatches/patch-01-TL	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
-diff -ur mpfr-3.1.5.orig/src/mparam_h.in mpfr-3.1.5/src/mparam_h.in
---- mpfr-3.1.5.orig/src/mparam_h.in	Tue Sep 27 16:58:15 2016
-+++ mpfr-3.1.5/src/mparam_h.in	Wed Sep 28 16:53:41 2016
+diff -ur mpfr-3.1.6.orig/src/mparam_h.in mpfr-3.1.6/src/mparam_h.in
+--- mpfr-3.1.6.orig/src/mparam_h.in	Sun Jan 01 10:39:09 2017
++++ mpfr-3.1.6/src/mparam_h.in	Fri Sep 08 14:51:25 2017
 @@ -27,7 +27,9 @@
     for example with gcc -dM -E -xc /dev/null
     As of gcc 4.2, you can also use: -march=native or -mtune=native */
@@ -12,9 +12,9 @@
  #define MPFR_TUNE_CASE "src/x86_64/pentium4/mparam.h"
  #include "x86_64/pentium4/mparam.h"
  
-diff -ur mpfr-3.1.5.orig/src/mpfr-impl.h mpfr-3.1.5/src/mpfr-impl.h
---- mpfr-3.1.5.orig/src/mpfr-impl.h	Tue Sep 27 16:58:15 2016
-+++ mpfr-3.1.5/src/mpfr-impl.h	Wed Sep 28 16:55:05 2016
+diff -ur mpfr-3.1.6.orig/src/mpfr-impl.h mpfr-3.1.6/src/mpfr-impl.h
+--- mpfr-3.1.6.orig/src/mpfr-impl.h	Tue Sep 05 21:54:34 2017
++++ mpfr-3.1.6/src/mpfr-impl.h	Fri Sep 08 14:53:23 2017
 @@ -23,6 +23,11 @@
  #ifndef __MPFR_IMPL_H__
  #define __MPFR_IMPL_H__

Modified: trunk/Build/source/libs/mpfr/configure
===================================================================
--- trunk/Build/source/libs/mpfr/configure	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/configure	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.69 for mpfr (TeX Live) 3.1.5.
+# Generated by GNU Autoconf 2.69 for mpfr (TeX Live) 3.1.6.
 #
 # Report bugs to <tex-k at tug.org>.
 #
@@ -580,8 +580,8 @@
 # Identity of this package.
 PACKAGE_NAME='mpfr (TeX Live)'
 PACKAGE_TARNAME='mpfr--tex-live-'
-PACKAGE_VERSION='3.1.5'
-PACKAGE_STRING='mpfr (TeX Live) 3.1.5'
+PACKAGE_VERSION='3.1.6'
+PACKAGE_STRING='mpfr (TeX Live) 3.1.6'
 PACKAGE_BUGREPORT='tex-k at tug.org'
 PACKAGE_URL=''
 
@@ -1295,7 +1295,7 @@
   # Omit some internal or obsolete options to make the list less imposing.
   # This message is too long to be a string in the A/UX 3.1 sh.
   cat <<_ACEOF
-\`configure' configures mpfr (TeX Live) 3.1.5 to adapt to many kinds of systems.
+\`configure' configures mpfr (TeX Live) 3.1.6 to adapt to many kinds of systems.
 
 Usage: $0 [OPTION]... [VAR=VALUE]...
 
@@ -1365,7 +1365,7 @@
 
 if test -n "$ac_init_help"; then
   case $ac_init_help in
-     short | recursive ) echo "Configuration of mpfr (TeX Live) 3.1.5:";;
+     short | recursive ) echo "Configuration of mpfr (TeX Live) 3.1.6:";;
    esac
   cat <<\_ACEOF
 
@@ -1469,7 +1469,7 @@
 test -n "$ac_init_help" && exit $ac_status
 if $ac_init_version; then
   cat <<\_ACEOF
-mpfr (TeX Live) configure 3.1.5
+mpfr (TeX Live) configure 3.1.6
 generated by GNU Autoconf 2.69
 
 Copyright (C) 2012 Free Software Foundation, Inc.
@@ -1938,7 +1938,7 @@
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
-It was created by mpfr (TeX Live) $as_me 3.1.5, which was
+It was created by mpfr (TeX Live) $as_me 3.1.6, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   $ $0 $@
@@ -3861,7 +3861,7 @@
 
 # Define the identity of the package.
  PACKAGE='mpfr--tex-live-'
- VERSION='3.1.5'
+ VERSION='3.1.6'
 
 
 cat >>confdefs.h <<_ACEOF
@@ -7607,7 +7607,7 @@
 # report actual input values of CONFIG_FILES etc. instead of their
 # values after options handling.
 ac_log="
-This file was extended by mpfr (TeX Live) $as_me 3.1.5, which was
+This file was extended by mpfr (TeX Live) $as_me 3.1.6, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   CONFIG_FILES    = $CONFIG_FILES
@@ -7677,7 +7677,7 @@
 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 ac_cs_version="\\
-mpfr (TeX Live) config.status 3.1.5
+mpfr (TeX Live) config.status 3.1.6
 configured by $0, generated by GNU Autoconf 2.69,
   with options \\"\$ac_cs_config\\"
 

Modified: trunk/Build/source/libs/mpfr/mpfr-src/BUGS
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/BUGS	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/BUGS	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,4 +1,4 @@
-Copyright 1999, 2001-2016 Free Software Foundation, Inc.
+Copyright 1999, 2001-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/ChangeLog
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/ChangeLog	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/ChangeLog	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,4 +1,1001 @@
 ------------------------------------------------------------------------
+r11719 | vlefevre | 2017-09-07 11:36:44 +0000 (Thu, 07 Sep 2017) | 1 line
+Changed paths:
+   M /branches/3.1/VERSION
+   M /branches/3.1/configure.ac
+   M /branches/3.1/doc/mpfr.texi
+   M /branches/3.1/src/mpfr.h
+   M /branches/3.1/src/version.c
+
+Updated version to 3.1.6.
+------------------------------------------------------------------------
+r11710 | vlefevre | 2017-09-05 15:17:22 +0000 (Tue, 05 Sep 2017) | 1 line
+Changed paths:
+   M /branches/3.1/doc/mpfr.texi
+
+[doc/mpfr.texi] Updated the month.
+------------------------------------------------------------------------
+r11709 | vlefevre | 2017-09-05 12:59:09 +0000 (Tue, 05 Sep 2017) | 2 lines
+Changed paths:
+   M /branches/3.1/VERSION
+   M /branches/3.1/configure.ac
+   M /branches/3.1/doc/mpfr.texi
+   M /branches/3.1/src/mpfr.h
+   M /branches/3.1/src/version.c
+
+Updated version to 3.1.6-rc2 (at least for the developers, so that
+intermediate versions with new changes cannot be confused with rc1).
+------------------------------------------------------------------------
+r11708 | vlefevre | 2017-09-05 12:55:34 +0000 (Tue, 05 Sep 2017) | 4 lines
+Changed paths:
+   M /branches/3.1
+   M /branches/3.1/tests/tsprintf.c
+
+[tests/tsprintf.c] With MPFR_CHECK_LIBC_PRINTF, disable the test of
+the "'" flag with a non-glibc C library (SUS extension in printf).
+In particular, it is not supported by AIX 7.2.
+(merged changesets r11704,11706 from the trunk)
+------------------------------------------------------------------------
+r11707 | vlefevre | 2017-09-05 12:54:34 +0000 (Tue, 05 Sep 2017) | 5 lines
+Changed paths:
+   M /branches/3.1
+   M /branches/3.1/src
+   M /branches/3.1/src/mpfr-impl.h
+
+[src/mpfr-impl.h] In case decimal_point and/or thousands_sep are
+non-single-byte characters (as found on FreeBSD 11 in fr_FR.UTF-8),
+revert to the default value. Added a FIXME to support multibyte
+decimal_point and thousands_sep.
+(merged changeset r11705 from the trunk)
+------------------------------------------------------------------------
+r11703 | vlefevre | 2017-09-05 11:40:33 +0000 (Tue, 05 Sep 2017) | 10 lines
+Changed paths:
+   M /branches/3.1
+   M /branches/3.1/tests/Makefile.am
+   M /branches/3.1/tests/tfprintf.c
+   M /branches/3.1/tests/tout_str.c
+   M /branches/3.1/tests/toutimpl.c
+   M /branches/3.1/tests/tprintf.c
+
+[tests]
+  * tfprintf.c, tout_str.c, tprintf.c: Do not use the same filename
+    for result files created in these test programs, as this may break
+    parallel tests.
+  * toutimpl.c: Changed the filename of the result file like what
+    has been done in other test programs, to make sure that it will
+    not be reused by mistake. Removed comments about tmpname (which
+    does not exist).
+  * Makefile.am: added a CLEANFILES line with these files.
+(merged changesets r11698-11699 from the trunk)
+------------------------------------------------------------------------
+r11694 | vlefevre | 2017-09-01 15:17:43 +0000 (Fri, 01 Sep 2017) | 1 line
+Changed paths:
+   M /branches/3.1/tests/turandom.c
+
+[tests/turandom.c] Correction for 16-bit int.
+------------------------------------------------------------------------
+r11693 | zimmerma | 2017-08-30 06:57:37 +0000 (Wed, 30 Aug 2017) | 2 lines
+Changed paths:
+   M /branches/3.1/tests/turandom.c
+
+[tests/turandom.c] print got/expected probabilities in test_underflow()
+
+------------------------------------------------------------------------
+r11692 | zimmerma | 2017-08-29 12:58:37 +0000 (Tue, 29 Aug 2017) | 2 lines
+Changed paths:
+   M /branches/3.1/tests/turandom.c
+
+[tests/turandom.c] forgot exp=1 case
+
+------------------------------------------------------------------------
+r11691 | zimmerma | 2017-08-29 12:52:50 +0000 (Tue, 29 Aug 2017) | 2 lines
+Changed paths:
+   M /branches/3.1/tests/turandom.c
+
+added test_underflow()
+
+------------------------------------------------------------------------
+r11689 | vlefevre | 2017-08-29 12:17:13 +0000 (Tue, 29 Aug 2017) | 1 line
+Changed paths:
+   M /branches/3.1/src/urandom.c
+
+[src/urandom.c] Clarified a comment about a subtle case.
+------------------------------------------------------------------------
+r11687 | vlefevre | 2017-08-28 20:58:45 +0000 (Mon, 28 Aug 2017) | 3 lines
+Changed paths:
+   M /branches/3.1/configure.ac
+
+[configure.ac] In "configure --help" output for --enable-decimal-float,
+mention that this option requires --with-gmp-build (this is for the 3.1
+branch only).
+------------------------------------------------------------------------
+r11682 | vlefevre | 2017-08-28 11:25:28 +0000 (Mon, 28 Aug 2017) | 1 line
+Changed paths:
+   M /branches/3.1/ChangeLog
+
+ChangeLog update with "TZ=UTC svn log -rHEAD:0 -v" (in UTF-8 locales).
+------------------------------------------------------------------------
+r11681 | vlefevre | 2017-08-28 11:23:02 +0000 (Mon, 28 Aug 2017) | 2 lines
+Changed paths:
+   M /branches/3.1/VERSION
+   M /branches/3.1/configure.ac
+   M /branches/3.1/doc/mpfr.texi
+   M /branches/3.1/src/Makefile.am
+   M /branches/3.1/src/mpfr.h
+   M /branches/3.1/src/version.c
+
+Updated version to 3.1.6-rc1 and updated libmpfr_la_LDFLAGS in
+src/Makefile.am for the next release.
+------------------------------------------------------------------------
+r11672 | vlefevre | 2017-08-28 00:51:57 +0000 (Mon, 28 Aug 2017) | 5 lines
+Changed paths:
+   M /branches/3.1/tests/tests.c
+   M /branches/3.1/tests/turandom.c
+
+Corrections for use with --with-gmp-build.
+  * tests/tests.c: use __gmp_rands instead of mpfr_rands
+    (which was introduced by r11666).
+  * tests/turandom.c: use RANDS instead of mpfr_rands
+    (which was introduced by r11649).
+------------------------------------------------------------------------
+r11670 | vlefevre | 2017-08-27 22:09:01 +0000 (Sun, 27 Aug 2017) | 3 lines
+Changed paths:
+   M /branches/3.1
+   M /branches/3.1/tests/turandom.c
+
+[tests/turandom.c] Disabled the reprod_abi test with GMP < 4.2.0
+since the hardcoded values would be different.
+(merged changeset r11669 from the trunk)
+------------------------------------------------------------------------
+r11668 | vlefevre | 2017-08-27 21:07:18 +0000 (Sun, 27 Aug 2017) | 4 lines
+Changed paths:
+   M /branches/3.1
+   M /branches/3.1/tests/turandom.c
+
+[tests/turandom.c] Check that the behavior does not depend on the
+platform ABI or MPFR version.
+(merged changeset r11663 from the trunk, and updated the hardcoded
+values for this 3.1 branch)
+------------------------------------------------------------------------
+r11667 | vlefevre | 2017-08-27 20:54:16 +0000 (Sun, 27 Aug 2017) | 3 lines
+Changed paths:
+   M /branches/3.1
+   M /branches/3.1/tests/turandom.c
+
+[tests/turandom.c] In bug20170123, use a local gmp_randstate_t variable
+instead of mpfr_rands, due to the gmp_randseed_ui.
+(merged changeset r11654 from the trunk)
+------------------------------------------------------------------------
+r11666 | vlefevre | 2017-08-27 20:52:18 +0000 (Sun, 27 Aug 2017) | 4 lines
+Changed paths:
+   M /branches/3.1
+   M /branches/3.1/src/mpfr-gmp.h
+   M /branches/3.1/tests/tests.c
+
+[src/mpfr-gmp.h,tests/tests.c] Got rid of __gmp_randstate_struct, which
+is internal to GMP: its use came from very old code (r2330 in 2003-06)
+and it is no longer needed.
+(marked changeset r11652 as merged from the trunk)
+------------------------------------------------------------------------
+r11665 | vlefevre | 2017-08-27 20:36:53 +0000 (Sun, 27 Aug 2017) | 4 lines
+Changed paths:
+   M /branches/3.1
+   M /branches/3.1/tests/turandom.c
+
+[tests/turandom.c] Disabled a test with GMP < 4.2.0 since it depends on
+a specific behavior of the random generator, which changed in GMP 4.2.0
+(the test would probably fail with such old GMP versions).
+(applied a part of r8787 and merged changeset r11651 from the trunk)
+------------------------------------------------------------------------
+r11649 | vlefevre | 2017-08-22 13:17:15 +0000 (Tue, 22 Aug 2017) | 16 lines
+Changed paths:
+   M /branches/3.1
+   M /branches/3.1/doc/mpfr.texi
+   M /branches/3.1/src
+   M /branches/3.1/src/urandom.c
+   M /branches/3.1/tests/turandom.c
+
+[src/urandom.c] Generate the exception flags for mpfr_urandom almost as
+  expected:
+    * Set the underflow flag if the drawn exponent is less than emin.
+      This corresponds to "underflow before rounding" while the normal
+      rule in MPFR is "underflow after rounding". This is not fixable
+      in the 3.1 branch since the significand is not drawn in this
+      case, and drawing the significand to determine whether there is
+      an underflow would change the state of the PRNG at the end of
+      the function, breaking the ABI and the users' expectations.
+    * Set the inexact flag on underflow (this was not done before).
+[tests/turandom.c] Added underflow and overflow tests.
+[doc/mpfr.texi] Documented the above issue with the underflow flag for
+  mpfr_urandom.
+(merged changesets r11220,11635,11637-11641,11643-11647 from the trunk;
+instead of merging the conflicting r11636, did all the changes manually;
+replaced mpfr_flags_t by unsigned int)
+------------------------------------------------------------------------
+r11648 | vlefevre | 2017-08-22 11:57:20 +0000 (Tue, 22 Aug 2017) | 4 lines
+Changed paths:
+   M /branches/3.1
+   M /branches/3.1/src
+   M /branches/3.1/src/urandom.c
+   M /branches/3.1/tests/turandom.c
+
+[src/urandom.c] Fixed bug reported by Trevor Spiteri:
+  <https://sympa.inria.fr/sympa/arc/mpfr/2017-01/msg00020.html>
+[tests/turandom.c] Added non-regression test.
+(merged changesets r11218-11219,11221 from the trunk)
+------------------------------------------------------------------------
+r11633 | vlefevre | 2017-08-21 12:31:22 +0000 (Mon, 21 Aug 2017) | 2 lines
+Changed paths:
+   M /branches/3.1/doc/mpfr.texi
+
+[doc/mpfr.texi] Slightly changed the paragraph about memory allocation
+by MPFR (after a discussion with PZ).
+------------------------------------------------------------------------
+r11632 | vlefevre | 2017-08-21 09:49:52 +0000 (Mon, 21 Aug 2017) | 2 lines
+Changed paths:
+   M /branches/3.1/doc/mpfr.texi
+
+[doc/mpfr.texi] Update about the memory allocation (added references
+to Section "Memory Handling").
+------------------------------------------------------------------------
+r11631 | vlefevre | 2017-08-21 09:40:40 +0000 (Mon, 21 Aug 2017) | 1 line
+Changed paths:
+   M /branches/3.1/doc/mpfr.texi
+
+[doc/mpfr.texi] Added a paragraph about memory allocation by MPFR.
+------------------------------------------------------------------------
+r11618 | vlefevre | 2017-08-03 08:16:53 +0000 (Thu, 03 Aug 2017) | 1 line
+Changed paths:
+   M /branches/3.1/doc/mpfr.texi
+
+[doc/mpfr.texi] Updated the month.
+------------------------------------------------------------------------
+r11616 | vlefevre | 2017-08-03 08:12:50 +0000 (Thu, 03 Aug 2017) | 3 lines
+Changed paths:
+   M /branches/3.1
+   M /branches/3.1/doc/mpfr.texi
+
+[doc/mpfr.texi] Updated paragraph on the MPFR formatted output functions
+and overflow on the return type int. Removed obsolete comments.
+(merged changesets r11403,11614-11615 from the trunk)
+------------------------------------------------------------------------
+r11613 | vlefevre | 2017-08-02 11:21:33 +0000 (Wed, 02 Aug 2017) | 1 line
+Changed paths:
+   M /branches/3.1/NEWS
+
+[NEWS] Update for GNU MPFR 3.1.6.
+------------------------------------------------------------------------
+r11606 | vlefevre | 2017-08-01 09:48:11 +0000 (Tue, 01 Aug 2017) | 4 lines
+Changed paths:
+   M /branches/3.1/tests/mpf_compat.h
+
+[tests/mpf_compat.h] Include "mpfr-test.h" instead of "mpfr-impl.h",
+in order to avoid a link failure under MS Windows with DLL. See:
+  https://sympa.inria.fr/sympa/arc/mpfr/2017-07/msg00012.html
+  https://sympa.inria.fr/sympa/arc/mpfr/2017-07/msg00017.html
+------------------------------------------------------------------------
+r11605 | vlefevre | 2017-08-01 09:44:46 +0000 (Tue, 01 Aug 2017) | 4 lines
+Changed paths:
+   M /branches/3.1/tools/mpfrlint
+
+[tools/mpfrlint] Detect "mpfr-impl.h" inclusion by the test programs:
+"mpfr-test.h" should be included instead; otherwise __MPFR_WITHIN_MPFR
+will be defined, yielding failures under MS Windows with DLL.
+(Similar to r11603 in the trunk.)
+------------------------------------------------------------------------
+r11591 | vlefevre | 2017-07-17 23:25:27 +0000 (Mon, 17 Jul 2017) | 4 lines
+Changed paths:
+   M /branches/3.1
+   M /branches/3.1/src
+   M /branches/3.1/src/sin_cos.c
+
+[src/sin_cos.c] Avoid integer overflows with precision 1100000 and
+the 32-bit ABI (32-bit long), fixing bug reported by Simon Byrne:
+https://sympa.inria.fr/sympa/arc/mpfr/2017-07/msg00002.html
+(merged changeset r11590 from the trunk)
+------------------------------------------------------------------------
+r11587 | vlefevre | 2017-07-17 12:30:40 +0000 (Mon, 17 Jul 2017) | 4 lines
+Changed paths:
+   M /branches/3.1/configure.ac
+
+[configure.ac] Under Linux, make sure that the old dtags are used
+if LD_LIBRARY_PATH is defined, avoiding the following issue:
+  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=859732
+  http://lists.gnu.org/archive/html/libtool/2017-05/msg00000.html
+------------------------------------------------------------------------
+r11580 | vlefevre | 2017-06-05 17:06:13 +0000 (Mon, 05 Jun 2017) | 4 lines
+Changed paths:
+   M /branches/3.1
+   M /branches/3.1/src
+   M /branches/3.1/src/mpfr-impl.h
+
+[src/mpfr-impl.h] Fixed the mpfr_get_default_rounding_mode() macro for
+C++ (it didn't have the correct type), and improved the similar ones.
+(merged changeset r8997 from the trunk; needed by r11579 when using a
+C++ compiler)
+------------------------------------------------------------------------
+r11579 | vlefevre | 2017-06-05 16:50:17 +0000 (Mon, 05 Jun 2017) | 4 lines
+Changed paths:
+   M /branches/3.1
+   M /branches/3.1/src
+   M /branches/3.1/src/mpf2mpfr.h
+   M /branches/3.1/tests/mpf_compat.h
+
+[src/mpf2mpfr.h] Fixed mpf_fits_s* and mpf_get_si macros.
+[tests/mpf_compat.h] Added non-regression tests.
+(merged changesets r11565,11571 from the trunk, and did some changes
+in the inclusions of header files due to the use of MPFR_ASSERTN)
+------------------------------------------------------------------------
+r11541 | vlefevre | 2017-05-29 06:50:59 +0000 (Mon, 29 May 2017) | 3 lines
+Changed paths:
+   M /branches/3.1
+   M /branches/3.1/src
+   M /branches/3.1/src/vasprintf.c
+
+[src/vasprintf.c] In a macro definition, changed a parameter to
+lowercase so that it doesn't look like a constant to mpfrlint.
+(merged changeset r11521 from the trunk, completing r11538)
+------------------------------------------------------------------------
+r11540 | vlefevre | 2017-05-28 22:12:53 +0000 (Sun, 28 May 2017) | 7 lines
+Changed paths:
+   M /branches/3.1
+   M /branches/3.1/tests/tsprintf.c
+
+[tests/tsprintf.c] Fixed setlocale usage (problem detected with MinGW
+in the trunk) by not using the returned string any longer. Indeed,
+ISO C99 says that this string "may be overwritten by a subsequent call
+to the setlocale function". The tests in the 3.1 branch are different,
+so that this problem was not detected here on the tested platforms,
+including MinGW.
+(merged changeset r11533 from the trunk)
+------------------------------------------------------------------------
+r11539 | vlefevre | 2017-05-28 21:58:53 +0000 (Sun, 28 May 2017) | 7 lines
+Changed paths:
+   M /branches/3.1
+   M /branches/3.1/src
+   M /branches/3.1/src/printf.c
+   M /branches/3.1/src/vasprintf.c
+   M /branches/3.1/tests/tprintf.c
+
+[src] Moved "#include <errno.h>" from printf.c to vasprintf.c (this
+  should have been done in r5230, where EOVERFLOW was moved).
+(merged changeset r11532 from the trunk)
+[tests/tprintf.c] Added errno test for check_long_string(), which is
+  called when MPFR_CHECK_LARGEMEM is defined, to trigger the above
+  bug. A merge from the trunk was not possible due to many changes
+  in the mpfr_*printf code and the tests.
+------------------------------------------------------------------------
+r11538 | vlefevre | 2017-05-28 21:19:11 +0000 (Sun, 28 May 2017) | 13 lines
+Changed paths:
+   M /branches/3.1
+   M /branches/3.1/src
+   M /branches/3.1/src/vasprintf.c
+
+[src/vasprintf.c] Fixed overflow checking in partition_number().
+In details:
+  * The computation of the number of characters to be written could
+    be incorrect by 1 when the thousands separator was not empty.
+    However, in the 3.1 branch (without additional patches), this
+    value is currently only used for overflow checking, so that this
+    bug could have only very little effect (contrary to the trunk).
+  * When the int and long types have the same size, the code assumed
+    "wrapping behavior in two's complement". But this is actually
+    undefined behavior in ISO C; in practice, a smart compiler may
+    have ignored "total < 0" tests, because total is computed with
+    sums of non-negative integers.
+(merged changesets r11513,11515-11516 from the trunk)
+------------------------------------------------------------------------
+r11537 | vlefevre | 2017-05-28 20:55:53 +0000 (Sun, 28 May 2017) | 6 lines
+Changed paths:
+   M /branches/3.1
+   M /branches/3.1/tests/tl2b.c
+   M /branches/3.1/tests/tpow_all.c
+
+[tests] Increase buffer sizes to avoid a build failure with GCC 7
+under some conditions due to the following bug:
+  https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79257
+This increase is not a problem for the tests, where optimal code
+is useless.
+(merged changesets r11469,11470 from the trunk)
+------------------------------------------------------------------------
+r11536 | vlefevre | 2017-05-28 20:44:27 +0000 (Sun, 28 May 2017) | 10 lines
+Changed paths:
+   M /branches/3.1
+   M /branches/3.1/src
+   M /branches/3.1/src/mpfr-impl.h
+
+[src/mpfr-impl.h] In the MPFR_RET macro, avoid the use of an integer
+in a boolean context (even though that this is not wrong in C). Fix
+after a bug report from David Binderman. Explanations:
+  https://sympa.inria.fr/sympa/arc/mpfr/2016-09/msg00028.html
+(merged changeset r10879 from the trunk)
+
+NOTE. This change has been merged in the 3.1 branch because it is
+needed to be able to build MPFR with -Wall -Werror as of GCC 7,
+due to the new -Wint-in-bool-context option enabled by -Wall:
+  https://gcc.gnu.org/gcc-7/changes.html
+------------------------------------------------------------------------
+r11432 | vlefevre | 2017-04-07 15:03:37 +0000 (Fri, 07 Apr 2017) | 1 line
+Changed paths:
+   M /branches/3.1/doc/mpfr.texi
+
+[doc/mpfr.texi] Updated the month.
+------------------------------------------------------------------------
+r11431 | vlefevre | 2017-04-07 15:02:16 +0000 (Fri, 07 Apr 2017) | 5 lines
+Changed paths:
+   M /branches/3.1
+   M /branches/3.1/doc/mpfr.texi
+
+[doc/mpfr.texi]
+  * Clarified mpfr_asprintf & mpfr_vasprintf specification in case
+    of error.
+  * Corrected an English error.
+(merged changesets r11264,11430 from the trunk)
+------------------------------------------------------------------------
+r11345 | vlefevre | 2017-02-26 02:06:02 +0000 (Sun, 26 Feb 2017) | 1 line
+Changed paths:
+   M /branches/3.1/doc/mpfr.texi
+
+[doc/mpfr.texi] Updated the month.
+------------------------------------------------------------------------
+r11344 | vlefevre | 2017-02-26 02:05:19 +0000 (Sun, 26 Feb 2017) | 2 lines
+Changed paths:
+   M /branches/3.1
+   M /branches/3.1/doc/mpfr.texi
+
+[doc/mpfr.texi] Completed mpfr_root description: the 0th root gives NaN.
+(merged changesets r9929,9933 from the trunk)
+------------------------------------------------------------------------
+r11329 | vlefevre | 2017-02-21 10:20:45 +0000 (Tue, 21 Feb 2017) | 1 line
+Changed paths:
+   M /branches/3.1/src/sum.c
+
+[src/sum.c] Added a note about the "const" position in the prototypes.
+------------------------------------------------------------------------
+r11120 | vlefevre | 2017-01-01 01:39:54 +0000 (Sun, 01 Jan 2017) | 1 line
+Changed paths:
+   M /branches/3.1/doc/mpfr.texi
+
+[doc/mpfr.texi] Updated the month.
+------------------------------------------------------------------------
+r11119 | vlefevre | 2017-01-01 01:39:09 +0000 (Sun, 01 Jan 2017) | 5 lines
+Changed paths:
+   M /branches/3.1/BUGS
+   M /branches/3.1/INSTALL
+   M /branches/3.1/Makefile.am
+   M /branches/3.1/NEWS
+   M /branches/3.1/README
+   M /branches/3.1/TODO
+   M /branches/3.1/acinclude.m4
+   M /branches/3.1/configure.ac
+   M /branches/3.1/doc/FAQ.html
+   M /branches/3.1/doc/Makefile.am
+   M /branches/3.1/doc/README.dev
+   M /branches/3.1/doc/faq.xsl
+   M /branches/3.1/doc/mpfr.texi
+   M /branches/3.1/examples/divworst.c
+   M /branches/3.1/examples/rndo-add.c
+   M /branches/3.1/examples/sample.c
+   M /branches/3.1/examples/version.c
+   M /branches/3.1/src/Makefile.am
+   M /branches/3.1/src/abort_prec_max.c
+   M /branches/3.1/src/acos.c
+   M /branches/3.1/src/acosh.c
+   M /branches/3.1/src/add.c
+   M /branches/3.1/src/add1.c
+   M /branches/3.1/src/add1sp.c
+   M /branches/3.1/src/add_d.c
+   M /branches/3.1/src/add_ui.c
+   M /branches/3.1/src/agm.c
+   M /branches/3.1/src/ai.c
+   M /branches/3.1/src/amd/amdfam10/mparam.h
+   M /branches/3.1/src/amd/athlon/mparam.h
+   M /branches/3.1/src/amd/k8/mparam.h
+   M /branches/3.1/src/arm/mparam.h
+   M /branches/3.1/src/asin.c
+   M /branches/3.1/src/asinh.c
+   M /branches/3.1/src/atan.c
+   M /branches/3.1/src/atan2.c
+   M /branches/3.1/src/atanh.c
+   M /branches/3.1/src/bernoulli.c
+   M /branches/3.1/src/buildopt.c
+   M /branches/3.1/src/cache.c
+   M /branches/3.1/src/cbrt.c
+   M /branches/3.1/src/check.c
+   M /branches/3.1/src/clear.c
+   M /branches/3.1/src/clears.c
+   M /branches/3.1/src/cmp.c
+   M /branches/3.1/src/cmp2.c
+   M /branches/3.1/src/cmp_abs.c
+   M /branches/3.1/src/cmp_d.c
+   M /branches/3.1/src/cmp_ld.c
+   M /branches/3.1/src/cmp_si.c
+   M /branches/3.1/src/cmp_ui.c
+   M /branches/3.1/src/comparisons.c
+   M /branches/3.1/src/const_catalan.c
+   M /branches/3.1/src/const_euler.c
+   M /branches/3.1/src/const_log2.c
+   M /branches/3.1/src/const_pi.c
+   M /branches/3.1/src/constant.c
+   M /branches/3.1/src/copysign.c
+   M /branches/3.1/src/cos.c
+   M /branches/3.1/src/cosh.c
+   M /branches/3.1/src/cot.c
+   M /branches/3.1/src/coth.c
+   M /branches/3.1/src/csc.c
+   M /branches/3.1/src/csch.c
+   M /branches/3.1/src/d_div.c
+   M /branches/3.1/src/d_sub.c
+   M /branches/3.1/src/digamma.c
+   M /branches/3.1/src/dim.c
+   M /branches/3.1/src/div.c
+   M /branches/3.1/src/div_2exp.c
+   M /branches/3.1/src/div_2si.c
+   M /branches/3.1/src/div_2ui.c
+   M /branches/3.1/src/div_d.c
+   M /branches/3.1/src/div_ui.c
+   M /branches/3.1/src/dump.c
+   M /branches/3.1/src/eint.c
+   M /branches/3.1/src/eq.c
+   M /branches/3.1/src/erf.c
+   M /branches/3.1/src/erfc.c
+   M /branches/3.1/src/exceptions.c
+   M /branches/3.1/src/exp.c
+   M /branches/3.1/src/exp10.c
+   M /branches/3.1/src/exp2.c
+   M /branches/3.1/src/exp3.c
+   M /branches/3.1/src/exp_2.c
+   M /branches/3.1/src/expm1.c
+   M /branches/3.1/src/extract.c
+   M /branches/3.1/src/factorial.c
+   M /branches/3.1/src/fits_intmax.c
+   M /branches/3.1/src/fits_s.h
+   M /branches/3.1/src/fits_sint.c
+   M /branches/3.1/src/fits_slong.c
+   M /branches/3.1/src/fits_sshort.c
+   M /branches/3.1/src/fits_u.h
+   M /branches/3.1/src/fits_uint.c
+   M /branches/3.1/src/fits_uintmax.c
+   M /branches/3.1/src/fits_ulong.c
+   M /branches/3.1/src/fits_ushort.c
+   M /branches/3.1/src/fma.c
+   M /branches/3.1/src/fms.c
+   M /branches/3.1/src/frac.c
+   M /branches/3.1/src/free_cache.c
+   M /branches/3.1/src/frexp.c
+   M /branches/3.1/src/gamma.c
+   M /branches/3.1/src/gammaonethird.c
+   M /branches/3.1/src/gen_inverse.h
+   M /branches/3.1/src/generic/mparam.h
+   M /branches/3.1/src/get_d.c
+   M /branches/3.1/src/get_d64.c
+   M /branches/3.1/src/get_exp.c
+   M /branches/3.1/src/get_f.c
+   M /branches/3.1/src/get_flt.c
+   M /branches/3.1/src/get_ld.c
+   M /branches/3.1/src/get_si.c
+   M /branches/3.1/src/get_sj.c
+   M /branches/3.1/src/get_str.c
+   M /branches/3.1/src/get_ui.c
+   M /branches/3.1/src/get_uj.c
+   M /branches/3.1/src/get_z.c
+   M /branches/3.1/src/get_z_exp.c
+   M /branches/3.1/src/gmp_op.c
+   M /branches/3.1/src/grandom.c
+   M /branches/3.1/src/hppa/mparam.h
+   M /branches/3.1/src/hypot.c
+   M /branches/3.1/src/ia64/mparam.h
+   M /branches/3.1/src/ieee_floats.h
+   M /branches/3.1/src/init.c
+   M /branches/3.1/src/init2.c
+   M /branches/3.1/src/inits.c
+   M /branches/3.1/src/inits2.c
+   M /branches/3.1/src/inp_str.c
+   M /branches/3.1/src/int_ceil_log2.c
+   M /branches/3.1/src/isinf.c
+   M /branches/3.1/src/isinteger.c
+   M /branches/3.1/src/isnan.c
+   M /branches/3.1/src/isnum.c
+   M /branches/3.1/src/isqrt.c
+   M /branches/3.1/src/isregular.c
+   M /branches/3.1/src/iszero.c
+   M /branches/3.1/src/jn.c
+   M /branches/3.1/src/jyn_asympt.c
+   M /branches/3.1/src/li2.c
+   M /branches/3.1/src/lngamma.c
+   M /branches/3.1/src/log.c
+   M /branches/3.1/src/log10.c
+   M /branches/3.1/src/log1p.c
+   M /branches/3.1/src/log2.c
+   M /branches/3.1/src/logging.c
+   M /branches/3.1/src/min_prec.c
+   M /branches/3.1/src/minmax.c
+   M /branches/3.1/src/modf.c
+   M /branches/3.1/src/mp_clz_tab.c
+   M /branches/3.1/src/mparam_h.in
+   M /branches/3.1/src/mpf2mpfr.h
+   M /branches/3.1/src/mpfr-gmp.c
+   M /branches/3.1/src/mpfr-gmp.h
+   M /branches/3.1/src/mpfr-impl.h
+   M /branches/3.1/src/mpfr-intmax.h
+   M /branches/3.1/src/mpfr-longlong.h
+   M /branches/3.1/src/mpfr-thread.h
+   M /branches/3.1/src/mpfr.h
+   M /branches/3.1/src/mpn_exp.c
+   M /branches/3.1/src/mul.c
+   M /branches/3.1/src/mul_2exp.c
+   M /branches/3.1/src/mul_2si.c
+   M /branches/3.1/src/mul_2ui.c
+   M /branches/3.1/src/mul_d.c
+   M /branches/3.1/src/mul_ui.c
+   M /branches/3.1/src/mulders.c
+   M /branches/3.1/src/neg.c
+   M /branches/3.1/src/next.c
+   M /branches/3.1/src/out_raw.c
+   M /branches/3.1/src/out_str.c
+   M /branches/3.1/src/pow.c
+   M /branches/3.1/src/pow_si.c
+   M /branches/3.1/src/pow_ui.c
+   M /branches/3.1/src/pow_z.c
+   M /branches/3.1/src/powerof2.c
+   M /branches/3.1/src/powerpc32/mparam.h
+   M /branches/3.1/src/powerpc64/mparam.h
+   M /branches/3.1/src/print_raw.c
+   M /branches/3.1/src/print_rnd_mode.c
+   M /branches/3.1/src/printf.c
+   M /branches/3.1/src/rec_sqrt.c
+   M /branches/3.1/src/reldiff.c
+   M /branches/3.1/src/rem1.c
+   M /branches/3.1/src/rint.c
+   M /branches/3.1/src/root.c
+   M /branches/3.1/src/round_near_x.c
+   M /branches/3.1/src/round_p.c
+   M /branches/3.1/src/round_prec.c
+   M /branches/3.1/src/round_raw_generic.c
+   M /branches/3.1/src/scale2.c
+   M /branches/3.1/src/sec.c
+   M /branches/3.1/src/sech.c
+   M /branches/3.1/src/set.c
+   M /branches/3.1/src/set_d.c
+   M /branches/3.1/src/set_d64.c
+   M /branches/3.1/src/set_dfl_prec.c
+   M /branches/3.1/src/set_exp.c
+   M /branches/3.1/src/set_f.c
+   M /branches/3.1/src/set_flt.c
+   M /branches/3.1/src/set_inf.c
+   M /branches/3.1/src/set_ld.c
+   M /branches/3.1/src/set_nan.c
+   M /branches/3.1/src/set_prc_raw.c
+   M /branches/3.1/src/set_prec.c
+   M /branches/3.1/src/set_q.c
+   M /branches/3.1/src/set_rnd.c
+   M /branches/3.1/src/set_si.c
+   M /branches/3.1/src/set_si_2exp.c
+   M /branches/3.1/src/set_sj.c
+   M /branches/3.1/src/set_str.c
+   M /branches/3.1/src/set_str_raw.c
+   M /branches/3.1/src/set_ui.c
+   M /branches/3.1/src/set_ui_2exp.c
+   M /branches/3.1/src/set_uj.c
+   M /branches/3.1/src/set_z.c
+   M /branches/3.1/src/set_z_exp.c
+   M /branches/3.1/src/set_zero.c
+   M /branches/3.1/src/setmax.c
+   M /branches/3.1/src/setmin.c
+   M /branches/3.1/src/setsign.c
+   M /branches/3.1/src/sgn.c
+   M /branches/3.1/src/si_op.c
+   M /branches/3.1/src/signbit.c
+   M /branches/3.1/src/sin.c
+   M /branches/3.1/src/sin_cos.c
+   M /branches/3.1/src/sinh.c
+   M /branches/3.1/src/sinh_cosh.c
+   M /branches/3.1/src/sparc64/mparam.h
+   M /branches/3.1/src/sqr.c
+   M /branches/3.1/src/sqrt.c
+   M /branches/3.1/src/sqrt_ui.c
+   M /branches/3.1/src/stack_interface.c
+   M /branches/3.1/src/strtofr.c
+   M /branches/3.1/src/sub.c
+   M /branches/3.1/src/sub1.c
+   M /branches/3.1/src/sub1sp.c
+   M /branches/3.1/src/sub_d.c
+   M /branches/3.1/src/sub_ui.c
+   M /branches/3.1/src/subnormal.c
+   M /branches/3.1/src/sum.c
+   M /branches/3.1/src/swap.c
+   M /branches/3.1/src/tan.c
+   M /branches/3.1/src/tanh.c
+   M /branches/3.1/src/uceil_exp2.c
+   M /branches/3.1/src/uceil_log2.c
+   M /branches/3.1/src/ufloor_log2.c
+   M /branches/3.1/src/ui_div.c
+   M /branches/3.1/src/ui_pow.c
+   M /branches/3.1/src/ui_pow_ui.c
+   M /branches/3.1/src/ui_sub.c
+   M /branches/3.1/src/urandom.c
+   M /branches/3.1/src/urandomb.c
+   M /branches/3.1/src/vasprintf.c
+   M /branches/3.1/src/version.c
+   M /branches/3.1/src/volatile.c
+   M /branches/3.1/src/x86/core2/mparam.h
+   M /branches/3.1/src/x86/mparam.h
+   M /branches/3.1/src/x86_64/core2/mparam.h
+   M /branches/3.1/src/x86_64/pentium4/mparam.h
+   M /branches/3.1/src/yn.c
+   M /branches/3.1/src/zeta.c
+   M /branches/3.1/src/zeta_ui.c
+   M /branches/3.1/tests/Makefile.am
+   M /branches/3.1/tests/cmp_str.c
+   M /branches/3.1/tests/data/digamma
+   M /branches/3.1/tests/data/li2
+   M /branches/3.1/tests/memory.c
+   M /branches/3.1/tests/mpf_compat.c
+   M /branches/3.1/tests/mpf_compat.h
+   M /branches/3.1/tests/mpfr-test.h
+   M /branches/3.1/tests/mpfr_compat.c
+   M /branches/3.1/tests/random2.c
+   M /branches/3.1/tests/reuse.c
+   M /branches/3.1/tests/rnd_mode.c
+   M /branches/3.1/tests/tabs.c
+   M /branches/3.1/tests/tacos.c
+   M /branches/3.1/tests/tacosh.c
+   M /branches/3.1/tests/tadd.c
+   M /branches/3.1/tests/tadd1sp.c
+   M /branches/3.1/tests/tadd_d.c
+   M /branches/3.1/tests/tadd_ui.c
+   M /branches/3.1/tests/tagm.c
+   M /branches/3.1/tests/tai.c
+   M /branches/3.1/tests/tasin.c
+   M /branches/3.1/tests/tasinh.c
+   M /branches/3.1/tests/tatan.c
+   M /branches/3.1/tests/tatanh.c
+   M /branches/3.1/tests/taway.c
+   M /branches/3.1/tests/tbuildopt.c
+   M /branches/3.1/tests/tcan_round.c
+   M /branches/3.1/tests/tcbrt.c
+   M /branches/3.1/tests/tcheck.c
+   M /branches/3.1/tests/tcmp.c
+   M /branches/3.1/tests/tcmp2.c
+   M /branches/3.1/tests/tcmp_d.c
+   M /branches/3.1/tests/tcmp_ld.c
+   M /branches/3.1/tests/tcmp_ui.c
+   M /branches/3.1/tests/tcmpabs.c
+   M /branches/3.1/tests/tcomparisons.c
+   M /branches/3.1/tests/tconst_catalan.c
+   M /branches/3.1/tests/tconst_euler.c
+   M /branches/3.1/tests/tconst_log2.c
+   M /branches/3.1/tests/tconst_pi.c
+   M /branches/3.1/tests/tcopysign.c
+   M /branches/3.1/tests/tcos.c
+   M /branches/3.1/tests/tcosh.c
+   M /branches/3.1/tests/tcot.c
+   M /branches/3.1/tests/tcoth.c
+   M /branches/3.1/tests/tcsc.c
+   M /branches/3.1/tests/tcsch.c
+   M /branches/3.1/tests/td_div.c
+   M /branches/3.1/tests/td_sub.c
+   M /branches/3.1/tests/tdigamma.c
+   M /branches/3.1/tests/tdim.c
+   M /branches/3.1/tests/tdiv.c
+   M /branches/3.1/tests/tdiv_d.c
+   M /branches/3.1/tests/tdiv_ui.c
+   M /branches/3.1/tests/teint.c
+   M /branches/3.1/tests/teq.c
+   M /branches/3.1/tests/terf.c
+   M /branches/3.1/tests/tests.c
+   M /branches/3.1/tests/texceptions.c
+   M /branches/3.1/tests/texp.c
+   M /branches/3.1/tests/texp10.c
+   M /branches/3.1/tests/texp2.c
+   M /branches/3.1/tests/texpm1.c
+   M /branches/3.1/tests/tfactorial.c
+   M /branches/3.1/tests/tfits.c
+   M /branches/3.1/tests/tfma.c
+   M /branches/3.1/tests/tfmod.c
+   M /branches/3.1/tests/tfms.c
+   M /branches/3.1/tests/tfprintf.c
+   M /branches/3.1/tests/tfrac.c
+   M /branches/3.1/tests/tfrexp.c
+   M /branches/3.1/tests/tgamma.c
+   M /branches/3.1/tests/tgeneric.c
+   M /branches/3.1/tests/tgeneric_ui.c
+   M /branches/3.1/tests/tget_d.c
+   M /branches/3.1/tests/tget_d_2exp.c
+   M /branches/3.1/tests/tget_f.c
+   M /branches/3.1/tests/tget_flt.c
+   M /branches/3.1/tests/tget_ld_2exp.c
+   M /branches/3.1/tests/tget_set_d64.c
+   M /branches/3.1/tests/tget_sj.c
+   M /branches/3.1/tests/tget_str.c
+   M /branches/3.1/tests/tget_z.c
+   M /branches/3.1/tests/tgmpop.c
+   M /branches/3.1/tests/tgrandom.c
+   M /branches/3.1/tests/thyperbolic.c
+   M /branches/3.1/tests/thypot.c
+   M /branches/3.1/tests/tinits.c
+   M /branches/3.1/tests/tinp_str.c
+   M /branches/3.1/tests/tinternals.c
+   M /branches/3.1/tests/tisnan.c
+   M /branches/3.1/tests/tisqrt.c
+   M /branches/3.1/tests/tj0.c
+   M /branches/3.1/tests/tj1.c
+   M /branches/3.1/tests/tjn.c
+   M /branches/3.1/tests/tl2b.c
+   M /branches/3.1/tests/tlgamma.c
+   M /branches/3.1/tests/tli2.c
+   M /branches/3.1/tests/tlngamma.c
+   M /branches/3.1/tests/tlog.c
+   M /branches/3.1/tests/tlog10.c
+   M /branches/3.1/tests/tlog1p.c
+   M /branches/3.1/tests/tlog2.c
+   M /branches/3.1/tests/tmin_prec.c
+   M /branches/3.1/tests/tminmax.c
+   M /branches/3.1/tests/tmodf.c
+   M /branches/3.1/tests/tmul.c
+   M /branches/3.1/tests/tmul_2exp.c
+   M /branches/3.1/tests/tmul_d.c
+   M /branches/3.1/tests/tmul_ui.c
+   M /branches/3.1/tests/tnext.c
+   M /branches/3.1/tests/tout_str.c
+   M /branches/3.1/tests/toutimpl.c
+   M /branches/3.1/tests/tpow.c
+   M /branches/3.1/tests/tpow3.c
+   M /branches/3.1/tests/tpow_all.c
+   M /branches/3.1/tests/tpow_z.c
+   M /branches/3.1/tests/tprintf.c
+   M /branches/3.1/tests/trandom.c
+   M /branches/3.1/tests/trec_sqrt.c
+   M /branches/3.1/tests/tremquo.c
+   M /branches/3.1/tests/trint.c
+   M /branches/3.1/tests/troot.c
+   M /branches/3.1/tests/tround_prec.c
+   M /branches/3.1/tests/tsec.c
+   M /branches/3.1/tests/tsech.c
+   M /branches/3.1/tests/tset.c
+   M /branches/3.1/tests/tset_d.c
+   M /branches/3.1/tests/tset_exp.c
+   M /branches/3.1/tests/tset_f.c
+   M /branches/3.1/tests/tset_ld.c
+   M /branches/3.1/tests/tset_q.c
+   M /branches/3.1/tests/tset_si.c
+   M /branches/3.1/tests/tset_sj.c
+   M /branches/3.1/tests/tset_str.c
+   M /branches/3.1/tests/tset_z.c
+   M /branches/3.1/tests/tset_z_exp.c
+   M /branches/3.1/tests/tsgn.c
+   M /branches/3.1/tests/tsi_op.c
+   M /branches/3.1/tests/tsin.c
+   M /branches/3.1/tests/tsin_cos.c
+   M /branches/3.1/tests/tsinh.c
+   M /branches/3.1/tests/tsinh_cosh.c
+   M /branches/3.1/tests/tsprintf.c
+   M /branches/3.1/tests/tsqr.c
+   M /branches/3.1/tests/tsqrt.c
+   M /branches/3.1/tests/tsqrt_ui.c
+   M /branches/3.1/tests/tstckintc.c
+   M /branches/3.1/tests/tstdint.c
+   M /branches/3.1/tests/tstrtofr.c
+   M /branches/3.1/tests/tsub.c
+   M /branches/3.1/tests/tsub1sp.c
+   M /branches/3.1/tests/tsub_d.c
+   M /branches/3.1/tests/tsub_ui.c
+   M /branches/3.1/tests/tsubnormal.c
+   M /branches/3.1/tests/tsum.c
+   M /branches/3.1/tests/tswap.c
+   M /branches/3.1/tests/ttan.c
+   M /branches/3.1/tests/ttanh.c
+   M /branches/3.1/tests/ttrunc.c
+   M /branches/3.1/tests/tui_div.c
+   M /branches/3.1/tests/tui_pow.c
+   M /branches/3.1/tests/tui_sub.c
+   M /branches/3.1/tests/turandom.c
+   M /branches/3.1/tests/tvalist.c
+   M /branches/3.1/tests/tversion.c
+   M /branches/3.1/tests/ty0.c
+   M /branches/3.1/tests/ty1.c
+   M /branches/3.1/tests/tyn.c
+   M /branches/3.1/tests/tzeta.c
+   M /branches/3.1/tests/tzeta_ui.c
+   M /branches/3.1/tools/ck-copyright-notice
+   M /branches/3.1/tools/ck-mparam
+   M /branches/3.1/tools/ck-news
+   M /branches/3.1/tools/ck-version-info
+   M /branches/3.1/tools/get_patches.sh
+   M /branches/3.1/tune/Makefile.am
+   M /branches/3.1/tune/bidimensional_sample.c
+   M /branches/3.1/tune/speed.c
+   M /branches/3.1/tune/tuneup.c
+
+Copyright notice update: added 2017 with
+  perl -pi -e 's/ (\d{4}-)?(2016)(?= Free Software)/
+               " ".($1||"$2-").($2+1)/e' **/*(^/)
+under zsh (the m4 and tools/mbench directories were not modified).
+Removed 2016 from the example in the doc/README.dev file.
+------------------------------------------------------------------------
+r11069 | vlefevre | 2016-12-19 16:11:17 +0000 (Mon, 19 Dec 2016) | 5 lines
+Changed paths:
+   M /branches/3.1
+   M /branches/3.1/src
+   M /branches/3.1/src/strtofr.c
+   M /branches/3.1/tests/tstrtofr.c
+
+[src/strtofr.c] Fixed bug in mpfr_strtofr(): in round-to-nearest,
+  the ternary value could be incorrect.
+[tests/tstrtofr.c] Added test case.
+(merged changesets from the trunk: r11055, a part of r11056, and
+r11059,11066-11068)
+------------------------------------------------------------------------
+r11043 | vlefevre | 2016-12-15 07:45:45 +0000 (Thu, 15 Dec 2016) | 4 lines
+Changed paths:
+   M /branches/3.1
+   M /branches/3.1/src
+   M /branches/3.1/src/vasprintf.c
+   M /branches/3.1/tests/tsprintf.c
+
+[src/vasprintf.c] Fixed a bug: spec.prec can be a negative number other
+  than -1 (when such a value is given as an argument with ".*").
+[tests/tsprintf.c] Added non-regression test.
+(merged changesets r11037-11038 from the trunk)
+------------------------------------------------------------------------
+r10921 | vlefevre | 2016-10-25 06:59:05 +0000 (Tue, 25 Oct 2016) | 2 lines
+Changed paths:
+   M /branches/3.1
+   M /branches/3.1/src
+   M /branches/3.1/src/mpfr-impl.h
+
+[src/mpfr-impl.h] Fixed r10917 (thanks to Eli Zaretskii for the report).
+(merged changeset r10920 from the trunk)
+------------------------------------------------------------------------
+r10919 | vlefevre | 2016-10-24 13:31:44 +0000 (Mon, 24 Oct 2016) | 2 lines
+Changed paths:
+   M /branches/3.1
+   M /branches/3.1/src
+   M /branches/3.1/src/mpfr-impl.h
+
+[src/mpfr-impl.h] Improved a macro from r10917 (just in case...).
+(merged changeset r10918 from the trunk)
+------------------------------------------------------------------------
+r10917 | vlefevre | 2016-10-24 13:03:53 +0000 (Mon, 24 Oct 2016) | 9 lines
+Changed paths:
+   M /branches/3.1
+   M /branches/3.1/src
+   M /branches/3.1/src/const_catalan.c
+   M /branches/3.1/src/const_euler.c
+   M /branches/3.1/src/const_log2.c
+   M /branches/3.1/src/const_pi.c
+   M /branches/3.1/src/exceptions.c
+   M /branches/3.1/src/mpfr-impl.h
+   M /branches/3.1/src/set_dfl_prec.c
+   M /branches/3.1/src/set_rnd.c
+
+[src] Support build as thread-safe DLL on Windows: clean-up.
+  * Increased the use of macros to avoid some code duplication
+    (with risks of typos) and to prevent the problems related
+    to thread-safe DLL from appearing in the .c files.
+  * The prototypes of the functions to access the address of a
+    TLS variable are now defined. Otherwise one gets warnings:
+    https://sympa.inria.fr/sympa/arc/mpfr/2016-10/msg00004.html
+(merged changeset r10916 from the trunk, with conflict resolved
+by replacing mpfr_flags_t with unsigned int)
+------------------------------------------------------------------------
+r10896 | vlefevre | 2016-09-27 09:17:54 +0000 (Tue, 27 Sep 2016) | 1 line
+Changed paths:
+   M /branches/3.1/INSTALL
+   M /branches/3.1/VERSION
+   M /branches/3.1/configure.ac
+   M /branches/3.1/doc/mpfr.texi
+   M /branches/3.1/src/mpfr.h
+   M /branches/3.1/src/version.c
+
+Updated version to 3.1.6-dev.
+------------------------------------------------------------------------
+r10892 | vlefevre | 2016-09-27 07:51:01 +0000 (Tue, 27 Sep 2016) | 1 line
+Changed paths:
+   M /branches/3.1/ChangeLog
+
+ChangeLog update with "TZ=UTC svn log -rHEAD:0 -v" (in UTF-8 locales).
+------------------------------------------------------------------------
 r10891 | vlefevre | 2016-09-27 07:48:20 +0000 (Tue, 27 Sep 2016) | 1 line
 Changed paths:
    M /branches/3.1/VERSION
@@ -10747,7 +11744,7 @@
    M /trunk/src/mul.c
 
 [mul.c] fixed bug introduced in revision 7183, and reported by Brian Gladman
-	on Windows, where mpfr_exp_t has 32 bits and mpfr_limb_t has 64 bits
+	on Windows, where mpfr_exp_t has 32 bits and mp_limb_t has 64 bits
 
 ------------------------------------------------------------------------
 r7257 | vlefevre | 2010-11-09 14:24:34 +0000 (Tue, 09 Nov 2010) | 2 lines

Modified: trunk/Build/source/libs/mpfr/mpfr-src/INSTALL
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/INSTALL	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/INSTALL	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,4 +1,4 @@
-Copyright 1999-2016 Free Software Foundation, Inc.
+Copyright 1999-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.
@@ -37,17 +37,17 @@
    not been done yet and if patches are available. You can check
    on the release page:
 
-     http://www.mpfr.org/mpfr-3.1.5/
+     http://www.mpfr.org/mpfr-3.1.6/
 
    which may have additional information. The patches can be applied
    with commands like:
 
-     wget http://www.mpfr.org/mpfr-3.1.5/allpatches
+     wget http://www.mpfr.org/mpfr-3.1.6/allpatches
      patch -N -Z -p1 < allpatches
 
    or
 
-     curl http://www.mpfr.org/mpfr-3.1.5/allpatches | patch -N -Z -p1
+     curl http://www.mpfr.org/mpfr-3.1.6/allpatches | patch -N -Z -p1
 
    (Those instructions are for the GNU patch command, for example
    /usr/bin/gpatch on Solaris.)
@@ -338,7 +338,7 @@
   * the FAQ (either the FAQ.html file distributed with MPFR, or the
     on-line version <http://www.mpfr.org/faq.html>, which may be more
     up-to-date);
-  * the MPFR web page for this version <http://www.mpfr.org/mpfr-3.1.5/>,
+  * the MPFR web page for this version <http://www.mpfr.org/mpfr-3.1.6/>,
     which lists bugs found in this version and provides some patches.
 
 If the "configure" fails, please check that the C compiler and its

Modified: trunk/Build/source/libs/mpfr/mpfr-src/Makefile.am
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/Makefile.am	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/Makefile.am	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,4 +1,4 @@
-# Copyright 2000-2016 Free Software Foundation, Inc.
+# Copyright 2000-2017 Free Software Foundation, Inc.
 # This Makefile.am is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
 # with or without modifications, as long as this notice is preserved.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/NEWS
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/NEWS	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/NEWS	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,4 +1,4 @@
-Copyright 2000-2016 Free Software Foundation, Inc.
+Copyright 2000-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.
@@ -20,6 +20,14 @@
 
 ##############################################################################
 
+Changes from version 3.1.5 to version 3.1.6:
+- Improved MPFR manual.
+- Bug fixes (see <http://www.mpfr.org/mpfr-3.1.5/#fixed> and ChangeLog file).
+- 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".
+
 Changes from version 3.1.4 to version 3.1.5:
 - C++11 compatibility.
 - Bug fixes (see <http://www.mpfr.org/mpfr-3.1.4/#fixed> and ChangeLog file).

Modified: trunk/Build/source/libs/mpfr/mpfr-src/README
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/README	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/README	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,4 +1,4 @@
-Copyright 2000-2016 Free Software Foundation, Inc.
+Copyright 2000-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/TODO
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/TODO	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/TODO	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,4 +1,4 @@
-Copyright 1999-2016 Free Software Foundation, Inc.
+Copyright 1999-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/VERSION
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/VERSION	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/VERSION	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1 +1 @@
-3.1.5
+3.1.6

Modified: trunk/Build/source/libs/mpfr/mpfr-src/acinclude.m4
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/acinclude.m4	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/acinclude.m4	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 dnl  MPFR specific autoconf macros
 
-dnl  Copyright 2000, 2002-2016 Free Software Foundation, Inc.
+dnl  Copyright 2000, 2002-2017 Free Software Foundation, Inc.
 dnl  Contributed by the AriC and Caramba projects, INRIA.
 dnl
 dnl  This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/configure.ac
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/configure.ac	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/configure.ac	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,7 +1,7 @@
 dnl Process this file with autoconf to produce a configure script.
 
 AC_COPYRIGHT([
-Copyright 1999-2016 Free Software Foundation, Inc.
+Copyright 1999-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.
@@ -23,7 +23,7 @@
 ])
 
 dnl Add check-news when it checks for more than 15 lines
-AC_INIT([MPFR],[3.1.5])
+AC_INIT([MPFR],[3.1.6])
 
 dnl Older Automake versions than 1.13 may still be supported, but no longer
 dnl tested, and many things have changed in 1.13. Moreover the INSTALL file
@@ -263,7 +263,7 @@
 dnl is detected by the x != x test below.
 AC_ARG_ENABLE(decimal-float,
    [  --enable-decimal-float  build conversion functions from/to decimal floats
-                          [[default=no]]],
+                          (requires --with-gmp-build) [[default=no]]],
    [ case $enableval in
       yes) AC_DEFINE([MPFR_WANT_DECIMAL_FLOATS],1,
               [Build decimal float functions])
@@ -441,6 +441,36 @@
   ;;
 esac
 
+dnl Under Linux, make sure that the old dtags are used if LD_LIBRARY_PATH
+dnl is defined. The issue is that with the new dtags, LD_LIBRARY_PATH has
+dnl the precedence over the run path, so that if a compatible MPFR library
+dnl is installed in some directory from $LD_LIBRARY_PATH, then the tested
+dnl MPFR library will be this library instead of the MPFR library from the
+dnl build tree. Other OS with the same issue might be added later.
+dnl
+dnl References:
+dnl   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=859732
+dnl   http://lists.gnu.org/archive/html/libtool/2017-05/msg00000.html
+dnl
+dnl We need to check whether --disable-new-dtags is supported as alternate
+dnl linkers may be used (e.g., with tcc: CC=tcc LD=tcc).
+dnl
+case $host in
+  *-*-linux*)
+    if test -n "$LD_LIBRARY_PATH"; then
+      saved_LDFLAGS="$LDFLAGS"
+      LDFLAGS="$LDFLAGS -Wl,--disable-new-dtags"
+      AC_MSG_CHECKING(whether --disable-new-dtags is supported by the linker)
+      AC_LINK_IFELSE([AC_LANG_SOURCE([[
+int main (void) { return 0; }
+      ]])],
+      [AC_MSG_RESULT(yes (use it since LD_LIBRARY_PATH is set))],
+      [AC_MSG_RESULT(no)
+       LDFLAGS="$saved_LDFLAGS"
+      ])
+    fi
+    ;;
+esac
 
 dnl
 dnl For mpfr-longlong.h - TODO: should be replaced (see acinclude.m4).

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/Makefile.am
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/Makefile.am	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/Makefile.am	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,4 +1,4 @@
-# Copyright 2000-2016 Free Software Foundation, Inc.
+# Copyright 2000-2017 Free Software Foundation, Inc.
 # This Makefile.am is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
 # with or without modifications, as long as this notice is preserved.
@@ -75,7 +75,7 @@
 #        2.4.x    3:x:2
 #        3.0.x    4:x:0
 #        3.1.x    5:x:1
-libmpfr_la_LDFLAGS = $(MPFR_LDFLAGS) $(LIBMPFR_LDFLAGS) -version-info 5:5:1
+libmpfr_la_LDFLAGS = $(MPFR_LDFLAGS) $(LIBMPFR_LDFLAGS) -version-info 5:6:1
 
 # Important note: If for some reason, srcdir is read-only at build time
 # (and you use objdir != srcdir), then you need to rebuild get_patches.c

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/abort_prec_max.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/abort_prec_max.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/abort_prec_max.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_abort_prec_max -- Abort due to maximal precision overflow.
 
-Copyright 2005-2016 Free Software Foundation, Inc.
+Copyright 2005-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/acos.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/acos.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/acos.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_acos -- arc-cosinus of a floating-point number
 
-Copyright 2001-2016 Free Software Foundation, Inc.
+Copyright 2001-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/acosh.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/acosh.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/acosh.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_acosh -- inverse hyperbolic cosine
 
-Copyright 2001-2016 Free Software Foundation, Inc.
+Copyright 2001-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/add.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/add.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/add.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_add -- add two floating-point numbers
 
-Copyright 1999-2004, 2006-2016 Free Software Foundation, Inc.
+Copyright 1999-2004, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/add1.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/add1.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/add1.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_add1 -- internal function to perform a "real" addition
 
-Copyright 1999-2016 Free Software Foundation, Inc.
+Copyright 1999-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/add1sp.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/add1sp.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/add1sp.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,7 +1,7 @@
 /* mpfr_add1sp -- internal function to perform a "real" addition
    All the op must have the same precision
 
-Copyright 2004-2016 Free Software Foundation, Inc.
+Copyright 2004-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/add_d.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/add_d.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/add_d.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,7 +1,7 @@
 /* mpfr_add_d -- add a multiple precision floating-point number
                  to a machine double precision float
 
-Copyright 2007-2016 Free Software Foundation, Inc.
+Copyright 2007-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/add_ui.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/add_ui.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/add_ui.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_add_ui -- add a floating-point number with a machine integer
 
-Copyright 2000-2004, 2006-2016 Free Software Foundation, Inc.
+Copyright 2000-2004, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/agm.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/agm.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/agm.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_agm -- arithmetic-geometric mean of two floating-point numbers
 
-Copyright 1999-2016 Free Software Foundation, Inc.
+Copyright 1999-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/ai.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/ai.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/ai.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_ai -- Airy function Ai
 
-Copyright 2010-2016 Free Software Foundation, Inc.
+Copyright 2010-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/amd/amdfam10/mparam.h
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/amd/amdfam10/mparam.h	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/amd/amdfam10/mparam.h	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* Various Thresholds of MPFR, not exported.  -*- mode: C -*-
 
-Copyright 2005-2016 Free Software Foundation, Inc.
+Copyright 2005-2017 Free Software Foundation, Inc.
 
 This file is part of the GNU MPFR Library.
 

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/amd/athlon/mparam.h
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/amd/athlon/mparam.h	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/amd/athlon/mparam.h	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* Various Thresholds of MPFR, not exported.  -*- mode: C -*-
 
-Copyright 2005-2016 Free Software Foundation, Inc.
+Copyright 2005-2017 Free Software Foundation, Inc.
 
 This file is part of the GNU MPFR Library.
 

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/amd/k8/mparam.h
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/amd/k8/mparam.h	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/amd/k8/mparam.h	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* Various Thresholds of MPFR, not exported.  -*- mode: C -*-
 
-Copyright 2005-2016 Free Software Foundation, Inc.
+Copyright 2005-2017 Free Software Foundation, Inc.
 
 This file is part of the GNU MPFR Library.
 

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/arm/mparam.h
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/arm/mparam.h	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/arm/mparam.h	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* Various Thresholds of MPFR, not exported.  -*- mode: C -*-
 
-Copyright 2005-2016 Free Software Foundation, Inc.
+Copyright 2005-2017 Free Software Foundation, Inc.
 
 This file is part of the GNU MPFR Library.
 

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/asin.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/asin.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/asin.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_asin -- arc-sinus of a floating-point number
 
-Copyright 2001-2016 Free Software Foundation, Inc.
+Copyright 2001-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/asinh.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/asinh.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/asinh.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_asinh -- inverse hyperbolic sine
 
-Copyright 2001-2016 Free Software Foundation, Inc.
+Copyright 2001-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/atan.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/atan.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/atan.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_atan -- arc-tangent of a floating-point number
 
-Copyright 2001-2016 Free Software Foundation, Inc.
+Copyright 2001-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/atan2.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/atan2.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/atan2.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_atan2 -- arc-tan 2 of a floating-point number
 
-Copyright 2005-2016 Free Software Foundation, Inc.
+Copyright 2005-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/atanh.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/atanh.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/atanh.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_atanh -- Inverse Hyperbolic Tangente
 
-Copyright 2001-2016 Free Software Foundation, Inc.
+Copyright 2001-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/bernoulli.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/bernoulli.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/bernoulli.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* bernoulli -- internal function to compute Bernoulli numbers.
 
-Copyright 2005-2016 Free Software Foundation, Inc.
+Copyright 2005-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/buildopt.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/buildopt.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/buildopt.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,7 +1,7 @@
 /* buildopt.c -- functions giving information about options used during the
    mpfr library compilation
 
-Copyright 2009-2016 Free Software Foundation, Inc.
+Copyright 2009-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/cache.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/cache.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/cache.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_cache -- cache interface for multiple-precision constants in MPFR.
 
-Copyright 2004-2016 Free Software Foundation, Inc.
+Copyright 2004-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/cbrt.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/cbrt.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/cbrt.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_cbrt -- cube root function.
 
-Copyright 2002-2016 Free Software Foundation, Inc.
+Copyright 2002-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/check.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/check.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/check.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_check -- Check if a floating-point number has not been corrupted.
 
-Copyright 2003-2004, 2006-2016 Free Software Foundation, Inc.
+Copyright 2003-2004, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/clear.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/clear.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/clear.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_clear -- free the memory space allocated for a floating-point number
 
-Copyright 1999-2001, 2004-2016 Free Software Foundation, Inc.
+Copyright 1999-2001, 2004-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/clears.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/clears.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/clears.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,7 +1,7 @@
 /* mpfr_clears --  free the memory space allocated for several
    floating-point numbers
 
-Copyright 2003-2004, 2006-2016 Free Software Foundation, Inc.
+Copyright 2003-2004, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/cmp.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/cmp.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/cmp.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_cmp -- compare two floating-point numbers
 
-Copyright 1999, 2001, 2003-2016 Free Software Foundation, Inc.
+Copyright 1999, 2001, 2003-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/cmp2.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/cmp2.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/cmp2.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_cmp2 -- exponent shift when subtracting two numbers.
 
-Copyright 1999-2004, 2006-2016 Free Software Foundation, Inc.
+Copyright 1999-2004, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/cmp_abs.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/cmp_abs.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/cmp_abs.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_cmpabs -- compare the absolute values of two FP numbers
 
-Copyright 1999, 2001-2004, 2006-2016 Free Software Foundation, Inc.
+Copyright 1999, 2001-2004, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/cmp_d.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/cmp_d.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/cmp_d.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_cmp_d -- compare a floating-point number with a double
 
-Copyright 2003-2004, 2006-2016 Free Software Foundation, Inc.
+Copyright 2003-2004, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/cmp_ld.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/cmp_ld.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/cmp_ld.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_cmp_d -- compare a floating-point number with a long double
 
-Copyright 2004, 2006-2016 Free Software Foundation, Inc.
+Copyright 2004, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/cmp_si.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/cmp_si.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/cmp_si.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,7 +1,7 @@
 /* mpfr_cmp_si_2exp -- compare a floating-point number with a signed
 machine integer multiplied by a power of 2
 
-Copyright 1999, 2001-2016 Free Software Foundation, Inc.
+Copyright 1999, 2001-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/cmp_ui.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/cmp_ui.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/cmp_ui.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,7 +1,7 @@
 /* mpfr_cmp_ui_2exp -- compare a floating-point number with an unsigned
 machine integer multiplied by a power of 2
 
-Copyright 1999, 2001-2004, 2006-2016 Free Software Foundation, Inc.
+Copyright 1999, 2001-2004, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/comparisons.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/comparisons.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/comparisons.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* comparison predicates
 
-Copyright 2002-2004, 2006-2016 Free Software Foundation, Inc.
+Copyright 2002-2004, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/const_catalan.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/const_catalan.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/const_catalan.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_const_catalan -- compute Catalan's constant.
 
-Copyright 2005-2016 Free Software Foundation, Inc.
+Copyright 2005-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.
@@ -24,16 +24,8 @@
 #include "mpfr-impl.h"
 
 /* Declare the cache */
-MPFR_DECL_INIT_CACHE(__gmpfr_cache_const_catalan, mpfr_const_catalan_internal);
+MPFR_DECL_INIT_CACHE (__gmpfr_cache_const_catalan, mpfr_const_catalan_internal)
 
-#ifdef MPFR_WIN_THREAD_SAFE_DLL
-mpfr_cache_t *
-__gmpfr_cache_const_catalan_f()
-{
-  return &__gmpfr_cache_const_catalan;
-}
-#endif
-
 /* Set User Interface */
 #undef mpfr_const_catalan
 int

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/const_euler.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/const_euler.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/const_euler.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_const_euler -- Euler's constant
 
-Copyright 2001-2016 Free Software Foundation, Inc.
+Copyright 2001-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.
@@ -24,16 +24,8 @@
 #include "mpfr-impl.h"
 
 /* Declare the cache */
-MPFR_DECL_INIT_CACHE(__gmpfr_cache_const_euler, mpfr_const_euler_internal);
+MPFR_DECL_INIT_CACHE (__gmpfr_cache_const_euler, mpfr_const_euler_internal)
 
-#ifdef MPFR_WIN_THREAD_SAFE_DLL
-mpfr_cache_t *
-__gmpfr_cache_const_euler_f()
-{
-  return &__gmpfr_cache_const_euler;
-}
-#endif
-
 /* Set User Interface */
 #undef mpfr_const_euler
 int

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/const_log2.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/const_log2.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/const_log2.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_const_log2 -- compute natural logarithm of 2
 
-Copyright 1999, 2001-2016 Free Software Foundation, Inc.
+Copyright 1999, 2001-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.
@@ -25,23 +25,13 @@
 
 /* Declare the cache */
 #ifndef MPFR_USE_LOGGING
-MPFR_DECL_INIT_CACHE(__gmpfr_cache_const_log2, mpfr_const_log2_internal);
+MPFR_DECL_INIT_CACHE (__gmpfr_cache_const_log2, mpfr_const_log2_internal)
 #else
-MPFR_DECL_INIT_CACHE(__gmpfr_normal_log2, mpfr_const_log2_internal);
-MPFR_DECL_INIT_CACHE(__gmpfr_logging_log2, mpfr_const_log2_internal);
-MPFR_THREAD_ATTR mpfr_cache_ptr __gmpfr_cache_const_log2 = __gmpfr_normal_log2;
+MPFR_DECL_INIT_CACHE (__gmpfr_normal_log2, mpfr_const_log2_internal)
+MPFR_DECL_INIT_CACHE (__gmpfr_logging_log2, mpfr_const_log2_internal)
+MPFR_THREAD_VAR (mpfr_cache_ptr, __gmpfr_cache_const_log2, __gmpfr_normal_log2)
 #endif
 
-#ifdef MPFR_WIN_THREAD_SAFE_DLL
-# ifndef MPFR_USE_LOGGING
-mpfr_cache_t   * __gmpfr_cache_const_log2_f() { return &__gmpfr_cache_const_log2; }
-# else
-mpfr_cache_t   * __gmpfr_normal_log2_f()      { return &__gmpfr_normal_log2; }
-mpfr_cache_t   * __gmpfr_logging_log2_f()     { return &__gmpfr_logging_log2; }
-mpfr_cache_ptr * __gmpfr_cache_const_log2_f() { return &__gmpfr_cache_const_log2; }
-# endif
-#endif
-
 /* Set User interface */
 #undef mpfr_const_log2
 int

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/const_pi.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/const_pi.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/const_pi.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_const_pi -- compute Pi
 
-Copyright 1999-2016 Free Software Foundation, Inc.
+Copyright 1999-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.
@@ -24,23 +24,13 @@
 
 /* Declare the cache */
 #ifndef MPFR_USE_LOGGING
-MPFR_DECL_INIT_CACHE(__gmpfr_cache_const_pi, mpfr_const_pi_internal);
+MPFR_DECL_INIT_CACHE (__gmpfr_cache_const_pi, mpfr_const_pi_internal)
 #else
-MPFR_DECL_INIT_CACHE(__gmpfr_normal_pi, mpfr_const_pi_internal);
-MPFR_DECL_INIT_CACHE(__gmpfr_logging_pi, mpfr_const_pi_internal);
-MPFR_THREAD_ATTR mpfr_cache_ptr __gmpfr_cache_const_pi = __gmpfr_normal_pi;
+MPFR_DECL_INIT_CACHE (__gmpfr_normal_pi, mpfr_const_pi_internal)
+MPFR_DECL_INIT_CACHE (__gmpfr_logging_pi, mpfr_const_pi_internal)
+MPFR_THREAD_VAR (mpfr_cache_ptr, __gmpfr_cache_const_pi, __gmpfr_normal_pi)
 #endif
 
-#ifdef MPFR_WIN_THREAD_SAFE_DLL
-# ifndef MPFR_USE_LOGGING
-mpfr_cache_t   * __gmpfr_cache_const_pi_f() { return &__gmpfr_cache_const_pi; }
-# else
-mpfr_cache_t   * __gmpfr_normal_pi_f()      { return &__gmpfr_normal_pi; }
-mpfr_cache_t   * __gmpfr_logging_pi_f()     { return &__gmpfr_logging_pi; }
-mpfr_cache_ptr * __gmpfr_cache_const_pi_f() { return &__gmpfr_cache_const_pi; }
-# endif
-#endif
-
 /* Set User Interface */
 #undef mpfr_const_pi
 int

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/constant.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/constant.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/constant.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* MPFR internal constant FP numbers
 
-Copyright 2005-2016 Free Software Foundation, Inc.
+Copyright 2005-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/copysign.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/copysign.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/copysign.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_copysign -- Produce a value with the magnitude of x and sign bit of y
 
-Copyright 2001-2004, 2006-2016 Free Software Foundation, Inc.
+Copyright 2001-2004, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/cos.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/cos.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/cos.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_cos -- cosine of a floating-point number
 
-Copyright 2001-2016 Free Software Foundation, Inc.
+Copyright 2001-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/cosh.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/cosh.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/cosh.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_cosh -- hyperbolic cosine
 
-Copyright 2001-2002, 2004-2016 Free Software Foundation, Inc.
+Copyright 2001-2002, 2004-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/cot.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/cot.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/cot.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_cot - cotangent function.
 
-Copyright 2005-2016 Free Software Foundation, Inc.
+Copyright 2005-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/coth.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/coth.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/coth.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_coth - Hyperbolic cotangent function.
 
-Copyright 2005-2016 Free Software Foundation, Inc.
+Copyright 2005-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/csc.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/csc.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/csc.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_csc - cosecant function.
 
-Copyright 2005-2016 Free Software Foundation, Inc.
+Copyright 2005-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/csch.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/csch.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/csch.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_csch - Hyperbolic cosecant function.
 
-Copyright 2005-2016 Free Software Foundation, Inc.
+Copyright 2005-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/d_div.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/d_div.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/d_div.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,7 +1,7 @@
 /* mpfr_d_div -- divide a machine double precision float
                  by a multiple precision floating-point number
 
-Copyright 2007-2016 Free Software Foundation, Inc.
+Copyright 2007-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/d_sub.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/d_sub.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/d_sub.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,7 +1,7 @@
 /* mpfr_d_sub -- subtract a multiple precision floating-point number
                  from a machine double precision float
 
-Copyright 2007-2016 Free Software Foundation, Inc.
+Copyright 2007-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/digamma.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/digamma.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/digamma.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_digamma -- digamma function of a floating-point number
 
-Copyright 2009-2016 Free Software Foundation, Inc.
+Copyright 2009-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/dim.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/dim.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/dim.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_dim -- positive difference
 
-Copyright 2001-2002, 2004, 2006-2016 Free Software Foundation, Inc.
+Copyright 2001-2002, 2004, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/div.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/div.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/div.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_div -- divide two floating-point numbers
 
-Copyright 1999, 2001-2016 Free Software Foundation, Inc.
+Copyright 1999, 2001-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/div_2exp.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/div_2exp.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/div_2exp.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_div_2exp -- divide a floating-point number by a power of two
 
-Copyright 1999, 2001, 2004, 2006-2016 Free Software Foundation, Inc.
+Copyright 1999, 2001, 2004, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/div_2si.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/div_2si.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/div_2si.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_div_2si -- divide a floating-point number by a power of two
 
-Copyright 1999, 2001-2016 Free Software Foundation, Inc.
+Copyright 1999, 2001-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/div_2ui.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/div_2ui.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/div_2ui.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_div_2ui -- divide a floating-point number by a power of two
 
-Copyright 1999, 2001-2016 Free Software Foundation, Inc.
+Copyright 1999, 2001-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/div_d.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/div_d.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/div_d.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,7 +1,7 @@
 /* mpfr_div_d -- divide a multiple precision floating-point number
                  by a machine double precision float
 
-Copyright 2007-2016 Free Software Foundation, Inc.
+Copyright 2007-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/div_ui.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/div_ui.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/div_ui.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_div_{ui,si} -- divide a floating-point number by a machine integer
 
-Copyright 1999-2016 Free Software Foundation, Inc.
+Copyright 1999-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/dump.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/dump.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/dump.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_dump -- Dump a float to stdout.
 
-Copyright 1999, 2001, 2004, 2006-2016 Free Software Foundation, Inc.
+Copyright 1999, 2001, 2004, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/eint.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/eint.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/eint.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_eint, mpfr_eint1 -- the exponential integral
 
-Copyright 2005-2016 Free Software Foundation, Inc.
+Copyright 2005-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/eq.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/eq.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/eq.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_eq -- Compare two floats up to a specified bit #.
 
-Copyright 1999, 2001, 2003-2004, 2006-2016 Free Software Foundation, Inc.
+Copyright 1999, 2001, 2003-2004, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/erf.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/erf.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/erf.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_erf -- error function of a floating-point number
 
-Copyright 2001, 2003-2016 Free Software Foundation, Inc.
+Copyright 2001, 2003-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/erfc.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/erfc.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/erfc.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_erfc -- The Complementary Error Function of a floating-point number
 
-Copyright 2005-2016 Free Software Foundation, Inc.
+Copyright 2005-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/exceptions.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/exceptions.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/exceptions.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* Exception flags and utilities.
 
-Copyright 2001-2016 Free Software Foundation, Inc.
+Copyright 2001-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.
@@ -22,17 +22,10 @@
 
 #include "mpfr-impl.h"
 
-MPFR_THREAD_ATTR unsigned int __gmpfr_flags = 0;
+MPFR_THREAD_VAR (unsigned int, __gmpfr_flags, 0)
+MPFR_THREAD_VAR (mpfr_exp_t, __gmpfr_emin, MPFR_EMIN_DEFAULT)
+MPFR_THREAD_VAR (mpfr_exp_t, __gmpfr_emax, MPFR_EMAX_DEFAULT)
 
-MPFR_THREAD_ATTR mpfr_exp_t __gmpfr_emin = MPFR_EMIN_DEFAULT;
-MPFR_THREAD_ATTR mpfr_exp_t __gmpfr_emax = MPFR_EMAX_DEFAULT;
-
-#ifdef MPFR_WIN_THREAD_SAFE_DLL
-unsigned int * __gmpfr_flags_f() { return &__gmpfr_flags; }
-mpfr_exp_t *   __gmpfr_emin_f()  { return &__gmpfr_emin; }
-mpfr_exp_t *   __gmpfr_emax_f()  { return &__gmpfr_emax; }
-#endif
-
 #undef mpfr_get_emin
 
 mpfr_exp_t

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/exp.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/exp.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/exp.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_exp -- exponential of a floating-point number
 
-Copyright 1999-2016 Free Software Foundation, Inc.
+Copyright 1999-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/exp10.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/exp10.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/exp10.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_exp10 -- power of 10 function 10^y
 
-Copyright 2003-2004, 2006-2016 Free Software Foundation, Inc.
+Copyright 2003-2004, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/exp2.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/exp2.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/exp2.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_exp2 -- power of 2 function 2^y
 
-Copyright 2001-2016 Free Software Foundation, Inc.
+Copyright 2001-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/exp3.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/exp3.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/exp3.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_exp -- exponential of a floating-point number
 
-Copyright 1999, 2001-2016 Free Software Foundation, Inc.
+Copyright 1999, 2001-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/exp_2.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/exp_2.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/exp_2.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,7 +1,7 @@
 /* mpfr_exp_2 -- exponential of a floating-point number
                  using algorithms in O(n^(1/2)*M(n)) and O(n^(1/3)*M(n))
 
-Copyright 1999-2016 Free Software Foundation, Inc.
+Copyright 1999-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/expm1.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/expm1.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/expm1.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_expm1 -- Compute exp(x)-1
 
-Copyright 2001-2016 Free Software Foundation, Inc.
+Copyright 2001-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/extract.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/extract.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/extract.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_extract -- bit-extraction function for the binary splitting algorithm
 
-Copyright 2000-2002, 2004-2016 Free Software Foundation, Inc.
+Copyright 2000-2002, 2004-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/factorial.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/factorial.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/factorial.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_fac_ui -- factorial of a non-negative integer
 
-Copyright 2001, 2004-2016 Free Software Foundation, Inc.
+Copyright 2001, 2004-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/fits_intmax.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/fits_intmax.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/fits_intmax.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_fits_intmax_p -- test whether an mpfr fits an intmax_t.
 
-Copyright 2004, 2006-2016 Free Software Foundation, Inc.
+Copyright 2004, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/fits_s.h
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/fits_s.h	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/fits_s.h	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_fits_*_p -- test whether an mpfr fits a C signed type.
 
-Copyright 2003-2016 Free Software Foundation, Inc.
+Copyright 2003-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/fits_sint.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/fits_sint.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/fits_sint.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_fits_sint_p -- test whether an mpfr fits an int.
 
-Copyright 2003, 2006-2016 Free Software Foundation, Inc.
+Copyright 2003, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/fits_slong.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/fits_slong.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/fits_slong.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_fits_slong_p -- test whether an mpfr fits a long.
 
-Copyright 2003, 2006-2016 Free Software Foundation, Inc.
+Copyright 2003, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/fits_sshort.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/fits_sshort.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/fits_sshort.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_fits_sshort_p -- test whether an mpfr fits a short.
 
-Copyright 2003, 2006-2016 Free Software Foundation, Inc.
+Copyright 2003, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/fits_u.h
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/fits_u.h	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/fits_u.h	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_fits_*_p -- test whether an mpfr fits a C unsigned type.
 
-Copyright 2003-2016 Free Software Foundation, Inc.
+Copyright 2003-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/fits_uint.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/fits_uint.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/fits_uint.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_fits_uint_p -- test whether an mpfr fits an unsigned int.
 
-Copyright 2003, 2006-2016 Free Software Foundation, Inc.
+Copyright 2003, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/fits_uintmax.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/fits_uintmax.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/fits_uintmax.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_fits_uintmax_p -- test whether an mpfr fits an uintmax_t.
 
-Copyright 2004, 2006-2016 Free Software Foundation, Inc.
+Copyright 2004, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/fits_ulong.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/fits_ulong.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/fits_ulong.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_fits_ulong_p -- test whether an mpfr fits an unsigned long.
 
-Copyright 2003, 2006-2016 Free Software Foundation, Inc.
+Copyright 2003, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/fits_ushort.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/fits_ushort.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/fits_ushort.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_fits_ushort_p -- test whether an mpfr fits an unsigned short.
 
-Copyright 2003, 2006-2016 Free Software Foundation, Inc.
+Copyright 2003, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/fma.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/fma.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/fma.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_fma -- Floating multiply-add
 
-Copyright 2001-2002, 2004, 2006-2016 Free Software Foundation, Inc.
+Copyright 2001-2002, 2004, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/fms.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/fms.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/fms.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_fms -- Floating multiply-subtract
 
-Copyright 2001-2002, 2004, 2006-2016 Free Software Foundation, Inc.
+Copyright 2001-2002, 2004, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/frac.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/frac.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/frac.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_frac -- Fractional part of a floating-point number.
 
-Copyright 2002-2004, 2006-2016 Free Software Foundation, Inc.
+Copyright 2002-2004, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/free_cache.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/free_cache.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/free_cache.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_free_cache - Free the cache used by MPFR for internal consts.
 
-Copyright 2004-2016 Free Software Foundation, Inc.
+Copyright 2004-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/frexp.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/frexp.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/frexp.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_frexp -- convert to integral and fractional parts
 
-Copyright 2011-2016 Free Software Foundation, Inc.
+Copyright 2011-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/gamma.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/gamma.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/gamma.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_gamma -- gamma function
 
-Copyright 2001-2016 Free Software Foundation, Inc.
+Copyright 2001-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/gammaonethird.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/gammaonethird.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/gammaonethird.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* Functions for evaluating Gamma(1/3) and Gamma(2/3). Used by mpfr_ai.
 
-Copyright 2010-2016 Free Software Foundation, Inc.
+Copyright 2010-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/gen_inverse.h
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/gen_inverse.h	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/gen_inverse.h	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* generic inverse of a function.
 
-Copyright 2005-2016 Free Software Foundation, Inc.
+Copyright 2005-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/generic/mparam.h
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/generic/mparam.h	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/generic/mparam.h	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* Various Thresholds of MPFR, not exported.  -*- mode: C -*-
 
-Copyright 2005-2016 Free Software Foundation, Inc.
+Copyright 2005-2017 Free Software Foundation, Inc.
 
 This file is part of the GNU MPFR Library.
 

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/get_d.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/get_d.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/get_d.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,7 +1,7 @@
 /* mpfr_get_d, mpfr_get_d_2exp -- convert a multiple precision floating-point
                                   number to a machine double precision float
 
-Copyright 1999-2016 Free Software Foundation, Inc.
+Copyright 1999-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/get_d64.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/get_d64.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/get_d64.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -5,7 +5,7 @@
 http://gcc.gnu.org/onlinedocs/gcc/Decimal-Float.html,
 and TR 24732 <http://www.open-std.org/jtc1/sc22/wg14/www/projects#24732>.
 
-Copyright 2006-2016 Free Software Foundation, Inc.
+Copyright 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/get_exp.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/get_exp.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/get_exp.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_get_exp - get the exponent of a floating-point number
 
-Copyright 2002-2004, 2006-2016 Free Software Foundation, Inc.
+Copyright 2002-2004, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/get_f.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/get_f.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/get_f.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_get_f -- convert a MPFR number to a GNU MPF number
 
-Copyright 2005-2016 Free Software Foundation, Inc.
+Copyright 2005-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/get_flt.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/get_flt.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/get_flt.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_get_flt -- convert a mpfr_t to a machine single precision float
 
-Copyright 2009-2016 Free Software Foundation, Inc.
+Copyright 2009-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/get_ld.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/get_ld.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/get_ld.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,7 +1,7 @@
 /* mpfr_get_ld, mpfr_get_ld_2exp -- convert a multiple precision floating-point
                                     number to a machine long double
 
-Copyright 2002-2016 Free Software Foundation, Inc.
+Copyright 2002-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/get_patches.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/get_patches.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/get_patches.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_get_patches -- Patches that have been applied
 
-Copyright 2007-2016 Free Software Foundation, Inc.
+Copyright 2007-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/get_si.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/get_si.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/get_si.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_get_si -- convert a floating-point number to a signed long.
 
-Copyright 2003-2016 Free Software Foundation, Inc.
+Copyright 2003-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/get_sj.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/get_sj.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/get_sj.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_get_sj -- convert a MPFR number to a huge machine signed integer
 
-Copyright 2004, 2006-2016 Free Software Foundation, Inc.
+Copyright 2004, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/get_str.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/get_str.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/get_str.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_get_str -- output a floating-point number to a string
 
-Copyright 1999-2016 Free Software Foundation, Inc.
+Copyright 1999-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/get_ui.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/get_ui.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/get_ui.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_get_ui -- convert a floating-point number to an unsigned long.
 
-Copyright 2003-2004, 2006-2016 Free Software Foundation, Inc.
+Copyright 2003-2004, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/get_uj.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/get_uj.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/get_uj.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_get_uj -- convert a MPFR number to a huge machine unsigned integer
 
-Copyright 2004, 2006-2016 Free Software Foundation, Inc.
+Copyright 2004, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/get_z.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/get_z.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/get_z.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,7 +1,7 @@
 /* mpfr_get_z -- get a multiple-precision integer from
                  a floating-point number
 
-Copyright 2004, 2006-2016 Free Software Foundation, Inc.
+Copyright 2004, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/get_z_exp.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/get_z_exp.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/get_z_exp.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,7 +1,7 @@
 /* mpfr_get_z_2exp -- get a multiple-precision integer and an exponent
                       from a floating-point number
 
-Copyright 2000-2016 Free Software Foundation, Inc.
+Copyright 2000-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/gmp_op.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/gmp_op.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/gmp_op.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* Implementations of operations between mpfr and mpz/mpq data
 
-Copyright 2001, 2003-2016 Free Software Foundation, Inc.
+Copyright 2001, 2003-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/grandom.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/grandom.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/grandom.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -3,7 +3,7 @@
    distribution and round it to the precision of rop1, rop2 according
    to the given rounding mode.
 
-Copyright 2011-2016 Free Software Foundation, Inc.
+Copyright 2011-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/hppa/mparam.h
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/hppa/mparam.h	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/hppa/mparam.h	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* Various Thresholds of MPFR, not exported.  -*- mode: C -*-
 
-Copyright 2005-2016 Free Software Foundation, Inc.
+Copyright 2005-2017 Free Software Foundation, Inc.
 
 This file is part of the GNU MPFR Library.
 

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/hypot.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/hypot.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/hypot.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_hypot -- Euclidean distance
 
-Copyright 2001-2016 Free Software Foundation, Inc.
+Copyright 2001-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/ia64/mparam.h
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/ia64/mparam.h	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/ia64/mparam.h	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* Various Thresholds of MPFR, not exported.  -*- mode: C -*-
 
-Copyright 2005-2016 Free Software Foundation, Inc.
+Copyright 2005-2017 Free Software Foundation, Inc.
 
 This file is part of the GNU MPFR Library.
 

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/ieee_floats.h
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/ieee_floats.h	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/ieee_floats.h	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* auxiliary data to generate special IEEE floats (NaN, +Inf, -Inf)
 
-Copyright 1999-2016 Free Software Foundation, Inc.
+Copyright 1999-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/init.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/init.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/init.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_init -- initialize a floating-point number
 
-Copyright 1999, 2001-2002, 2004, 2006-2016 Free Software Foundation, Inc.
+Copyright 1999, 2001-2002, 2004, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/init2.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/init2.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/init2.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_init2 -- initialize a floating-point number with given precision
 
-Copyright 2001-2016 Free Software Foundation, Inc.
+Copyright 2001-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/inits.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/inits.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/inits.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_inits -- initialize several floating-point numbers
 
-Copyright 2003-2004, 2006-2016 Free Software Foundation, Inc.
+Copyright 2003-2004, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/inits2.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/inits2.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/inits2.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,7 +1,7 @@
 /* mpfr_inits2 -- initialize several floating-point numbers with given
    precision
 
-Copyright 2003-2004, 2006-2016 Free Software Foundation, Inc.
+Copyright 2003-2004, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/inp_str.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/inp_str.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/inp_str.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,7 +1,7 @@
 /* mpfr_inp_str -- input a number in base BASE from stdio stream STREAM
                    and store the result in ROP
 
-Copyright 1999, 2001-2002, 2004, 2006-2016 Free Software Foundation, Inc.
+Copyright 1999, 2001-2002, 2004, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/int_ceil_log2.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/int_ceil_log2.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/int_ceil_log2.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* __gmpfr_int_ceil_log2 -- Integer ceil of log2(x)
 
-Copyright 2004-2016 Free Software Foundation, Inc.
+Copyright 2004-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/isinf.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/isinf.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/isinf.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_inf_p -- check for infinities
 
-Copyright 2000-2001, 2004, 2006-2016 Free Software Foundation, Inc.
+Copyright 2000-2001, 2004, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/isinteger.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/isinteger.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/isinteger.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_integer_p -- test if a mpfr variable is integer.
 
-Copyright 2001-2004, 2006-2016 Free Software Foundation, Inc.
+Copyright 2001-2004, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/isnan.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/isnan.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/isnan.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_nan_p -- check for NaN
 
-Copyright 2000-2001, 2004, 2006-2016 Free Software Foundation, Inc.
+Copyright 2000-2001, 2004, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/isnum.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/isnum.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/isnum.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_number_p -- check for ordinary numbers
 
-Copyright 2000-2002, 2004, 2006-2016 Free Software Foundation, Inc.
+Copyright 2000-2002, 2004, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/isqrt.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/isqrt.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/isqrt.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* __gmpfr_isqrt && __gmpfr_cuberoot -- Integer square root and cube root
 
-Copyright 2004-2016 Free Software Foundation, Inc.
+Copyright 2004-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/isregular.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/isregular.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/isregular.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_regular_p -- check for regular number (neither NaN, Inf or zero)
 
-Copyright 2009-2016 Free Software Foundation, Inc.
+Copyright 2009-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/iszero.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/iszero.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/iszero.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_zero_p -- check for zero
 
-Copyright 2004, 2006-2016 Free Software Foundation, Inc.
+Copyright 2004, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/jn.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/jn.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/jn.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,7 +1,7 @@
 /* mpfr_j0, mpfr_j1, mpfr_jn -- Bessel functions of 1st kind, integer order.
    http://www.opengroup.org/onlinepubs/009695399/functions/j0.html
 
-Copyright 2007-2016 Free Software Foundation, Inc.
+Copyright 2007-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/jyn_asympt.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/jyn_asympt.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/jyn_asympt.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_jn_asympt, mpfr_yn_asympt -- shared code for mpfr_jn and mpfr_yn
 
-Copyright 2007-2016 Free Software Foundation, Inc.
+Copyright 2007-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/li2.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/li2.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/li2.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_li2 -- Dilogarithm.
 
-Copyright 2007-2016 Free Software Foundation, Inc.
+Copyright 2007-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/lngamma.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/lngamma.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/lngamma.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_lngamma -- lngamma function
 
-Copyright 2005-2016 Free Software Foundation, Inc.
+Copyright 2005-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/log.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/log.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/log.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_log -- natural logarithm of a floating-point number
 
-Copyright 1999-2016 Free Software Foundation, Inc.
+Copyright 1999-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/log10.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/log10.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/log10.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_log10 -- logarithm in base 10.
 
-Copyright 2001-2016 Free Software Foundation, Inc.
+Copyright 2001-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/log1p.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/log1p.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/log1p.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_log1p -- Compute log(1+x)
 
-Copyright 2001-2016 Free Software Foundation, Inc.
+Copyright 2001-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/log2.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/log2.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/log2.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_log2 -- log base 2
 
-Copyright 2001-2016 Free Software Foundation, Inc.
+Copyright 2001-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/logging.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/logging.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/logging.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* MPFR Logging functions.
 
-Copyright 2005-2016 Free Software Foundation, Inc.
+Copyright 2005-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/min_prec.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/min_prec.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/min_prec.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_min_prec -- minimal size in bits to hold the mantissa
 
-Copyright 2009-2016 Free Software Foundation, Inc.
+Copyright 2009-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/minmax.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/minmax.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/minmax.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_min -- min and max of x, y
 
-Copyright 2001, 2003-2004, 2006-2016 Free Software Foundation, Inc.
+Copyright 2001, 2003-2004, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/modf.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/modf.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/modf.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_modf -- Integral and fractional part.
 
-Copyright 2007-2016 Free Software Foundation, Inc.
+Copyright 2007-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/mp_clz_tab.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/mp_clz_tab.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/mp_clz_tab.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -3,7 +3,7 @@
    THE CONTENTS OF THIS FILE ARE FOR INTERNAL USE AND MAY CHANGE
    INCOMPATIBLY OR DISAPPEAR IN A FUTURE GNU MPFR RELEASE.
 
-Copyright 1991, 1993-1994, 1996-1997, 2000-2001, 2004, 2006-2016 Free Software Foundation, Inc.
+Copyright 1991, 1993-1994, 1996-1997, 2000-2001, 2004, 2006-2017 Free Software Foundation, Inc.
 
 This file is part of the GNU MPFR Library.
 It has been copied and adapted from the GNU MP Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/mparam_h.in
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/mparam_h.in	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/mparam_h.in	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* Various Thresholds of MPFR, not exported.  -*- mode: C -*-
 
-Copyright 2005-2016 Free Software Foundation, Inc.
+Copyright 2005-2017 Free Software Foundation, Inc.
 
 This file is part of the GNU MPFR Library.
 

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/mpf2mpfr.h
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/mpf2mpfr.h	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/mpf2mpfr.h	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpf2mpfr.h -- Compatibility include file with mpf.
 
-Copyright 1999-2002, 2004-2016 Free Software Foundation, Inc.
+Copyright 1999-2002, 2004-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.
@@ -93,15 +93,15 @@
 #undef mpf_div_2exp
 #define mpf_div_2exp(x,y,z) mpfr_div_2exp(x,y,z,MPFR_DEFAULT_RND)
 #undef mpf_fits_slong_p
-#define mpf_fits_slong_p(x) mpfr_fits_ulong_p(x,MPFR_DEFAULT_RND)
+#define mpf_fits_slong_p(x) mpfr_fits_slong_p(x,MPFR_DEFAULT_RND)
 #undef mpf_fits_ulong_p
 #define mpf_fits_ulong_p(x) mpfr_fits_ulong_p(x,MPFR_DEFAULT_RND)
 #undef mpf_fits_sint_p
-#define mpf_fits_sint_p(x) mpfr_fits_uint_p(x,MPFR_DEFAULT_RND)
+#define mpf_fits_sint_p(x) mpfr_fits_sint_p(x,MPFR_DEFAULT_RND)
 #undef mpf_fits_uint_p
 #define mpf_fits_uint_p(x) mpfr_fits_uint_p(x,MPFR_DEFAULT_RND)
 #undef mpf_fits_sshort_p
-#define mpf_fits_sshort_p(x) mpfr_fits_ushort_p(x,MPFR_DEFAULT_RND)
+#define mpf_fits_sshort_p(x) mpfr_fits_sshort_p(x,MPFR_DEFAULT_RND)
 #undef mpf_fits_ushort_p
 #define mpf_fits_ushort_p(x) mpfr_fits_ushort_p(x,MPFR_DEFAULT_RND)
 #undef mpf_get_str
@@ -113,7 +113,7 @@
 #undef mpf_get_ui
 #define mpf_get_ui(x) mpfr_get_ui(x,MPFR_DEFAULT_RND)
 #undef mpf_get_si
-#define mpf_get_si(x) mpfr_get_ui(x,MPFR_DEFAULT_RND)
+#define mpf_get_si(x) mpfr_get_si(x,MPFR_DEFAULT_RND)
 #undef mpf_inp_str
 #define mpf_inp_str(x,y,z) mpfr_inp_str(x,y,z,MPFR_DEFAULT_RND)
 #undef mpf_set_str

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/mpfr-gmp.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/mpfr-gmp.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/mpfr-gmp.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,7 +1,7 @@
 /* mpfr_gmp -- Limited gmp-impl emulator
    Modified version of the GMP files.
 
-Copyright 2004-2016 Free Software Foundation, Inc.
+Copyright 2004-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/mpfr-gmp.h
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/mpfr-gmp.h	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/mpfr-gmp.h	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* Interface to replace gmp-impl.h
 
-Copyright 2004-2016 Free Software Foundation, Inc.
+Copyright 2004-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.
@@ -250,8 +250,6 @@
       }                                 \
   } while (0)
 
-typedef __gmp_randstate_struct *gmp_randstate_ptr;
-
 /* Allocate func are defined in gmp-impl.h */
 
 /* In newer GMP, there aren't anymore __gmp_allocate_func,

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/mpfr-impl.h
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/mpfr-impl.h	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/mpfr-impl.h	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* Utilities for MPFR developers, not exported.
 
-Copyright 1999-2016 Free Software Foundation, Inc.
+Copyright 1999-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.
@@ -277,23 +277,24 @@
 #endif
 
 #ifdef MPFR_WIN_THREAD_SAFE_DLL
-__MPFR_DECLSPEC unsigned int * __gmpfr_flags_f();
-__MPFR_DECLSPEC mpfr_exp_t *   __gmpfr_emin_f();
-__MPFR_DECLSPEC mpfr_exp_t *   __gmpfr_emax_f();
-__MPFR_DECLSPEC mpfr_prec_t *  __gmpfr_default_fp_bit_precision_f();
-__MPFR_DECLSPEC mpfr_rnd_t *   __gmpfr_default_rounding_mode_f();
-__MPFR_DECLSPEC mpfr_cache_t * __gmpfr_cache_const_euler_f();
-__MPFR_DECLSPEC mpfr_cache_t * __gmpfr_cache_const_catalan_f();
+# define MPFR_MAKE_VARFCT(T,N) T * N ## _f (void) { return &N; }
+__MPFR_DECLSPEC unsigned int * __gmpfr_flags_f (void);
+__MPFR_DECLSPEC mpfr_exp_t *   __gmpfr_emin_f (void);
+__MPFR_DECLSPEC mpfr_exp_t *   __gmpfr_emax_f (void);
+__MPFR_DECLSPEC mpfr_prec_t *  __gmpfr_default_fp_bit_precision_f (void);
+__MPFR_DECLSPEC mpfr_rnd_t *   __gmpfr_default_rounding_mode_f (void);
+__MPFR_DECLSPEC mpfr_cache_t * __gmpfr_cache_const_euler_f (void);
+__MPFR_DECLSPEC mpfr_cache_t * __gmpfr_cache_const_catalan_f (void);
 # ifndef MPFR_USE_LOGGING
-__MPFR_DECLSPEC mpfr_cache_t * __gmpfr_cache_const_pi_f();
-__MPFR_DECLSPEC mpfr_cache_t * __gmpfr_cache_const_log2_f();
+__MPFR_DECLSPEC mpfr_cache_t * __gmpfr_cache_const_pi_f (void);
+__MPFR_DECLSPEC mpfr_cache_t * __gmpfr_cache_const_log2_f (void);
 # else
-__MPFR_DECLSPEC mpfr_cache_t *   __gmpfr_normal_pi_f();
-__MPFR_DECLSPEC mpfr_cache_t *   __gmpfr_normal_log2_f();
-__MPFR_DECLSPEC mpfr_cache_t *   __gmpfr_logging_pi_f();
-__MPFR_DECLSPEC mpfr_cache_t *   __gmpfr_logging_log2_f();
-__MPFR_DECLSPEC mpfr_cache_ptr * __gmpfr_cache_const_pi_f();
-__MPFR_DECLSPEC mpfr_cache_ptr * __gmpfr_cache_const_log2_f();
+__MPFR_DECLSPEC mpfr_cache_t *   __gmpfr_normal_pi_f (void);
+__MPFR_DECLSPEC mpfr_cache_t *   __gmpfr_normal_log2_f (void);
+__MPFR_DECLSPEC mpfr_cache_t *   __gmpfr_logging_pi_f (void);
+__MPFR_DECLSPEC mpfr_cache_t *   __gmpfr_logging_log2_f (void);
+__MPFR_DECLSPEC mpfr_cache_ptr * __gmpfr_cache_const_pi_f (void);
+__MPFR_DECLSPEC mpfr_cache_ptr * __gmpfr_cache_const_log2_f (void);
 # endif
 # ifndef __MPFR_WITHIN_MPFR
 #  define __gmpfr_flags                    (*__gmpfr_flags_f())
@@ -314,8 +315,14 @@
 #   define __gmpfr_cache_const_log2       (*__gmpfr_cache_const_log2_f())
 #  endif
 # endif
+#else
+# define MPFR_MAKE_VARFCT(T,N)
 #endif
 
+# define MPFR_THREAD_VAR(T,N,V)    \
+  MPFR_THREAD_ATTR T N = (V);      \
+  MPFR_MAKE_VARFCT (T,N)
+
 #define BASE_MAX 62
 __MPFR_DECLSPEC extern const __mpfr_struct __gmpfr_l2b[BASE_MAX-1][2];
 
@@ -341,11 +348,15 @@
 #define MPFR_FLAGS_DIVBY0 32
 #define MPFR_FLAGS_ALL 63
 
-/* Replace some common functions for direct access to the global vars */
-#define mpfr_get_emin() (__gmpfr_emin + 0)
-#define mpfr_get_emax() (__gmpfr_emax + 0)
-#define mpfr_get_default_rounding_mode() (__gmpfr_default_rounding_mode + 0)
-#define mpfr_get_default_prec() (__gmpfr_default_fp_bit_precision + 0)
+/* Replace some common functions for direct access to the global vars.
+   The casts prevent these macros from being used as a lvalue (and this
+   method makes sure that the expressions have the correct type). */
+#define mpfr_get_emin() ((mpfr_exp_t) __gmpfr_emin)
+#define mpfr_get_emax() ((mpfr_exp_t) __gmpfr_emax)
+#define mpfr_get_default_rounding_mode() \
+  ((mpfr_rnd_t) __gmpfr_default_rounding_mode)
+#define mpfr_get_default_prec() \
+  ((mpfr_prec_t) __gmpfr_default_fp_bit_precision)
 
 #define mpfr_clear_flags() \
   ((void) (__gmpfr_flags = 0))
@@ -872,7 +883,7 @@
    following two macros, unless the flag comes from another function
    returning the ternary inexact value */
 #define MPFR_RET(I) return \
-  (I) ? ((__gmpfr_flags |= MPFR_FLAGS_INEXACT), (I)) : 0
+  (I) != 0 ? ((__gmpfr_flags |= MPFR_FLAGS_INEXACT), (I)) : 0
 #define MPFR_RET_NAN return (__gmpfr_flags |= MPFR_FLAGS_NAN), 0
 
 #define MPFR_SET_ERANGE() (__gmpfr_flags |= MPFR_FLAGS_ERANGE)
@@ -1044,7 +1055,8 @@
 
 #define MPFR_DECL_INIT_CACHE(_cache,_func)                           \
   MPFR_THREAD_ATTR mpfr_cache_t _cache =                             \
-    {{{{0,MPFR_SIGN_POS,0,(mp_limb_t*)0}},0,_func}}
+    {{{{0,MPFR_SIGN_POS,0,(mp_limb_t*)0}},0,_func}};                 \
+  MPFR_MAKE_VARFCT (mpfr_cache_t,_cache)
 
 
 
@@ -1197,15 +1209,28 @@
 # endif
 #endif
 
+/* FIXME: Add support for multibyte decimal_point and thousands_sep since
+   this can be found in practice: https://reviews.llvm.org/D27167 says:
+   "I found this problem on FreeBSD 11, where thousands_sep in fr_FR.UTF-8
+   is a no-break space (U+00A0)."
+   Note, however, that this is not allowed by the C standard, which just
+   says "character" and not "multibyte character".
+   In the mean time, in case of non-single-byte character, revert to the
+   default value. */
 #if MPFR_LCONV_DPTS
 #include <locale.h>
 /* Warning! In case of signed char, the value of MPFR_DECIMAL_POINT may
    be negative (the ISO C99 does not seem to forbid negative values). */
-#define MPFR_DECIMAL_POINT (localeconv()->decimal_point[0])
-#define MPFR_THOUSANDS_SEPARATOR (localeconv()->thousands_sep[0])
+#define MPFR_DECIMAL_POINT                      \
+  (localeconv()->decimal_point[1] != '\0' ?     \
+   (char) '.' : localeconv()->decimal_point[0])
+#define MPFR_THOUSANDS_SEPARATOR                \
+  (localeconv()->thousands_sep[0] == '\0' ||    \
+   localeconv()->thousands_sep[1] != '\0' ?     \
+   (char) '\0' : localeconv()->thousands_sep[0])
 #else
 #define MPFR_DECIMAL_POINT ((char) '.')
-#define MPFR_THOUSANDS_SEPARATOR ('\0')
+#define MPFR_THOUSANDS_SEPARATOR ((char) '\0')
 #endif
 
 

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/mpfr-intmax.h
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/mpfr-intmax.h	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/mpfr-intmax.h	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* MPFR internal header related to intmax_t.
 
-Copyright 2004-2016 Free Software Foundation, Inc.
+Copyright 2004-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/mpfr-longlong.h
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/mpfr-longlong.h	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/mpfr-longlong.h	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,7 +1,7 @@
 /* longlong.h -- definitions for mixed size 32/64 bit arithmetic.
 
 Copyright 1991, 1992, 1993, 1994, 1996, 1997, 1999, 2000, 2001, 2002, 2003,
-2004, 2005, 2007, 2008, 2009, 2010, 2011, 2012, 2013-2016 Free Software Foundation, Inc.
+2004, 2005, 2007, 2008, 2009, 2010, 2011, 2012, 2013-2017 Free Software Foundation, Inc.
 
 This file is free software; you can redistribute it and/or modify it under the
 terms of the GNU Lesser General Public License as published by the Free

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/mpfr-thread.h
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/mpfr-thread.h	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/mpfr-thread.h	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* MPFR internal header related to thread-local variables.
 
-Copyright 2005-2016 Free Software Foundation, Inc.
+Copyright 2005-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/mpfr.h
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/mpfr.h	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/mpfr.h	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr.h -- Include file for mpfr.
 
-Copyright 1999-2016 Free Software Foundation, Inc.
+Copyright 1999-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.
@@ -26,8 +26,8 @@
 /* Define MPFR version number */
 #define MPFR_VERSION_MAJOR 3
 #define MPFR_VERSION_MINOR 1
-#define MPFR_VERSION_PATCHLEVEL 5
-#define MPFR_VERSION_STRING "3.1.5"
+#define MPFR_VERSION_PATCHLEVEL 6
+#define MPFR_VERSION_STRING "3.1.6"
 
 /* Macros dealing with MPFR VERSION */
 #define MPFR_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/mpn_exp.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/mpn_exp.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/mpn_exp.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_mpn_exp -- auxiliary function for mpfr_get_str and mpfr_set_str
 
-Copyright 1999-2016 Free Software Foundation, Inc.
+Copyright 1999-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/mul.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/mul.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/mul.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_mul -- multiply two floating-point numbers
 
-Copyright 1999-2016 Free Software Foundation, Inc.
+Copyright 1999-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/mul_2exp.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/mul_2exp.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/mul_2exp.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_mul_2exp -- multiply a floating-point number by a power of two
 
-Copyright 1999, 2001, 2004, 2006-2016 Free Software Foundation, Inc.
+Copyright 1999, 2001, 2004, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/mul_2si.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/mul_2si.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/mul_2si.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_mul_2si -- multiply a floating-point number by a power of two
 
-Copyright 1999, 2001-2016 Free Software Foundation, Inc.
+Copyright 1999, 2001-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/mul_2ui.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/mul_2ui.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/mul_2ui.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_mul_2ui -- multiply a floating-point number by a power of two
 
-Copyright 1999, 2001-2016 Free Software Foundation, Inc.
+Copyright 1999, 2001-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/mul_d.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/mul_d.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/mul_d.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,7 +1,7 @@
 /* mpfr_mul_d -- multiply a multiple precision floating-point number
                  by a machine double precision float
 
-Copyright 2007-2016 Free Software Foundation, Inc.
+Copyright 2007-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/mul_ui.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/mul_ui.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/mul_ui.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,7 +1,7 @@
 /* mpfr_mul_ui -- multiply a floating-point number by a machine integer
    mpfr_mul_si -- multiply a floating-point number by a machine integer
 
-Copyright 1999-2016 Free Software Foundation, Inc.
+Copyright 1999-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/mulders.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/mulders.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/mulders.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* Mulders' MulHigh function (short product)
 
-Copyright 2005-2016 Free Software Foundation, Inc.
+Copyright 2005-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/neg.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/neg.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/neg.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_neg -- change the sign of a floating-point number
 
-Copyright 1999-2001, 2004, 2006-2016 Free Software Foundation, Inc.
+Copyright 1999-2001, 2004, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/next.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/next.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/next.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,7 +1,7 @@
 /* mpfr_nextabove, mpfr_nextbelow, mpfr_nexttoward -- next representable
 floating-point number
 
-Copyright 1999, 2001-2016 Free Software Foundation, Inc.
+Copyright 1999, 2001-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/out_str.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/out_str.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/out_str.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_out_str -- output a floating-point number to a stream
 
-Copyright 1999, 2001-2002, 2004, 2006-2016 Free Software Foundation, Inc.
+Copyright 1999, 2001-2002, 2004, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/pow.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/pow.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/pow.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_pow -- power function x^y
 
-Copyright 2001-2016 Free Software Foundation, Inc.
+Copyright 2001-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/pow_si.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/pow_si.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/pow_si.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_pow_si -- power function x^y with y a signed int
 
-Copyright 2001-2016 Free Software Foundation, Inc.
+Copyright 2001-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/pow_ui.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/pow_ui.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/pow_ui.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,7 +1,7 @@
 /* mpfr_pow_ui-- compute the power of a floating-point
                                   by a machine integer
 
-Copyright 1999-2016 Free Software Foundation, Inc.
+Copyright 1999-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/pow_z.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/pow_z.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/pow_z.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_pow_z -- power function x^z with z a MPZ
 
-Copyright 2005-2016 Free Software Foundation, Inc.
+Copyright 2005-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/powerof2.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/powerof2.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/powerof2.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_powerof2_raw -- test whether a floating-point number is a power of 2
 
-Copyright 2002-2016 Free Software Foundation, Inc.
+Copyright 2002-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/powerpc32/mparam.h
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/powerpc32/mparam.h	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/powerpc32/mparam.h	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* Various Thresholds of MPFR, not exported.  -*- mode: C -*-
 
-Copyright 2005-2016 Free Software Foundation, Inc.
+Copyright 2005-2017 Free Software Foundation, Inc.
 
 This file is part of the GNU MPFR Library.
 

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/powerpc64/mparam.h
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/powerpc64/mparam.h	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/powerpc64/mparam.h	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* Various Thresholds of MPFR, not exported.  -*- mode: C -*-
 
-Copyright 2005-2016 Free Software Foundation, Inc.
+Copyright 2005-2017 Free Software Foundation, Inc.
 
 This file is part of the GNU MPFR Library.
 

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/print_raw.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/print_raw.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/print_raw.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,7 +1,7 @@
 /* mpfr_print_binary -- print the internal binary representation of a
                      floating-point number
 
-Copyright 1999-2016 Free Software Foundation, Inc.
+Copyright 1999-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/print_rnd_mode.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/print_rnd_mode.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/print_rnd_mode.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_print_rnd_mode -- convert a given rounding mode to a string
 
-Copyright 1999, 2001-2004, 2006-2016 Free Software Foundation, Inc.
+Copyright 1999, 2001-2004, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/printf.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/printf.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/printf.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_printf -- printf function and friends.
 
-Copyright 2007-2016 Free Software Foundation, Inc.
+Copyright 2007-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.
@@ -40,7 +40,6 @@
 # endif /* HAVE___VA_COPY */
 #endif /* HAVE_VA_COPY */
 
-#include <errno.h>
 #include "mpfr-impl.h"
 
 #ifdef _MPFR_H_HAVE_FILE

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/rec_sqrt.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/rec_sqrt.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/rec_sqrt.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_rec_sqrt -- inverse square root
 
-Copyright 2008-2016 Free Software Foundation, Inc.
+Copyright 2008-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/reldiff.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/reldiff.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/reldiff.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_reldiff -- compute relative difference of two floating-point numbers.
 
-Copyright 2000-2001, 2004-2016 Free Software Foundation, Inc.
+Copyright 2000-2001, 2004-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/rem1.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/rem1.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/rem1.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -2,7 +2,7 @@
    mpfr_fmod -- compute the floating-point remainder of x/y
    mpfr_remquo and mpfr_remainder -- argument reduction functions
 
-Copyright 2007-2016 Free Software Foundation, Inc.
+Copyright 2007-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/rint.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/rint.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/rint.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_rint -- Round to an integer.
 
-Copyright 1999-2016 Free Software Foundation, Inc.
+Copyright 1999-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/root.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/root.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/root.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_root -- kth root.
 
-Copyright 2005-2016 Free Software Foundation, Inc.
+Copyright 2005-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/round_near_x.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/round_near_x.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/round_near_x.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_round_near_x -- Round a floating point number nears another one.
 
-Copyright 2005-2016 Free Software Foundation, Inc.
+Copyright 2005-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/round_p.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/round_p.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/round_p.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_round_p -- check if an approximation is roundable.
 
-Copyright 2005-2016 Free Software Foundation, Inc.
+Copyright 2005-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/round_prec.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/round_prec.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/round_prec.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,7 +1,7 @@
 /* mpfr_round_raw_generic, mpfr_round_raw2, mpfr_round_raw, mpfr_prec_round,
    mpfr_can_round, mpfr_can_round_raw -- various rounding functions
 
-Copyright 1999-2016 Free Software Foundation, Inc.
+Copyright 1999-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/round_raw_generic.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/round_raw_generic.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/round_raw_generic.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_round_raw_generic -- Generic rounding function
 
-Copyright 1999-2016 Free Software Foundation, Inc.
+Copyright 1999-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/scale2.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/scale2.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/scale2.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_scale2 -- multiply a double float by 2^exp
 
-Copyright 1999-2016 Free Software Foundation, Inc.
+Copyright 1999-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/sec.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/sec.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/sec.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_sec - secant function = 1/cos.
 
-Copyright 2005-2016 Free Software Foundation, Inc.
+Copyright 2005-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/sech.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/sech.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/sech.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_sech - Hyperbolic secant function = 1/cosh.
 
-Copyright 2005-2016 Free Software Foundation, Inc.
+Copyright 2005-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/set.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/set.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/set.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_set -- copy of a floating-point number
 
-Copyright 1999, 2001-2016 Free Software Foundation, Inc.
+Copyright 1999, 2001-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/set_d.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/set_d.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/set_d.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,7 +1,7 @@
 /* mpfr_set_d -- convert a machine double precision float to
                  a multiple precision floating-point number
 
-Copyright 1999-2004, 2006-2016 Free Software Foundation, Inc.
+Copyright 1999-2004, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/set_d64.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/set_d64.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/set_d64.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -5,7 +5,7 @@
 http://gcc.gnu.org/onlinedocs/gcc/Decimal-Float.html,
 and TR 24732 <http://www.open-std.org/jtc1/sc22/wg14/www/projects#24732>.
 
-Copyright 2006-2016 Free Software Foundation, Inc.
+Copyright 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/set_dfl_prec.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/set_dfl_prec.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/set_dfl_prec.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_set_default_prec, mpfr_get_default_prec -- set/get default precision
 
-Copyright 1999-2001, 2004-2016 Free Software Foundation, Inc.
+Copyright 1999-2001, 2004-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.
@@ -23,16 +23,9 @@
 #include "mpfr-impl.h"
 
 /* default is IEEE double precision, i.e. 53 bits */
-MPFR_THREAD_ATTR mpfr_prec_t __gmpfr_default_fp_bit_precision \
-  = IEEE_DBL_MANT_DIG;
+MPFR_THREAD_VAR (mpfr_prec_t, __gmpfr_default_fp_bit_precision,
+                 IEEE_DBL_MANT_DIG)
 
-#ifdef MPFR_WIN_THREAD_SAFE_DLL
-mpfr_prec_t * __gmpfr_default_fp_bit_precision_f()
-{
-  return &__gmpfr_default_fp_bit_precision;
-}
-#endif
-
 void
 mpfr_set_default_prec (mpfr_prec_t prec)
 {

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/set_exp.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/set_exp.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/set_exp.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_set_exp - set the exponent of a floating-point number
 
-Copyright 2002-2004, 2006-2016 Free Software Foundation, Inc.
+Copyright 2002-2004, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/set_f.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/set_f.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/set_f.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_set_f -- set a MPFR number from a GNU MPF number
 
-Copyright 1999-2016 Free Software Foundation, Inc.
+Copyright 1999-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/set_flt.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/set_flt.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/set_flt.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_set_flt -- convert a machine single precision float to mpfr_t
 
-Copyright 2009-2016 Free Software Foundation, Inc.
+Copyright 2009-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/set_inf.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/set_inf.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/set_inf.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_set_inf -- set a number to plus or minus infinity.
 
-Copyright 2002, 2004, 2006-2016 Free Software Foundation, Inc.
+Copyright 2002, 2004, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/set_ld.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/set_ld.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/set_ld.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,7 +1,7 @@
 /* mpfr_set_ld -- convert a machine long double to
                   a multiple precision floating-point number
 
-Copyright 2002-2016 Free Software Foundation, Inc.
+Copyright 2002-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/set_nan.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/set_nan.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/set_nan.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_set_nan -- set a number to NaN.
 
-Copyright 2002, 2006-2016 Free Software Foundation, Inc.
+Copyright 2002, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/set_prc_raw.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/set_prc_raw.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/set_prc_raw.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_set_prec_raw -- reset the precision of a floating-point number
 
-Copyright 2000-2001, 2004, 2006-2016 Free Software Foundation, Inc.
+Copyright 2000-2001, 2004, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/set_prec.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/set_prec.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/set_prec.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_set_prec -- reset the precision of a floating-point number
 
-Copyright 1999, 2001-2002, 2004, 2006-2016 Free Software Foundation, Inc.
+Copyright 1999, 2001-2002, 2004, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/set_q.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/set_q.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/set_q.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_set_q -- set a floating-point number from a multiple-precision rational
 
-Copyright 2000-2002, 2004-2016 Free Software Foundation, Inc.
+Copyright 2000-2002, 2004-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/set_rnd.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/set_rnd.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/set_rnd.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,7 +1,7 @@
 /* mpfr_set_default_rounding_mode -- set the default rounding mode
    mpfr_get_default_rounding_mode -- get the default rounding mode
 
-Copyright 1999, 2001, 2004-2016 Free Software Foundation, Inc.
+Copyright 1999, 2001, 2004-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.
@@ -23,16 +23,8 @@
 
 #include "mpfr-impl.h"
 
-MPFR_THREAD_ATTR mpfr_rnd_t __gmpfr_default_rounding_mode = MPFR_RNDN;
+MPFR_THREAD_VAR (mpfr_rnd_t, __gmpfr_default_rounding_mode, MPFR_RNDN)
 
-#ifdef MPFR_WIN_THREAD_SAFE_DLL
-mpfr_rnd_t *
-__gmpfr_default_rounding_mode_f()
-{
-  return &__gmpfr_default_rounding_mode;
-}
-#endif
-
 void
 mpfr_set_default_rounding_mode (mpfr_rnd_t rnd_mode)
 {

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/set_si.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/set_si.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/set_si.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_set_si -- set a MPFR number from a machine signed integer
 
-Copyright 1999-2016 Free Software Foundation, Inc.
+Copyright 1999-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/set_si_2exp.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/set_si_2exp.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/set_si_2exp.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,7 +1,7 @@
 /* mpfr_set_si_2exp -- set a MPFR number from a machine signed integer with
    a shift
 
-Copyright 2004, 2006-2016 Free Software Foundation, Inc.
+Copyright 2004, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/set_sj.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/set_sj.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/set_sj.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_set_sj -- set a MPFR number from a huge machine signed integer
 
-Copyright 2004-2016 Free Software Foundation, Inc.
+Copyright 2004-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/set_str.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/set_str.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/set_str.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_set_str -- set a floating-point number from a string
 
-Copyright 2000-2016 Free Software Foundation, Inc.
+Copyright 2000-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/set_str_raw.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/set_str_raw.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/set_str_raw.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_set_str_binary -- set a floating-point number from a binary string
 
-Copyright 1999-2016 Free Software Foundation, Inc.
+Copyright 1999-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/set_ui.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/set_ui.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/set_ui.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_set_ui -- set a MPFR number from a machine unsigned integer
 
-Copyright 1999-2016 Free Software Foundation, Inc.
+Copyright 1999-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/set_ui_2exp.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/set_ui_2exp.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/set_ui_2exp.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,7 +1,7 @@
 /* mpfr_set_ui_2exp -- set a MPFR number from a machine unsigned integer with
    a shift
 
-Copyright 2004, 2006-2016 Free Software Foundation, Inc.
+Copyright 2004, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/set_uj.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/set_uj.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/set_uj.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_set_uj -- set a MPFR number from a huge machine unsigned integer
 
-Copyright 2004-2016 Free Software Foundation, Inc.
+Copyright 2004-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/set_z.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/set_z.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/set_z.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_set_z -- set a floating-point number from a multiple-precision integer
 
-Copyright 1999-2016 Free Software Foundation, Inc.
+Copyright 1999-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/set_z_exp.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/set_z_exp.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/set_z_exp.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,7 +1,7 @@
 /* mpfr_set_z_2exp -- set a floating-point number from a multiple-precision
                       integer and an exponent
 
-Copyright 1999-2016 Free Software Foundation, Inc.
+Copyright 1999-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/set_zero.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/set_zero.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/set_zero.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_set_zero -- set a number to plus or minus zero.
 
-Copyright 2009-2016 Free Software Foundation, Inc.
+Copyright 2009-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/setmax.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/setmax.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/setmax.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_setmax -- maximum representable floating-point number (raw version)
 
-Copyright 2002-2004, 2006-2016 Free Software Foundation, Inc.
+Copyright 2002-2004, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/setmin.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/setmin.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/setmin.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_setmin -- minimum representable floating-point number (raw version)
 
-Copyright 2002-2004, 2006-2016 Free Software Foundation, Inc.
+Copyright 2002-2004, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/setsign.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/setsign.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/setsign.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_setsign -- Produce a value with the magnitude of x and sign bit s
 
-Copyright 2007-2016 Free Software Foundation, Inc.
+Copyright 2007-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/sgn.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/sgn.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/sgn.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_sgn -- Sign of a floating point number.
 
-Copyright 2003-2004, 2006-2016 Free Software Foundation, Inc.
+Copyright 2003-2004, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/si_op.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/si_op.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/si_op.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -2,7 +2,7 @@
    mpfr_sub_si -- sub  a floating-point number with a machine integer
    mpfr_si_sub -- sub  a machine number with a floating-point number
 
-Copyright 2004-2016 Free Software Foundation, Inc.
+Copyright 2004-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/signbit.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/signbit.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/signbit.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_signbit -- Signbit of a MPFR number
 
-Copyright 2007-2016 Free Software Foundation, Inc.
+Copyright 2007-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/sin.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/sin.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/sin.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_sin -- sine of a floating-point number
 
-Copyright 2001-2016 Free Software Foundation, Inc.
+Copyright 2001-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/sin_cos.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/sin_cos.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/sin_cos.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_sin_cos -- sine and cosine of a floating-point number
 
-Copyright 2002-2016 Free Software Foundation, Inc.
+Copyright 2002-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.
@@ -350,10 +350,12 @@
          which reduces to T[k] = (2*i+2)*(2*i+3)*2^r-pp,
          Q[k] = (2*i)*(2*i+1)*(2*i+2)*(2*i+3). */
       log2_nb_terms[k] = 1;
-      mpz_set_ui (Q[k], (2 * i + 2) * (2 * i + 3));
+      mpz_set_ui (Q[k], 2 * i + 2);
+      mpz_mul_ui (Q[k], Q[k], 2 * i + 3);
       mpz_mul_2exp (T[k], Q[k], r);
       mpz_sub (T[k], T[k], pp);
-      mpz_mul_ui (Q[k], Q[k], (2 * i) * (2 * i + 1));
+      mpz_mul_ui (Q[k], Q[k], 2 * i);
+      mpz_mul_ui (Q[k], Q[k], 2 * i + 1);
       /* the next term of the series is divided by Q[k] and multiplied
          by pp^2/2^(2r), thus the mult. factor < 1/2^mult[k] */
       mult[k] = mpz_sizeinbase (Q[k], 2) + 2 * r - size_ptoj[1] - 1;

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/sinh.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/sinh.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/sinh.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_sinh -- hyperbolic sine
 
-Copyright 2001-2016 Free Software Foundation, Inc.
+Copyright 2001-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/sinh_cosh.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/sinh_cosh.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/sinh_cosh.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_sinh_cosh -- hyperbolic sine and cosine
 
-Copyright 2001-2016 Free Software Foundation, Inc.
+Copyright 2001-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/sparc64/mparam.h
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/sparc64/mparam.h	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/sparc64/mparam.h	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* Various Thresholds of MPFR, not exported.  -*- mode: C -*-
 
-Copyright 2005-2016 Free Software Foundation, Inc.
+Copyright 2005-2017 Free Software Foundation, Inc.
 
 This file is part of the GNU MPFR Library.
 

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/sqr.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/sqr.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/sqr.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_sqr -- Floating square
 
-Copyright 2004-2016 Free Software Foundation, Inc.
+Copyright 2004-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/sqrt.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/sqrt.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/sqrt.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_sqrt -- square root of a floating-point number
 
-Copyright 1999-2016 Free Software Foundation, Inc.
+Copyright 1999-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/sqrt_ui.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/sqrt_ui.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/sqrt_ui.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_sqrt_ui -- square root of a machine integer
 
-Copyright 2000-2004, 2006-2016 Free Software Foundation, Inc.
+Copyright 2000-2004, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/stack_interface.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/stack_interface.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/stack_interface.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_stack -- initialize a floating-point number with given allocation area
 
-Copyright 2005-2016 Free Software Foundation, Inc.
+Copyright 2005-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/strtofr.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/strtofr.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/strtofr.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_strtofr -- set a floating-point number from a string
 
-Copyright 2004-2016 Free Software Foundation, Inc.
+Copyright 2004-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.
@@ -743,11 +743,14 @@
          of the pstr_size most significant digits of pstr->mant, with
          equality in case exact is non-zero. */
 
-      /* test if rounding is possible, and if so exit the loop */
-      if (exact || mpfr_can_round_raw (result, ysize,
-                                       (pstr->negative) ? -1 : 1,
-                                       ysize_bits - err - 1,
-                                       MPFR_RNDN, rnd, MPFR_PREC(x)))
+      /* test if rounding is possible, and if so exit the loop.
+         Note: we also need to be able to determine the correct ternary value,
+         thus we use the MPFR_PREC(x) + (rnd == MPFR_RNDN) trick.
+         For example if result = xxx...xxx111...111 and rnd = RNDN,
+         then we know the correct rounding is xxx...xx(x+1), but we cannot know
+         the correct ternary value. */
+      if (exact || mpfr_round_p (result, ysize, ysize_bits - err - 1,
+                                 MPFR_PREC(x) + (rnd == MPFR_RNDN)))
         break;
 
     next_loop:

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/sub.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/sub.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/sub.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_sub -- subtract two floating-point numbers
 
-Copyright 2001-2004, 2006-2016 Free Software Foundation, Inc.
+Copyright 2001-2004, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/sub1.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/sub1.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/sub1.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_sub1 -- internal function to perform a "real" subtraction
 
-Copyright 2001-2016 Free Software Foundation, Inc.
+Copyright 2001-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/sub1sp.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/sub1sp.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/sub1sp.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,7 +1,7 @@
 /* mpfr_sub1sp -- internal function to perform a "real" substraction
    All the op must have the same precision
 
-Copyright 2003-2016 Free Software Foundation, Inc.
+Copyright 2003-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/sub_d.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/sub_d.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/sub_d.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,7 +1,7 @@
 /* mpfr_sub_d -- subtract a machine double precision float from
                  a multiple precision floating-point number
 
-Copyright 2007-2016 Free Software Foundation, Inc.
+Copyright 2007-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/sub_ui.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/sub_ui.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/sub_ui.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_sub_ui -- subtract a floating-point number and a machine integer
 
-Copyright 2000-2016 Free Software Foundation, Inc.
+Copyright 2000-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/subnormal.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/subnormal.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/subnormal.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,7 +1,7 @@
 /* mpfr_subnormalize -- Subnormalize a floating point number
    emulating sub-normal numbers.
 
-Copyright 2005-2016 Free Software Foundation, Inc.
+Copyright 2005-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/sum.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/sum.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/sum.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* Sum -- efficiently sum a list of floating-point numbers
 
-Copyright 2004-2016 Free Software Foundation, Inc.
+Copyright 2004-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.
@@ -24,6 +24,14 @@
    summation with application to computational geometry, Numerical Algorithms,
    volume 37, number 1-4, pages 101--112, 2004. */
 
+/* Note about the 3.1 branch and earlier: the "const" in the prototypes of
+   mpfr_sum and related functions is in an incorrect position. This bug is
+   present in the source only (since r3642); the MPFR manual is correct.
+   This is fixed in the trunk for the future MPFR 4.0.0. Let's not change
+   the 3.1 branch as it may be seen as an ABI breakage and this bug does
+   not have any consequence for the API.
+*/
+
 #define MPFR_NEED_LONGLONG_H
 #include "mpfr-impl.h"
 

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/swap.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/swap.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/swap.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_swap (U, V) -- Swap U and V.
 
-Copyright 2000-2004, 2006-2016 Free Software Foundation, Inc.
+Copyright 2000-2004, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/tan.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/tan.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/tan.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_tan -- tangent of a floating-point number
 
-Copyright 2001-2016 Free Software Foundation, Inc.
+Copyright 2001-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/tanh.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/tanh.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/tanh.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_tanh -- hyperbolic tangent
 
-Copyright 2001-2016 Free Software Foundation, Inc.
+Copyright 2001-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/uceil_exp2.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/uceil_exp2.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/uceil_exp2.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* __gmpfr_ceil_exp2 - returns y >= 2^d
 
-Copyright 1999-2004, 2006-2016 Free Software Foundation, Inc.
+Copyright 1999-2004, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/uceil_log2.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/uceil_log2.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/uceil_log2.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* __gmpfr_ceil_log2 - returns ceil(log(d)/log(2))
 
-Copyright 1999-2004, 2006-2016 Free Software Foundation, Inc.
+Copyright 1999-2004, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/ufloor_log2.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/ufloor_log2.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/ufloor_log2.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* __gmpfr_floor_log2 - returns floor(log(d)/log(2))
 
-Copyright 1999-2004, 2006-2016 Free Software Foundation, Inc.
+Copyright 1999-2004, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/ui_div.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/ui_div.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/ui_div.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,7 +1,7 @@
 /* mpfr_ui_div -- divide a machine integer by a floating-point number
    mpfr_si_div -- divide a machine number by a floating-point number
 
-Copyright 2000-2016 Free Software Foundation, Inc.
+Copyright 2000-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/ui_pow.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/ui_pow.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/ui_pow.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_ui_pow -- power of n function n^x
 
-Copyright 2001-2004, 2006-2016 Free Software Foundation, Inc.
+Copyright 2001-2004, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/ui_pow_ui.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/ui_pow_ui.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/ui_pow_ui.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /*  mpfr_ui_pow_ui -- compute the power beetween two machine integer
 
-Copyright 1999-2016 Free Software Foundation, Inc.
+Copyright 1999-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/ui_sub.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/ui_sub.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/ui_sub.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_ui_sub -- subtract a floating-point number from an integer
 
-Copyright 2000-2016 Free Software Foundation, Inc.
+Copyright 2000-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/urandom.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/urandom.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/urandom.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -2,7 +2,7 @@
    real number between 0 and 1 (exclusive) and round it to the precision of rop
    according to the given rounding mode.
 
-Copyright 2000-2004, 2006-2016 Free Software Foundation, Inc.
+Copyright 2000-2004, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.
@@ -37,7 +37,26 @@
   return r & MPFR_LIMB_ONE;
 }
 
+/* NOTE: The current behavior is to consider "underflow before rounding"
+   (the significand does not need to be drawn), while the rule in MPFR
+   is "underflow after rounding". This is unfixable in this 3.1 branch
+   without changing the behavior of the PRNG (thus breaking the ABI). */
 
+/* The mpfr_urandom() function is implemented in the following way for
+   the generic case.
+   1. One determines the exponent exp: 0 with probability 1/2, -1 with
+      probability 1/4, -2 with probability 1/8, etc.
+   2. One draws a 1-ulp interval ]a,b[ containing the exact result (the
+      interval can be regarded as open since it has the same measure as
+      the closed interval).
+   3. Rounding is done. For the directed rounding modes, the rounded value
+      is uniquely determined. For rounding to nearest, ]a,m[ and ]m,b[,
+      where m = (a+b)/2, have the same measure, so that one gets a or b
+      with equal probabilities.
+   Note: Only low-level functions are used (except just before a "return"),
+   so that we do not need MPFR_SAVE_EXPO_*.
+*/
+
 int
 mpfr_urandom (mpfr_ptr rop, gmp_randstate_t rstate, mpfr_rnd_t rnd_mode)
 {
@@ -46,33 +65,39 @@
   mp_size_t nlimbs;
   mp_size_t n;
   mpfr_exp_t exp;
-  mpfr_exp_t emin;
   int cnt;
   int inex;
 
   rp = MPFR_MANT (rop);
   nbits = MPFR_PREC (rop);
-  nlimbs = MPFR_LIMB_SIZE (rop);
   MPFR_SET_POS (rop);
-  exp = 0;
-  emin = mpfr_get_emin ();
-  if (MPFR_UNLIKELY (emin > 0))
+
+  if (MPFR_UNLIKELY (__gmpfr_emin > 0))
     {
+      /* The minimum positive representable number 2^(emin-1) is >= 1,
+         so that we need to round to +0 or 2^(emin-1). For the directed
+         rounding modes, the rounded value is uniquely determined. For
+         rounding to nearest: if emin = 1, one has probability 1/2 for
+         each; otherwise (i.e. if emin > 1), the rounded value is 0. */
+      __gmpfr_flags |= MPFR_FLAGS_UNDERFLOW;
       if (rnd_mode == MPFR_RNDU || rnd_mode == MPFR_RNDA
-          || (emin == 1 && rnd_mode == MPFR_RNDN
+          || (__gmpfr_emin == 1 && rnd_mode == MPFR_RNDN
               && random_rounding_bit (rstate)))
         {
-          mpfr_set_ui_2exp (rop, 1, emin - 1, rnd_mode);
-          return +1;
+          mpfr_set_ui_2exp (rop, 1, __gmpfr_emin - 1, rnd_mode);
+          MPFR_RET (+1);
         }
       else
         {
           MPFR_SET_ZERO (rop);
-          return -1;
+          MPFR_RET (-1);
         }
     }
 
-  /* Exponent */
+  exp = 0;
+  MPFR_ASSERTD (exp >= __gmpfr_emin);
+
+  /* Step 1 (exponent). */
 #define DRAW_BITS 8 /* we draw DRAW_BITS at a time */
   cnt = DRAW_BITS;
   MPFR_ASSERTN(DRAW_BITS <= GMP_NUMB_BITS);
@@ -87,44 +112,51 @@
           count_leading_zeros (cnt, rp[0]);
           cnt -= GMP_NUMB_BITS - DRAW_BITS;
         }
+      exp -= cnt;  /* no integer overflow */
 
-      if (MPFR_UNLIKELY (exp < emin + cnt))
+      if (MPFR_UNLIKELY (exp < __gmpfr_emin))
         {
           /* To get here, we have been drawing more than -emin zeros
              in a row, then return 0 or the smallest representable
              positive number.
 
-             The rounding to nearest mode is subtle:
-             If exp - cnt == emin - 1, the rounding bit is set, except
-             if cnt == DRAW_BITS in which case the rounding bit is
-             outside rp[0] and must be generated. */
+             The rounding-to-nearest mode is subtle: We need to round to
+             the smallest representable positive number iff the exponent
+             is emin - 1. This condition can be satisfied only if the
+             current emin is emin - 1. In this case, if cnt != DRAW_BITS,
+             this in the final emin, so that the condition is satisfied.
+             But if cnt == DRAW_BITS, we need to draw an additional bit
+             to determine whether emin == emin - 1 or emin < emin - 1
+             (with equal probabilities); the reason is that we return
+             just below instead of doing more iterations in the "while"
+             loop to find the final value of emin. */
+          __gmpfr_flags |= MPFR_FLAGS_UNDERFLOW;
           if (rnd_mode == MPFR_RNDU || rnd_mode == MPFR_RNDA
-              || (rnd_mode == MPFR_RNDN && cnt == exp - emin - 1
+              || (rnd_mode == MPFR_RNDN && exp == __gmpfr_emin - 1
                   && (cnt != DRAW_BITS || random_rounding_bit (rstate))))
             {
-              mpfr_set_ui_2exp (rop, 1, emin - 1, rnd_mode);
-              return +1;
+              mpfr_set_ui_2exp (rop, 1, __gmpfr_emin - 1, rnd_mode);
+              MPFR_RET (+1);
             }
           else
             {
               MPFR_SET_ZERO (rop);
-              return -1;
+              MPFR_RET (-1);
             }
         }
-      exp -= cnt;
+      MPFR_ASSERTD (exp >= __gmpfr_emin);
     }
-  MPFR_EXP (rop) = exp; /* Warning: may be outside the current
-                           exponent range */
 
+  MPFR_ASSERTD (exp >= __gmpfr_emin);
+  MPFR_EXP (rop) = exp; /* Warning: may be larger than emax */
 
-  /* Significand: we need generate only nbits-1 bits, since the most
-     significant is 1 */
+  /* Step 2 (significand): we need generate only nbits-1 bits, since the
+     most significant bit is 1. */
   mpfr_rand_raw (rp, rstate, nbits - 1);
+  nlimbs = MPFR_LIMB_SIZE (rop);
   n = nlimbs * GMP_NUMB_BITS - nbits;
   if (MPFR_LIKELY (n != 0)) /* this will put the low bits to zero */
     mpn_lshift (rp, rp, nlimbs, n);
-
-  /* Set the msb to 1 since it was fixed by the exponent choice */
   rp[nlimbs - 1] |= MPFR_LIMB_HIGHBIT;
 
   /* Rounding */
@@ -131,14 +163,13 @@
   if (rnd_mode == MPFR_RNDU || rnd_mode == MPFR_RNDA
       || (rnd_mode == MPFR_RNDN && random_rounding_bit (rstate)))
     {
-      /* Take care of the exponent range: it may have been reduced */
-      if (exp < emin)
-        mpfr_set_ui_2exp (rop, 1, emin - 1, rnd_mode);
-      else if (exp > mpfr_get_emax ())
-        mpfr_set_inf (rop, +1); /* overflow, flag set by mpfr_check_range */
+      if (MPFR_UNLIKELY (exp > __gmpfr_emax))
+        mpfr_set_inf (rop, +1);  /* overflow */
       else
         mpfr_nextabove (rop);
       inex = +1;
+      /* There is an overflow in the first case and possibly in the second
+         case. If this occurs, the flag will be set by mpfr_check_range. */
     }
   else
     inex = -1;

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/urandomb.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/urandomb.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/urandomb.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -3,7 +3,7 @@
    using STATE as the random state previously initialized by a call to
    gmp_randinit_lc_2exp_size().
 
-Copyright 2000-2004, 2006-2016 Free Software Foundation, Inc.
+Copyright 2000-2004, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/vasprintf.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/vasprintf.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/vasprintf.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,7 +1,7 @@
 /* mpfr_vasprintf -- main function for the printf functions family
    plus helper macros & functions.
 
-Copyright 2007-2016 Free Software Foundation, Inc.
+Copyright 2007-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.
@@ -52,6 +52,8 @@
 #include <stddef.h>             /* for ptrdiff_t */
 #endif
 
+#include <errno.h>
+
 #define MPFR_NEED_LONGLONG_H
 #include "mpfr-intmax.h"
 #include "mpfr-impl.h"
@@ -1452,7 +1454,7 @@
                   struct printf_spec spec)
 {
   char *str;
-  long total;
+  unsigned int total;  /* can hold the sum of two non-negative int's + 1 */
   int uppercase;
 
   /* WARNING: left justification means right space padding */
@@ -1593,7 +1595,7 @@
         }
       else if (spec.spec == 'f' || spec.spec == 'F')
         {
-          if (spec.prec == -1)
+          if (spec.prec < 0)
             spec.prec = 6;
           if (regular_fg (np, p, spec, NULL) == -1)
             goto error;
@@ -1645,34 +1647,32 @@
 
   /* compute the number of characters to be written verifying it is not too
      much */
+
+#define INCR_TOTAL(v)                           \
+  do {                                          \
+    MPFR_ASSERTD ((v) >= 0);                    \
+    if (MPFR_UNLIKELY ((v) > INT_MAX))          \
+      goto error;                               \
+    total += (v);                               \
+    if (MPFR_UNLIKELY (total > INT_MAX))        \
+      goto error;                               \
+  } while (0)
+
   total = np->sign ? 1 : 0;
-  total += np->prefix_size;
-  total += np->ip_size;
-  if (MPFR_UNLIKELY (total < 0 || total > INT_MAX))
-    goto error;
-  total += np->ip_trailing_zeros;
-  if (MPFR_UNLIKELY (total < 0 || total > INT_MAX))
-    goto error;
+  INCR_TOTAL (np->prefix_size);
+  INCR_TOTAL (np->ip_size);
+  INCR_TOTAL (np->ip_trailing_zeros);
+  MPFR_ASSERTD (np->ip_size + np->ip_trailing_zeros >= 1);
   if (np->thousands_sep)
     /* ' flag, style f and the thousands separator in current locale is not
        reduced to the null character */
-    total += (np->ip_size + np->ip_trailing_zeros) / 3;
-  if (MPFR_UNLIKELY (total < 0 || total > INT_MAX))
-    goto error;
+    INCR_TOTAL ((np->ip_size + np->ip_trailing_zeros - 1) / 3);
   if (np->point)
     ++total;
-  total += np->fp_leading_zeros;
-  if (MPFR_UNLIKELY (total < 0 || total > INT_MAX))
-    goto error;
-  total += np->fp_size;
-  if (MPFR_UNLIKELY (total < 0 || total > INT_MAX))
-    goto error;
-  total += np->fp_trailing_zeros;
-  if (MPFR_UNLIKELY (total < 0 || total > INT_MAX))
-    goto error;
-  total += np->exp_size;
-  if (MPFR_UNLIKELY (total < 0 || total > INT_MAX))
-    goto error;
+  INCR_TOTAL (np->fp_leading_zeros);
+  INCR_TOTAL (np->fp_size);
+  INCR_TOTAL (np->fp_trailing_zeros);
+  INCR_TOTAL (np->exp_size);
 
   if (spec.width > total)
     /* pad with spaces or zeros depending on np->pad_type */
@@ -1679,9 +1679,11 @@
     {
       np->pad_size = spec.width - total;
       total += np->pad_size; /* here total == spec.width,
-                                so 0 < total < INT_MAX */
+                                so 0 < total <= INT_MAX */
+      MPFR_ASSERTD (total == spec.width);
     }
 
+  MPFR_ASSERTD (total > 0 && total <= INT_MAX);
   return total;
 
  error:

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/version.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/version.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/version.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_get_version -- MPFR version
 
-Copyright 2004-2016 Free Software Foundation, Inc.
+Copyright 2004-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.
@@ -25,5 +25,5 @@
 const char *
 mpfr_get_version (void)
 {
-  return "3.1.5";
+  return "3.1.6";
 }

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/volatile.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/volatile.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/volatile.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -4,7 +4,7 @@
    CERTAIN TO BE SUBJECT TO INCOMPATIBLE CHANGES OR DISAPPEAR COMPLETELY IN
    FUTURE MPFR RELEASES.
 
-Copyright 2003-2004, 2006-2016 Free Software Foundation, Inc.
+Copyright 2003-2004, 2006-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/x86/core2/mparam.h
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/x86/core2/mparam.h	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/x86/core2/mparam.h	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* Various Thresholds of MPFR, not exported.  -*- mode: C -*-
 
-Copyright 2005-2016 Free Software Foundation, Inc.
+Copyright 2005-2017 Free Software Foundation, Inc.
 
 This file is part of the GNU MPFR Library.
 

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/x86/mparam.h
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/x86/mparam.h	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/x86/mparam.h	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* Various Thresholds of MPFR, not exported.  -*- mode: C -*-
 
-Copyright 2005-2016 Free Software Foundation, Inc.
+Copyright 2005-2017 Free Software Foundation, Inc.
 
 This file is part of the GNU MPFR Library.
 

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/x86_64/core2/mparam.h
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/x86_64/core2/mparam.h	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/x86_64/core2/mparam.h	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* Various Thresholds of MPFR, not exported.  -*- mode: C -*-
 
-Copyright 2005-2016 Free Software Foundation, Inc.
+Copyright 2005-2017 Free Software Foundation, Inc.
 
 This file is part of the GNU MPFR Library.
 

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/x86_64/pentium4/mparam.h
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/x86_64/pentium4/mparam.h	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/x86_64/pentium4/mparam.h	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* Various Thresholds of MPFR, not exported.  -*- mode: C -*-
 
-Copyright 2005-2016 Free Software Foundation, Inc.
+Copyright 2005-2017 Free Software Foundation, Inc.
 
 This file is part of the GNU MPFR Library.
 

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/yn.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/yn.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/yn.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,7 +1,7 @@
 /* mpfr_y0, mpfr_y1, mpfr_yn -- Bessel functions of 2nd kind, integer order.
    http://www.opengroup.org/onlinepubs/009695399/functions/y0.html
 
-Copyright 2007-2016 Free Software Foundation, Inc.
+Copyright 2007-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/zeta.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/zeta.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/zeta.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_zeta -- compute the Riemann Zeta function
 
-Copyright 2003-2016 Free Software Foundation, Inc.
+Copyright 2003-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/mpfr-src/src/zeta_ui.c
===================================================================
--- trunk/Build/source/libs/mpfr/mpfr-src/src/zeta_ui.c	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/mpfr-src/src/zeta_ui.c	2017-09-08 06:11:51 UTC (rev 45242)
@@ -1,6 +1,6 @@
 /* mpfr_zeta_ui -- compute the Riemann Zeta function for integer argument.
 
-Copyright 2005-2016 Free Software Foundation, Inc.
+Copyright 2005-2017 Free Software Foundation, Inc.
 Contributed by the AriC and Caramba projects, INRIA.
 
 This file is part of the GNU MPFR Library.

Modified: trunk/Build/source/libs/mpfr/version.ac
===================================================================
--- trunk/Build/source/libs/mpfr/version.ac	2017-09-08 00:17:50 UTC (rev 45241)
+++ trunk/Build/source/libs/mpfr/version.ac	2017-09-08 06:11:51 UTC (rev 45242)
@@ -8,4 +8,4 @@
 dnl --------------------------------------------------------
 dnl
 dnl  m4-include this file to define the current mpfr version
-m4_define([mpfr_version], [3.1.5])
+m4_define([mpfr_version], [3.1.6])



More information about the tex-live-commits mailing list