From e58156d116dca13aa86d034bac79c0fff0298f64 Mon Sep 17 00:00:00 2001 From: Akira Kakuto Date: Fri, 8 Sep 2017 06:11:51 +0000 Subject: mpfr-3.1.6 git-svn-id: svn://tug.org/texlive/trunk@45242 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/libs/mpfr/ChangeLog | 5 + Build/source/libs/mpfr/TLpatches/ChangeLog | 6 + Build/source/libs/mpfr/TLpatches/TL-Changes | 2 +- Build/source/libs/mpfr/TLpatches/patch-01-TL | 12 +- Build/source/libs/mpfr/configure | 20 +- Build/source/libs/mpfr/mpfr-src/BUGS | 2 +- Build/source/libs/mpfr/mpfr-src/ChangeLog | 999 ++++++++++++++++++++- Build/source/libs/mpfr/mpfr-src/INSTALL | 10 +- Build/source/libs/mpfr/mpfr-src/Makefile.am | 2 +- Build/source/libs/mpfr/mpfr-src/NEWS | 10 +- Build/source/libs/mpfr/mpfr-src/README | 2 +- Build/source/libs/mpfr/mpfr-src/TODO | 2 +- Build/source/libs/mpfr/mpfr-src/VERSION | 2 +- Build/source/libs/mpfr/mpfr-src/acinclude.m4 | 2 +- Build/source/libs/mpfr/mpfr-src/configure.ac | 36 +- Build/source/libs/mpfr/mpfr-src/src/Makefile.am | 4 +- .../source/libs/mpfr/mpfr-src/src/abort_prec_max.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/acos.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/acosh.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/add.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/add1.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/add1sp.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/add_d.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/add_ui.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/agm.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/ai.c | 2 +- .../libs/mpfr/mpfr-src/src/amd/amdfam10/mparam.h | 2 +- .../libs/mpfr/mpfr-src/src/amd/athlon/mparam.h | 2 +- .../source/libs/mpfr/mpfr-src/src/amd/k8/mparam.h | 2 +- Build/source/libs/mpfr/mpfr-src/src/arm/mparam.h | 2 +- Build/source/libs/mpfr/mpfr-src/src/asin.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/asinh.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/atan.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/atan2.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/atanh.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/bernoulli.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/buildopt.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/cache.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/cbrt.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/check.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/clear.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/clears.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/cmp.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/cmp2.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/cmp_abs.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/cmp_d.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/cmp_ld.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/cmp_si.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/cmp_ui.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/comparisons.c | 2 +- .../source/libs/mpfr/mpfr-src/src/const_catalan.c | 12 +- Build/source/libs/mpfr/mpfr-src/src/const_euler.c | 12 +- Build/source/libs/mpfr/mpfr-src/src/const_log2.c | 20 +- Build/source/libs/mpfr/mpfr-src/src/const_pi.c | 20 +- Build/source/libs/mpfr/mpfr-src/src/constant.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/copysign.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/cos.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/cosh.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/cot.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/coth.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/csc.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/csch.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/d_div.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/d_sub.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/digamma.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/dim.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/div.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/div_2exp.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/div_2si.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/div_2ui.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/div_d.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/div_ui.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/dump.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/eint.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/eq.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/erf.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/erfc.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/exceptions.c | 15 +- Build/source/libs/mpfr/mpfr-src/src/exp.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/exp10.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/exp2.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/exp3.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/exp_2.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/expm1.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/extract.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/factorial.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/fits_intmax.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/fits_s.h | 2 +- Build/source/libs/mpfr/mpfr-src/src/fits_sint.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/fits_slong.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/fits_sshort.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/fits_u.h | 2 +- Build/source/libs/mpfr/mpfr-src/src/fits_uint.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/fits_uintmax.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/fits_ulong.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/fits_ushort.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/fma.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/fms.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/frac.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/free_cache.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/frexp.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/gamma.c | 2 +- .../source/libs/mpfr/mpfr-src/src/gammaonethird.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/gen_inverse.h | 2 +- .../source/libs/mpfr/mpfr-src/src/generic/mparam.h | 2 +- Build/source/libs/mpfr/mpfr-src/src/get_d.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/get_d64.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/get_exp.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/get_f.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/get_flt.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/get_ld.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/get_patches.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/get_si.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/get_sj.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/get_str.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/get_ui.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/get_uj.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/get_z.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/get_z_exp.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/gmp_op.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/grandom.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/hppa/mparam.h | 2 +- Build/source/libs/mpfr/mpfr-src/src/hypot.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/ia64/mparam.h | 2 +- Build/source/libs/mpfr/mpfr-src/src/ieee_floats.h | 2 +- Build/source/libs/mpfr/mpfr-src/src/init.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/init2.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/inits.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/inits2.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/inp_str.c | 2 +- .../source/libs/mpfr/mpfr-src/src/int_ceil_log2.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/isinf.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/isinteger.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/isnan.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/isnum.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/isqrt.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/isregular.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/iszero.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/jn.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/jyn_asympt.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/li2.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/lngamma.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/log.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/log10.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/log1p.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/log2.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/logging.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/min_prec.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/minmax.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/modf.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/mp_clz_tab.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/mparam_h.in | 2 +- Build/source/libs/mpfr/mpfr-src/src/mpf2mpfr.h | 10 +- Build/source/libs/mpfr/mpfr-src/src/mpfr-gmp.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/mpfr-gmp.h | 4 +- Build/source/libs/mpfr/mpfr-src/src/mpfr-impl.h | 77 +- Build/source/libs/mpfr/mpfr-src/src/mpfr-intmax.h | 2 +- .../source/libs/mpfr/mpfr-src/src/mpfr-longlong.h | 2 +- Build/source/libs/mpfr/mpfr-src/src/mpfr-thread.h | 2 +- Build/source/libs/mpfr/mpfr-src/src/mpfr.h | 6 +- Build/source/libs/mpfr/mpfr-src/src/mpn_exp.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/mul.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/mul_2exp.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/mul_2si.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/mul_2ui.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/mul_d.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/mul_ui.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/mulders.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/neg.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/next.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/out_str.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/pow.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/pow_si.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/pow_ui.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/pow_z.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/powerof2.c | 2 +- .../libs/mpfr/mpfr-src/src/powerpc32/mparam.h | 2 +- .../libs/mpfr/mpfr-src/src/powerpc64/mparam.h | 2 +- Build/source/libs/mpfr/mpfr-src/src/print_raw.c | 2 +- .../source/libs/mpfr/mpfr-src/src/print_rnd_mode.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/printf.c | 3 +- Build/source/libs/mpfr/mpfr-src/src/rec_sqrt.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/reldiff.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/rem1.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/rint.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/root.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/round_near_x.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/round_p.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/round_prec.c | 2 +- .../libs/mpfr/mpfr-src/src/round_raw_generic.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/scale2.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/sec.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/sech.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/set.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/set_d.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/set_d64.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/set_dfl_prec.c | 13 +- Build/source/libs/mpfr/mpfr-src/src/set_exp.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/set_f.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/set_flt.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/set_inf.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/set_ld.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/set_nan.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/set_prc_raw.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/set_prec.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/set_q.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/set_rnd.c | 12 +- Build/source/libs/mpfr/mpfr-src/src/set_si.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/set_si_2exp.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/set_sj.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/set_str.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/set_str_raw.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/set_ui.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/set_ui_2exp.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/set_uj.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/set_z.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/set_z_exp.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/set_zero.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/setmax.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/setmin.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/setsign.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/sgn.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/si_op.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/signbit.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/sin.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/sin_cos.c | 8 +- Build/source/libs/mpfr/mpfr-src/src/sinh.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/sinh_cosh.c | 2 +- .../source/libs/mpfr/mpfr-src/src/sparc64/mparam.h | 2 +- Build/source/libs/mpfr/mpfr-src/src/sqr.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/sqrt.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/sqrt_ui.c | 2 +- .../libs/mpfr/mpfr-src/src/stack_interface.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/strtofr.c | 15 +- Build/source/libs/mpfr/mpfr-src/src/sub.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/sub1.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/sub1sp.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/sub_d.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/sub_ui.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/subnormal.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/sum.c | 10 +- Build/source/libs/mpfr/mpfr-src/src/swap.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/tan.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/tanh.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/uceil_exp2.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/uceil_log2.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/ufloor_log2.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/ui_div.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/ui_pow.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/ui_pow_ui.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/ui_sub.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/urandom.c | 95 +- Build/source/libs/mpfr/mpfr-src/src/urandomb.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/vasprintf.c | 54 +- Build/source/libs/mpfr/mpfr-src/src/version.c | 4 +- Build/source/libs/mpfr/mpfr-src/src/volatile.c | 2 +- .../libs/mpfr/mpfr-src/src/x86/core2/mparam.h | 2 +- Build/source/libs/mpfr/mpfr-src/src/x86/mparam.h | 2 +- .../libs/mpfr/mpfr-src/src/x86_64/core2/mparam.h | 2 +- .../mpfr/mpfr-src/src/x86_64/pentium4/mparam.h | 2 +- Build/source/libs/mpfr/mpfr-src/src/yn.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/zeta.c | 2 +- Build/source/libs/mpfr/mpfr-src/src/zeta_ui.c | 2 +- Build/source/libs/mpfr/version.ac | 2 +- 264 files changed, 1511 insertions(+), 455 deletions(-) (limited to 'Build/source/libs/mpfr') diff --git a/Build/source/libs/mpfr/ChangeLog b/Build/source/libs/mpfr/ChangeLog index ab08c522425..58a877a461c 100644 --- a/Build/source/libs/mpfr/ChangeLog +++ b/Build/source/libs/mpfr/ChangeLog @@ -1,3 +1,8 @@ +2017-09-08 Akira Kakuto + + Import mpfr-3.1.6. + * version.ac: Adjust. + 2016-09-28 Akira Kakuto Import mpfr-3.1.5. diff --git a/Build/source/libs/mpfr/TLpatches/ChangeLog b/Build/source/libs/mpfr/TLpatches/ChangeLog index 57a1fe35fa7..934235b63b1 100644 --- a/Build/source/libs/mpfr/TLpatches/ChangeLog +++ b/Build/source/libs/mpfr/TLpatches/ChangeLog @@ -1,3 +1,9 @@ +2017-09-08 Akira Kakuto + + Imported mpfr-3.1.6 source tree from: + http://ftp.gnu.org/gnu/mpfr/ + * patch-01-TL: Adapted. + 2016-09-28 Akira Kakuto Imported mpfr-3.1.5 source tree from: diff --git a/Build/source/libs/mpfr/TLpatches/TL-Changes b/Build/source/libs/mpfr/TLpatches/TL-Changes index 905356fe133..0ec725be852 100644 --- a/Build/source/libs/mpfr/TLpatches/TL-Changes +++ b/Build/source/libs/mpfr/TLpatches/TL-Changes @@ -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: diff --git a/Build/source/libs/mpfr/TLpatches/patch-01-TL b/Build/source/libs/mpfr/TLpatches/patch-01-TL index e2083f9cbb1..3c63cc76536 100644 --- a/Build/source/libs/mpfr/TLpatches/patch-01-TL +++ b/Build/source/libs/mpfr/TLpatches/patch-01-TL @@ -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 @@ diff -ur mpfr-3.1.5.orig/src/mparam_h.in mpfr-3.1.5/src/mparam_h.in #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__ diff --git a/Build/source/libs/mpfr/configure b/Build/source/libs/mpfr/configure index ea4401361a8..d3d74e0ac86 100755 --- a/Build/source/libs/mpfr/configure +++ b/Build/source/libs/mpfr/configure @@ -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 . # @@ -580,8 +580,8 @@ MAKEFLAGS= # 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@tug.org' PACKAGE_URL='' @@ -1295,7 +1295,7 @@ if test "$ac_init_help" = "long"; then # 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 @@ fi 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 @@ fi 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 @@ cat >config.log <<_ACEOF 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 @@ fi # 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 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # 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 @@ _ACEOF 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\\" diff --git a/Build/source/libs/mpfr/mpfr-src/BUGS b/Build/source/libs/mpfr/mpfr-src/BUGS index 4bea948c2f1..11f4073ebd4 100644 --- a/Build/source/libs/mpfr/mpfr-src/BUGS +++ b/Build/source/libs/mpfr/mpfr-src/BUGS @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/ChangeLog b/Build/source/libs/mpfr/mpfr-src/ChangeLog index 8f8aa3bf351..e82d98e0523 100644 --- a/Build/source/libs/mpfr/mpfr-src/ChangeLog +++ b/Build/source/libs/mpfr/mpfr-src/ChangeLog @@ -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: + +[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 " 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 @@ Changed paths: 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 diff --git a/Build/source/libs/mpfr/mpfr-src/INSTALL b/Build/source/libs/mpfr/mpfr-src/INSTALL index 372a1567086..22436abd879 100644 --- a/Build/source/libs/mpfr/mpfr-src/INSTALL +++ b/Build/source/libs/mpfr/mpfr-src/INSTALL @@ -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 @@ MPFR). 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 @@ Several documents may help you to solve the problem: * the FAQ (either the FAQ.html file distributed with MPFR, or the on-line version , which may be more up-to-date); - * the MPFR web page for this version , + * the MPFR web page for this version , which lists bugs found in this version and provides some patches. If the "configure" fails, please check that the C compiler and its diff --git a/Build/source/libs/mpfr/mpfr-src/Makefile.am b/Build/source/libs/mpfr/mpfr-src/Makefile.am index b089d277fc4..910d28530b2 100644 --- a/Build/source/libs/mpfr/mpfr-src/Makefile.am +++ b/Build/source/libs/mpfr/mpfr-src/Makefile.am @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/NEWS b/Build/source/libs/mpfr/mpfr-src/NEWS index d65b244d3e4..e0768d7b348 100644 --- a/Build/source/libs/mpfr/mpfr-src/NEWS +++ b/Build/source/libs/mpfr/mpfr-src/NEWS @@ -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 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., ############################################################################## +Changes from version 3.1.5 to version 3.1.6: +- Improved MPFR manual. +- Bug fixes (see 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 and ChangeLog file). diff --git a/Build/source/libs/mpfr/mpfr-src/README b/Build/source/libs/mpfr/mpfr-src/README index c38aafc0771..28f9a1de828 100644 --- a/Build/source/libs/mpfr/mpfr-src/README +++ b/Build/source/libs/mpfr/mpfr-src/README @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/TODO b/Build/source/libs/mpfr/mpfr-src/TODO index 8967349ce49..d4628514f00 100644 --- a/Build/source/libs/mpfr/mpfr-src/TODO +++ b/Build/source/libs/mpfr/mpfr-src/TODO @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/VERSION b/Build/source/libs/mpfr/mpfr-src/VERSION index 3ad0595adcc..9cec7165ab0 100644 --- a/Build/source/libs/mpfr/mpfr-src/VERSION +++ b/Build/source/libs/mpfr/mpfr-src/VERSION @@ -1 +1 @@ -3.1.5 +3.1.6 diff --git a/Build/source/libs/mpfr/mpfr-src/acinclude.m4 b/Build/source/libs/mpfr/mpfr-src/acinclude.m4 index aaaefe715c7..69e2e74a648 100644 --- a/Build/source/libs/mpfr/mpfr-src/acinclude.m4 +++ b/Build/source/libs/mpfr/mpfr-src/acinclude.m4 @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/configure.ac b/Build/source/libs/mpfr/mpfr-src/configure.ac index 41a3e1750f1..27c609394c2 100644 --- a/Build/source/libs/mpfr/mpfr-src/configure.ac +++ b/Build/source/libs/mpfr/mpfr-src/configure.ac @@ -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 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., ]) 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 with the mode32 ABI, e.g. "-m32 -mpowerpc64 -mtune=970 -O3"; this 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 @@ error ;; 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). diff --git a/Build/source/libs/mpfr/mpfr-src/src/Makefile.am b/Build/source/libs/mpfr/mpfr-src/src/Makefile.am index 1d28bf1ad0e..982f2db1445 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/Makefile.am +++ b/Build/source/libs/mpfr/mpfr-src/src/Makefile.am @@ -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 @@ libmpfr_la_LIBADD = @LIBOBJS@ # 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 diff --git a/Build/source/libs/mpfr/mpfr-src/src/abort_prec_max.c b/Build/source/libs/mpfr/mpfr-src/src/abort_prec_max.c index 92eb80de35b..85cbcae8aaf 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/abort_prec_max.c +++ b/Build/source/libs/mpfr/mpfr-src/src/abort_prec_max.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/acos.c b/Build/source/libs/mpfr/mpfr-src/src/acos.c index 9dc79eb8a9c..574727dca0e 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/acos.c +++ b/Build/source/libs/mpfr/mpfr-src/src/acos.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/acosh.c b/Build/source/libs/mpfr/mpfr-src/src/acosh.c index 0bfa102e818..a9d422548be 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/acosh.c +++ b/Build/source/libs/mpfr/mpfr-src/src/acosh.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/add.c b/Build/source/libs/mpfr/mpfr-src/src/add.c index a38546b35e9..690f76f5c7a 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/add.c +++ b/Build/source/libs/mpfr/mpfr-src/src/add.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/add1.c b/Build/source/libs/mpfr/mpfr-src/src/add1.c index 9c3f21327f8..7ed4fb1e7c7 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/add1.c +++ b/Build/source/libs/mpfr/mpfr-src/src/add1.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/add1sp.c b/Build/source/libs/mpfr/mpfr-src/src/add1sp.c index c9c92f6cc73..2ffb9a002fc 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/add1sp.c +++ b/Build/source/libs/mpfr/mpfr-src/src/add1sp.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/add_d.c b/Build/source/libs/mpfr/mpfr-src/src/add_d.c index 47a533a79d7..fff08a188f6 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/add_d.c +++ b/Build/source/libs/mpfr/mpfr-src/src/add_d.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/add_ui.c b/Build/source/libs/mpfr/mpfr-src/src/add_ui.c index 700ca6f943c..ef3b5ec923f 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/add_ui.c +++ b/Build/source/libs/mpfr/mpfr-src/src/add_ui.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/agm.c b/Build/source/libs/mpfr/mpfr-src/src/agm.c index cef4b2bc7a9..4e13fb3faa5 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/agm.c +++ b/Build/source/libs/mpfr/mpfr-src/src/agm.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/ai.c b/Build/source/libs/mpfr/mpfr-src/src/ai.c index 313cf98e1b1..ba65851e3a5 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/ai.c +++ b/Build/source/libs/mpfr/mpfr-src/src/ai.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/amd/amdfam10/mparam.h b/Build/source/libs/mpfr/mpfr-src/src/amd/amdfam10/mparam.h index 43bc9164a94..a122a75ce1a 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/amd/amdfam10/mparam.h +++ b/Build/source/libs/mpfr/mpfr-src/src/amd/amdfam10/mparam.h @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/amd/athlon/mparam.h b/Build/source/libs/mpfr/mpfr-src/src/amd/athlon/mparam.h index 39ef0992a55..0712fad52b4 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/amd/athlon/mparam.h +++ b/Build/source/libs/mpfr/mpfr-src/src/amd/athlon/mparam.h @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/amd/k8/mparam.h b/Build/source/libs/mpfr/mpfr-src/src/amd/k8/mparam.h index bd54b7f95d1..0991283f34d 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/amd/k8/mparam.h +++ b/Build/source/libs/mpfr/mpfr-src/src/amd/k8/mparam.h @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/arm/mparam.h b/Build/source/libs/mpfr/mpfr-src/src/arm/mparam.h index 592ef1895c0..63c837c70a5 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/arm/mparam.h +++ b/Build/source/libs/mpfr/mpfr-src/src/arm/mparam.h @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/asin.c b/Build/source/libs/mpfr/mpfr-src/src/asin.c index 9556d2000ec..b0af0c8a651 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/asin.c +++ b/Build/source/libs/mpfr/mpfr-src/src/asin.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/asinh.c b/Build/source/libs/mpfr/mpfr-src/src/asinh.c index f3274bc7a82..3e79bdbbc7a 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/asinh.c +++ b/Build/source/libs/mpfr/mpfr-src/src/asinh.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/atan.c b/Build/source/libs/mpfr/mpfr-src/src/atan.c index cd1875c6d1e..c6df3c7af54 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/atan.c +++ b/Build/source/libs/mpfr/mpfr-src/src/atan.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/atan2.c b/Build/source/libs/mpfr/mpfr-src/src/atan2.c index 02b5654ab69..41d49f25068 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/atan2.c +++ b/Build/source/libs/mpfr/mpfr-src/src/atan2.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/atanh.c b/Build/source/libs/mpfr/mpfr-src/src/atanh.c index 0ad46ecac0a..ec5a6cf6f1f 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/atanh.c +++ b/Build/source/libs/mpfr/mpfr-src/src/atanh.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/bernoulli.c b/Build/source/libs/mpfr/mpfr-src/src/bernoulli.c index b175a65a472..26ecf25bd7c 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/bernoulli.c +++ b/Build/source/libs/mpfr/mpfr-src/src/bernoulli.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/buildopt.c b/Build/source/libs/mpfr/mpfr-src/src/buildopt.c index d25c61e9ff2..471f9e0282a 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/buildopt.c +++ b/Build/source/libs/mpfr/mpfr-src/src/buildopt.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/cache.c b/Build/source/libs/mpfr/mpfr-src/src/cache.c index 1324ccec20c..9c5b73f8dfb 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/cache.c +++ b/Build/source/libs/mpfr/mpfr-src/src/cache.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/cbrt.c b/Build/source/libs/mpfr/mpfr-src/src/cbrt.c index 6a72ba1961f..e991700a632 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/cbrt.c +++ b/Build/source/libs/mpfr/mpfr-src/src/cbrt.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/check.c b/Build/source/libs/mpfr/mpfr-src/src/check.c index 3dec303d064..475e2b06f30 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/check.c +++ b/Build/source/libs/mpfr/mpfr-src/src/check.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/clear.c b/Build/source/libs/mpfr/mpfr-src/src/clear.c index 3b3d4671e3f..135a08ab50d 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/clear.c +++ b/Build/source/libs/mpfr/mpfr-src/src/clear.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/clears.c b/Build/source/libs/mpfr/mpfr-src/src/clears.c index d608f573844..2f96459eefa 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/clears.c +++ b/Build/source/libs/mpfr/mpfr-src/src/clears.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/cmp.c b/Build/source/libs/mpfr/mpfr-src/src/cmp.c index e123453c50f..9dd4db8f6c8 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/cmp.c +++ b/Build/source/libs/mpfr/mpfr-src/src/cmp.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/cmp2.c b/Build/source/libs/mpfr/mpfr-src/src/cmp2.c index 79a5a37c49d..4e5c290178d 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/cmp2.c +++ b/Build/source/libs/mpfr/mpfr-src/src/cmp2.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/cmp_abs.c b/Build/source/libs/mpfr/mpfr-src/src/cmp_abs.c index 0c9d2707598..ca05493fc7e 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/cmp_abs.c +++ b/Build/source/libs/mpfr/mpfr-src/src/cmp_abs.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/cmp_d.c b/Build/source/libs/mpfr/mpfr-src/src/cmp_d.c index 8fd45e9bb8e..04a20238a85 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/cmp_d.c +++ b/Build/source/libs/mpfr/mpfr-src/src/cmp_d.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/cmp_ld.c b/Build/source/libs/mpfr/mpfr-src/src/cmp_ld.c index d0a65889159..d2eda97d09d 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/cmp_ld.c +++ b/Build/source/libs/mpfr/mpfr-src/src/cmp_ld.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/cmp_si.c b/Build/source/libs/mpfr/mpfr-src/src/cmp_si.c index 86b93665d6d..8991949df68 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/cmp_si.c +++ b/Build/source/libs/mpfr/mpfr-src/src/cmp_si.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/cmp_ui.c b/Build/source/libs/mpfr/mpfr-src/src/cmp_ui.c index a186207c5cb..f922623a7cf 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/cmp_ui.c +++ b/Build/source/libs/mpfr/mpfr-src/src/cmp_ui.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/comparisons.c b/Build/source/libs/mpfr/mpfr-src/src/comparisons.c index 3c06b879bd7..daca50c5ccf 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/comparisons.c +++ b/Build/source/libs/mpfr/mpfr-src/src/comparisons.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/const_catalan.c b/Build/source/libs/mpfr/mpfr-src/src/const_catalan.c index 41b6bd97d64..8b03875bf01 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/const_catalan.c +++ b/Build/source/libs/mpfr/mpfr-src/src/const_catalan.c @@ -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,15 +24,7 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., #include "mpfr-impl.h" /* Declare the cache */ -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 +MPFR_DECL_INIT_CACHE (__gmpfr_cache_const_catalan, mpfr_const_catalan_internal) /* Set User Interface */ #undef mpfr_const_catalan diff --git a/Build/source/libs/mpfr/mpfr-src/src/const_euler.c b/Build/source/libs/mpfr/mpfr-src/src/const_euler.c index e00dda53de6..7bd879d4b81 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/const_euler.c +++ b/Build/source/libs/mpfr/mpfr-src/src/const_euler.c @@ -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,15 +24,7 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., #include "mpfr-impl.h" /* Declare the cache */ -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 +MPFR_DECL_INIT_CACHE (__gmpfr_cache_const_euler, mpfr_const_euler_internal) /* Set User Interface */ #undef mpfr_const_euler diff --git a/Build/source/libs/mpfr/mpfr-src/src/const_log2.c b/Build/source/libs/mpfr/mpfr-src/src/const_log2.c index 8496d2d58a3..8c46de2d95a 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/const_log2.c +++ b/Build/source/libs/mpfr/mpfr-src/src/const_log2.c @@ -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,21 +25,11 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., /* 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; -#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 +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 /* Set User interface */ diff --git a/Build/source/libs/mpfr/mpfr-src/src/const_pi.c b/Build/source/libs/mpfr/mpfr-src/src/const_pi.c index 7c555c9eef3..ba9fced04f5 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/const_pi.c +++ b/Build/source/libs/mpfr/mpfr-src/src/const_pi.c @@ -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,21 +24,11 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., /* 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; -#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 +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 /* Set User Interface */ diff --git a/Build/source/libs/mpfr/mpfr-src/src/constant.c b/Build/source/libs/mpfr/mpfr-src/src/constant.c index 7ff8c04dafa..4c41cdc9aa2 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/constant.c +++ b/Build/source/libs/mpfr/mpfr-src/src/constant.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/copysign.c b/Build/source/libs/mpfr/mpfr-src/src/copysign.c index 010675ca4e1..89e768a8889 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/copysign.c +++ b/Build/source/libs/mpfr/mpfr-src/src/copysign.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/cos.c b/Build/source/libs/mpfr/mpfr-src/src/cos.c index b2b864345bc..18968e83231 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/cos.c +++ b/Build/source/libs/mpfr/mpfr-src/src/cos.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/cosh.c b/Build/source/libs/mpfr/mpfr-src/src/cosh.c index 3d3ede4ebc7..3d408cb840e 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/cosh.c +++ b/Build/source/libs/mpfr/mpfr-src/src/cosh.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/cot.c b/Build/source/libs/mpfr/mpfr-src/src/cot.c index 44744f71a7d..eba86c0c2e7 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/cot.c +++ b/Build/source/libs/mpfr/mpfr-src/src/cot.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/coth.c b/Build/source/libs/mpfr/mpfr-src/src/coth.c index 94f664418d9..9d1544b8fe8 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/coth.c +++ b/Build/source/libs/mpfr/mpfr-src/src/coth.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/csc.c b/Build/source/libs/mpfr/mpfr-src/src/csc.c index d1cd63a329c..cd0a274da9f 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/csc.c +++ b/Build/source/libs/mpfr/mpfr-src/src/csc.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/csch.c b/Build/source/libs/mpfr/mpfr-src/src/csch.c index dc46654e5b7..2f76fedffd7 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/csch.c +++ b/Build/source/libs/mpfr/mpfr-src/src/csch.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/d_div.c b/Build/source/libs/mpfr/mpfr-src/src/d_div.c index c7f4d62c532..9c1ea0487a9 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/d_div.c +++ b/Build/source/libs/mpfr/mpfr-src/src/d_div.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/d_sub.c b/Build/source/libs/mpfr/mpfr-src/src/d_sub.c index bad6cf4970c..d9b9685859c 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/d_sub.c +++ b/Build/source/libs/mpfr/mpfr-src/src/d_sub.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/digamma.c b/Build/source/libs/mpfr/mpfr-src/src/digamma.c index 99110e9331b..319eaf22e8b 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/digamma.c +++ b/Build/source/libs/mpfr/mpfr-src/src/digamma.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/dim.c b/Build/source/libs/mpfr/mpfr-src/src/dim.c index 3212f10d5bf..8df76810531 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/dim.c +++ b/Build/source/libs/mpfr/mpfr-src/src/dim.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/div.c b/Build/source/libs/mpfr/mpfr-src/src/div.c index 5d7f2bd49b0..120df1bbfb7 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/div.c +++ b/Build/source/libs/mpfr/mpfr-src/src/div.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/div_2exp.c b/Build/source/libs/mpfr/mpfr-src/src/div_2exp.c index d28e84576f5..276e0d9ecff 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/div_2exp.c +++ b/Build/source/libs/mpfr/mpfr-src/src/div_2exp.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/div_2si.c b/Build/source/libs/mpfr/mpfr-src/src/div_2si.c index b3c877543ab..e4b5d53a0a3 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/div_2si.c +++ b/Build/source/libs/mpfr/mpfr-src/src/div_2si.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/div_2ui.c b/Build/source/libs/mpfr/mpfr-src/src/div_2ui.c index 71ce188c8d7..84942b15faf 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/div_2ui.c +++ b/Build/source/libs/mpfr/mpfr-src/src/div_2ui.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/div_d.c b/Build/source/libs/mpfr/mpfr-src/src/div_d.c index 4d299fd9938..81aae1f1dd5 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/div_d.c +++ b/Build/source/libs/mpfr/mpfr-src/src/div_d.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/div_ui.c b/Build/source/libs/mpfr/mpfr-src/src/div_ui.c index 35764f29f4c..e826a807a32 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/div_ui.c +++ b/Build/source/libs/mpfr/mpfr-src/src/div_ui.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/dump.c b/Build/source/libs/mpfr/mpfr-src/src/dump.c index 7b3c256e33a..b427f80bfcd 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/dump.c +++ b/Build/source/libs/mpfr/mpfr-src/src/dump.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/eint.c b/Build/source/libs/mpfr/mpfr-src/src/eint.c index a5dde78ebbb..c09efe94143 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/eint.c +++ b/Build/source/libs/mpfr/mpfr-src/src/eint.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/eq.c b/Build/source/libs/mpfr/mpfr-src/src/eq.c index f97431bc6f1..7f903c3fdcd 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/eq.c +++ b/Build/source/libs/mpfr/mpfr-src/src/eq.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/erf.c b/Build/source/libs/mpfr/mpfr-src/src/erf.c index 7bf7025098e..24538a6d57c 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/erf.c +++ b/Build/source/libs/mpfr/mpfr-src/src/erf.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/erfc.c b/Build/source/libs/mpfr/mpfr-src/src/erfc.c index c65646cc47f..b2a7151ab0a 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/erfc.c +++ b/Build/source/libs/mpfr/mpfr-src/src/erfc.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/exceptions.c b/Build/source/libs/mpfr/mpfr-src/src/exceptions.c index ad8beb2c464..e250be0a537 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/exceptions.c +++ b/Build/source/libs/mpfr/mpfr-src/src/exceptions.c @@ -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,16 +22,9 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., #include "mpfr-impl.h" -MPFR_THREAD_ATTR unsigned int __gmpfr_flags = 0; - -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 +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) #undef mpfr_get_emin diff --git a/Build/source/libs/mpfr/mpfr-src/src/exp.c b/Build/source/libs/mpfr/mpfr-src/src/exp.c index 225b6774324..e880cbd990c 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/exp.c +++ b/Build/source/libs/mpfr/mpfr-src/src/exp.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/exp10.c b/Build/source/libs/mpfr/mpfr-src/src/exp10.c index e68d8aab40e..f1ab5d9fbc0 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/exp10.c +++ b/Build/source/libs/mpfr/mpfr-src/src/exp10.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/exp2.c b/Build/source/libs/mpfr/mpfr-src/src/exp2.c index 21c057cbe7e..a6f396752e4 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/exp2.c +++ b/Build/source/libs/mpfr/mpfr-src/src/exp2.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/exp3.c b/Build/source/libs/mpfr/mpfr-src/src/exp3.c index 47482923326..04f3e68519d 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/exp3.c +++ b/Build/source/libs/mpfr/mpfr-src/src/exp3.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/exp_2.c b/Build/source/libs/mpfr/mpfr-src/src/exp_2.c index d6bf4d6347a..e90d462e654 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/exp_2.c +++ b/Build/source/libs/mpfr/mpfr-src/src/exp_2.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/expm1.c b/Build/source/libs/mpfr/mpfr-src/src/expm1.c index 004ce4d5d51..97c880178ce 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/expm1.c +++ b/Build/source/libs/mpfr/mpfr-src/src/expm1.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/extract.c b/Build/source/libs/mpfr/mpfr-src/src/extract.c index 3eb7b946a32..9dd58da377a 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/extract.c +++ b/Build/source/libs/mpfr/mpfr-src/src/extract.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/factorial.c b/Build/source/libs/mpfr/mpfr-src/src/factorial.c index 4f467d75cd2..e256e517137 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/factorial.c +++ b/Build/source/libs/mpfr/mpfr-src/src/factorial.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/fits_intmax.c b/Build/source/libs/mpfr/mpfr-src/src/fits_intmax.c index b3ad9f18276..9c4f27f6a7a 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/fits_intmax.c +++ b/Build/source/libs/mpfr/mpfr-src/src/fits_intmax.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/fits_s.h b/Build/source/libs/mpfr/mpfr-src/src/fits_s.h index 8e667bc0c41..ce1d882f680 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/fits_s.h +++ b/Build/source/libs/mpfr/mpfr-src/src/fits_s.h @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/fits_sint.c b/Build/source/libs/mpfr/mpfr-src/src/fits_sint.c index 5ab11409bff..f214bca335c 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/fits_sint.c +++ b/Build/source/libs/mpfr/mpfr-src/src/fits_sint.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/fits_slong.c b/Build/source/libs/mpfr/mpfr-src/src/fits_slong.c index 3ff287486a4..81ae2be96c8 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/fits_slong.c +++ b/Build/source/libs/mpfr/mpfr-src/src/fits_slong.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/fits_sshort.c b/Build/source/libs/mpfr/mpfr-src/src/fits_sshort.c index d9099800f02..468792dc02d 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/fits_sshort.c +++ b/Build/source/libs/mpfr/mpfr-src/src/fits_sshort.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/fits_u.h b/Build/source/libs/mpfr/mpfr-src/src/fits_u.h index 9f97c30c6aa..e84c6b6560b 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/fits_u.h +++ b/Build/source/libs/mpfr/mpfr-src/src/fits_u.h @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/fits_uint.c b/Build/source/libs/mpfr/mpfr-src/src/fits_uint.c index 96e2cc5abbc..309e3e9d544 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/fits_uint.c +++ b/Build/source/libs/mpfr/mpfr-src/src/fits_uint.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/fits_uintmax.c b/Build/source/libs/mpfr/mpfr-src/src/fits_uintmax.c index a206287cce3..eaafbe9a8ca 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/fits_uintmax.c +++ b/Build/source/libs/mpfr/mpfr-src/src/fits_uintmax.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/fits_ulong.c b/Build/source/libs/mpfr/mpfr-src/src/fits_ulong.c index 8e2c105199d..847ff733a9e 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/fits_ulong.c +++ b/Build/source/libs/mpfr/mpfr-src/src/fits_ulong.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/fits_ushort.c b/Build/source/libs/mpfr/mpfr-src/src/fits_ushort.c index 63bfbc0ecd1..06746689824 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/fits_ushort.c +++ b/Build/source/libs/mpfr/mpfr-src/src/fits_ushort.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/fma.c b/Build/source/libs/mpfr/mpfr-src/src/fma.c index da81a567a7a..f12105fead9 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/fma.c +++ b/Build/source/libs/mpfr/mpfr-src/src/fma.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/fms.c b/Build/source/libs/mpfr/mpfr-src/src/fms.c index 868b4d66180..10501d37624 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/fms.c +++ b/Build/source/libs/mpfr/mpfr-src/src/fms.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/frac.c b/Build/source/libs/mpfr/mpfr-src/src/frac.c index 0bb38b23606..754166231da 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/frac.c +++ b/Build/source/libs/mpfr/mpfr-src/src/frac.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/free_cache.c b/Build/source/libs/mpfr/mpfr-src/src/free_cache.c index d65784f2825..91d37e86e7c 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/free_cache.c +++ b/Build/source/libs/mpfr/mpfr-src/src/free_cache.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/frexp.c b/Build/source/libs/mpfr/mpfr-src/src/frexp.c index c5bcf0f442c..9512e9f8ca6 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/frexp.c +++ b/Build/source/libs/mpfr/mpfr-src/src/frexp.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/gamma.c b/Build/source/libs/mpfr/mpfr-src/src/gamma.c index eefd3dd50cf..c9f52d0523e 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/gamma.c +++ b/Build/source/libs/mpfr/mpfr-src/src/gamma.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/gammaonethird.c b/Build/source/libs/mpfr/mpfr-src/src/gammaonethird.c index f7a21fe1cc4..c9f756e380f 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/gammaonethird.c +++ b/Build/source/libs/mpfr/mpfr-src/src/gammaonethird.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/gen_inverse.h b/Build/source/libs/mpfr/mpfr-src/src/gen_inverse.h index c0715d1da8b..d2676b888e7 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/gen_inverse.h +++ b/Build/source/libs/mpfr/mpfr-src/src/gen_inverse.h @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/generic/mparam.h b/Build/source/libs/mpfr/mpfr-src/src/generic/mparam.h index 20cde126f51..75a8b36f245 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/generic/mparam.h +++ b/Build/source/libs/mpfr/mpfr-src/src/generic/mparam.h @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/get_d.c b/Build/source/libs/mpfr/mpfr-src/src/get_d.c index aa5751e8ae0..197eab4d290 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/get_d.c +++ b/Build/source/libs/mpfr/mpfr-src/src/get_d.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/get_d64.c b/Build/source/libs/mpfr/mpfr-src/src/get_d64.c index 84dd130ad57..58528ff00ad 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/get_d64.c +++ b/Build/source/libs/mpfr/mpfr-src/src/get_d64.c @@ -5,7 +5,7 @@ See http://gcc.gnu.org/ml/gcc/2006-06/msg00691.html, http://gcc.gnu.org/onlinedocs/gcc/Decimal-Float.html, and TR 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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/get_exp.c b/Build/source/libs/mpfr/mpfr-src/src/get_exp.c index 99ae1184a73..8cea110d185 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/get_exp.c +++ b/Build/source/libs/mpfr/mpfr-src/src/get_exp.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/get_f.c b/Build/source/libs/mpfr/mpfr-src/src/get_f.c index de94ddafbb6..942b0d7c5a3 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/get_f.c +++ b/Build/source/libs/mpfr/mpfr-src/src/get_f.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/get_flt.c b/Build/source/libs/mpfr/mpfr-src/src/get_flt.c index 07b71206d86..168c58702db 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/get_flt.c +++ b/Build/source/libs/mpfr/mpfr-src/src/get_flt.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/get_ld.c b/Build/source/libs/mpfr/mpfr-src/src/get_ld.c index c7c5cd550ef..b1d77c77145 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/get_ld.c +++ b/Build/source/libs/mpfr/mpfr-src/src/get_ld.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/get_patches.c b/Build/source/libs/mpfr/mpfr-src/src/get_patches.c index da1e49ebc46..7ab759c2690 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/get_patches.c +++ b/Build/source/libs/mpfr/mpfr-src/src/get_patches.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/get_si.c b/Build/source/libs/mpfr/mpfr-src/src/get_si.c index ef8ce3966dd..134874c3068 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/get_si.c +++ b/Build/source/libs/mpfr/mpfr-src/src/get_si.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/get_sj.c b/Build/source/libs/mpfr/mpfr-src/src/get_sj.c index 9bd68a181c8..5e92199d009 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/get_sj.c +++ b/Build/source/libs/mpfr/mpfr-src/src/get_sj.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/get_str.c b/Build/source/libs/mpfr/mpfr-src/src/get_str.c index 0b284062224..c71488dafd6 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/get_str.c +++ b/Build/source/libs/mpfr/mpfr-src/src/get_str.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/get_ui.c b/Build/source/libs/mpfr/mpfr-src/src/get_ui.c index 0bf5b5e3f3b..48a5f333fbe 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/get_ui.c +++ b/Build/source/libs/mpfr/mpfr-src/src/get_ui.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/get_uj.c b/Build/source/libs/mpfr/mpfr-src/src/get_uj.c index b7ea2d97726..805c8a1a874 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/get_uj.c +++ b/Build/source/libs/mpfr/mpfr-src/src/get_uj.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/get_z.c b/Build/source/libs/mpfr/mpfr-src/src/get_z.c index e323255137c..68249a465a6 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/get_z.c +++ b/Build/source/libs/mpfr/mpfr-src/src/get_z.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/get_z_exp.c b/Build/source/libs/mpfr/mpfr-src/src/get_z_exp.c index bc8eb0be505..f05afc19434 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/get_z_exp.c +++ b/Build/source/libs/mpfr/mpfr-src/src/get_z_exp.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/gmp_op.c b/Build/source/libs/mpfr/mpfr-src/src/gmp_op.c index 9418fa0984e..2677b7089cd 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/gmp_op.c +++ b/Build/source/libs/mpfr/mpfr-src/src/gmp_op.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/grandom.c b/Build/source/libs/mpfr/mpfr-src/src/grandom.c index 5d07ae9afd4..eee0eec1671 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/grandom.c +++ b/Build/source/libs/mpfr/mpfr-src/src/grandom.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/hppa/mparam.h b/Build/source/libs/mpfr/mpfr-src/src/hppa/mparam.h index 1d785616914..aec83f7d69d 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/hppa/mparam.h +++ b/Build/source/libs/mpfr/mpfr-src/src/hppa/mparam.h @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/hypot.c b/Build/source/libs/mpfr/mpfr-src/src/hypot.c index da38906505d..51bb00649bb 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/hypot.c +++ b/Build/source/libs/mpfr/mpfr-src/src/hypot.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/ia64/mparam.h b/Build/source/libs/mpfr/mpfr-src/src/ia64/mparam.h index e7649bb2938..8133feb9c11 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/ia64/mparam.h +++ b/Build/source/libs/mpfr/mpfr-src/src/ia64/mparam.h @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/ieee_floats.h b/Build/source/libs/mpfr/mpfr-src/src/ieee_floats.h index 91ca5b92a8a..cae1c696124 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/ieee_floats.h +++ b/Build/source/libs/mpfr/mpfr-src/src/ieee_floats.h @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/init.c b/Build/source/libs/mpfr/mpfr-src/src/init.c index e2aa53ffc3f..be817d98a95 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/init.c +++ b/Build/source/libs/mpfr/mpfr-src/src/init.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/init2.c b/Build/source/libs/mpfr/mpfr-src/src/init2.c index 9e720f748fa..66a4b989cda 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/init2.c +++ b/Build/source/libs/mpfr/mpfr-src/src/init2.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/inits.c b/Build/source/libs/mpfr/mpfr-src/src/inits.c index 888f788f2a3..959d822c06d 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/inits.c +++ b/Build/source/libs/mpfr/mpfr-src/src/inits.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/inits2.c b/Build/source/libs/mpfr/mpfr-src/src/inits2.c index 4791139d3ec..c6784444684 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/inits2.c +++ b/Build/source/libs/mpfr/mpfr-src/src/inits2.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/inp_str.c b/Build/source/libs/mpfr/mpfr-src/src/inp_str.c index b155b149e34..db8a1bd8643 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/inp_str.c +++ b/Build/source/libs/mpfr/mpfr-src/src/inp_str.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/int_ceil_log2.c b/Build/source/libs/mpfr/mpfr-src/src/int_ceil_log2.c index a6595a6c713..22b70fd6238 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/int_ceil_log2.c +++ b/Build/source/libs/mpfr/mpfr-src/src/int_ceil_log2.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/isinf.c b/Build/source/libs/mpfr/mpfr-src/src/isinf.c index 264a8ea1ac1..9e15f352bf6 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/isinf.c +++ b/Build/source/libs/mpfr/mpfr-src/src/isinf.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/isinteger.c b/Build/source/libs/mpfr/mpfr-src/src/isinteger.c index 6ec39a47328..2e8a245947f 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/isinteger.c +++ b/Build/source/libs/mpfr/mpfr-src/src/isinteger.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/isnan.c b/Build/source/libs/mpfr/mpfr-src/src/isnan.c index 36e8ad7a8b6..5271617179f 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/isnan.c +++ b/Build/source/libs/mpfr/mpfr-src/src/isnan.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/isnum.c b/Build/source/libs/mpfr/mpfr-src/src/isnum.c index e3bf2813ff7..d12c5ff197b 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/isnum.c +++ b/Build/source/libs/mpfr/mpfr-src/src/isnum.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/isqrt.c b/Build/source/libs/mpfr/mpfr-src/src/isqrt.c index 56228df7cf1..7646f5eb779 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/isqrt.c +++ b/Build/source/libs/mpfr/mpfr-src/src/isqrt.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/isregular.c b/Build/source/libs/mpfr/mpfr-src/src/isregular.c index 1b5c5519bba..7beb4981d08 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/isregular.c +++ b/Build/source/libs/mpfr/mpfr-src/src/isregular.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/iszero.c b/Build/source/libs/mpfr/mpfr-src/src/iszero.c index 45c6d470c86..2b4389e0217 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/iszero.c +++ b/Build/source/libs/mpfr/mpfr-src/src/iszero.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/jn.c b/Build/source/libs/mpfr/mpfr-src/src/jn.c index 182f1e04678..1336d22d3f1 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/jn.c +++ b/Build/source/libs/mpfr/mpfr-src/src/jn.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/jyn_asympt.c b/Build/source/libs/mpfr/mpfr-src/src/jyn_asympt.c index fe0f3b9b354..53ac2bbbfb3 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/jyn_asympt.c +++ b/Build/source/libs/mpfr/mpfr-src/src/jyn_asympt.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/li2.c b/Build/source/libs/mpfr/mpfr-src/src/li2.c index 357ee4c9b50..d8191f7e16a 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/li2.c +++ b/Build/source/libs/mpfr/mpfr-src/src/li2.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/lngamma.c b/Build/source/libs/mpfr/mpfr-src/src/lngamma.c index de98b171b00..84bd7d1fae7 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/lngamma.c +++ b/Build/source/libs/mpfr/mpfr-src/src/lngamma.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/log.c b/Build/source/libs/mpfr/mpfr-src/src/log.c index 2cb1e646cc6..866ce86b3b8 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/log.c +++ b/Build/source/libs/mpfr/mpfr-src/src/log.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/log10.c b/Build/source/libs/mpfr/mpfr-src/src/log10.c index 5700af4c862..bc2c3ffbeaf 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/log10.c +++ b/Build/source/libs/mpfr/mpfr-src/src/log10.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/log1p.c b/Build/source/libs/mpfr/mpfr-src/src/log1p.c index 53720fe2014..4ef43c2ae68 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/log1p.c +++ b/Build/source/libs/mpfr/mpfr-src/src/log1p.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/log2.c b/Build/source/libs/mpfr/mpfr-src/src/log2.c index 6d755e027a3..4c01a32d3e0 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/log2.c +++ b/Build/source/libs/mpfr/mpfr-src/src/log2.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/logging.c b/Build/source/libs/mpfr/mpfr-src/src/logging.c index 963fac705a5..37a886755c4 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/logging.c +++ b/Build/source/libs/mpfr/mpfr-src/src/logging.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/min_prec.c b/Build/source/libs/mpfr/mpfr-src/src/min_prec.c index f2705d6fcf9..52c73c014a6 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/min_prec.c +++ b/Build/source/libs/mpfr/mpfr-src/src/min_prec.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/minmax.c b/Build/source/libs/mpfr/mpfr-src/src/minmax.c index 46964927487..f8e1dba88aa 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/minmax.c +++ b/Build/source/libs/mpfr/mpfr-src/src/minmax.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/modf.c b/Build/source/libs/mpfr/mpfr-src/src/modf.c index 36b017a7fb9..657f1e94519 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/modf.c +++ b/Build/source/libs/mpfr/mpfr-src/src/modf.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/mp_clz_tab.c b/Build/source/libs/mpfr/mpfr-src/src/mp_clz_tab.c index fdaa432db05..5581935a773 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/mp_clz_tab.c +++ b/Build/source/libs/mpfr/mpfr-src/src/mp_clz_tab.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/mparam_h.in b/Build/source/libs/mpfr/mpfr-src/src/mparam_h.in index 03b5454b24b..750330afb83 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/mparam_h.in +++ b/Build/source/libs/mpfr/mpfr-src/src/mparam_h.in @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/mpf2mpfr.h b/Build/source/libs/mpfr/mpfr-src/src/mpf2mpfr.h index e0db8103a8b..17b70fc95da 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/mpf2mpfr.h +++ b/Build/source/libs/mpfr/mpfr-src/src/mpf2mpfr.h @@ -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 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., #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 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., #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 diff --git a/Build/source/libs/mpfr/mpfr-src/src/mpfr-gmp.c b/Build/source/libs/mpfr/mpfr-src/src/mpfr-gmp.c index d2d53ff8ad0..ce4698292a9 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/mpfr-gmp.c +++ b/Build/source/libs/mpfr/mpfr-src/src/mpfr-gmp.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/mpfr-gmp.h b/Build/source/libs/mpfr/mpfr-src/src/mpfr-gmp.h index 445b35338e9..850e0d396db 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/mpfr-gmp.h +++ b/Build/source/libs/mpfr/mpfr-src/src/mpfr-gmp.h @@ -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 @@ __MPFR_DECLSPEC extern gmp_randstate_t mpfr_rands; } \ } 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, diff --git a/Build/source/libs/mpfr/mpfr-src/src/mpfr-impl.h b/Build/source/libs/mpfr/mpfr-src/src/mpfr-impl.h index 0066f90d360..03e64f4be13 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/mpfr-impl.h +++ b/Build/source/libs/mpfr/mpfr-src/src/mpfr-impl.h @@ -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 @@ extern MPFR_THREAD_ATTR mpfr_cache_ptr __gmpfr_cache_const_log2; #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 @@ __MPFR_DECLSPEC mpfr_cache_ptr * __gmpfr_cache_const_log2_f(); # 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 @@ __MPFR_DECLSPEC extern const mpfr_t __gmpfr_four; #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 @@ typedef intmax_t mpfr_eexp_t; 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 @@ extern unsigned char *mpfr_stack; #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 @@ do { \ # 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 /* 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 diff --git a/Build/source/libs/mpfr/mpfr-src/src/mpfr-intmax.h b/Build/source/libs/mpfr/mpfr-src/src/mpfr-intmax.h index 3a7afc0fa75..a51031aec81 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/mpfr-intmax.h +++ b/Build/source/libs/mpfr/mpfr-src/src/mpfr-intmax.h @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/mpfr-longlong.h b/Build/source/libs/mpfr/mpfr-src/src/mpfr-longlong.h index 1ba6d675bb4..5b9cca411d4 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/mpfr-longlong.h +++ b/Build/source/libs/mpfr/mpfr-src/src/mpfr-longlong.h @@ -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 diff --git a/Build/source/libs/mpfr/mpfr-src/src/mpfr-thread.h b/Build/source/libs/mpfr/mpfr-src/src/mpfr-thread.h index 1ccaa17c30a..a32f9cb2091 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/mpfr-thread.h +++ b/Build/source/libs/mpfr/mpfr-src/src/mpfr-thread.h @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/mpfr.h b/Build/source/libs/mpfr/mpfr-src/src/mpfr.h index b23b1d2a9c8..6dba95f2743 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/mpfr.h +++ b/Build/source/libs/mpfr/mpfr-src/src/mpfr.h @@ -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 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., /* 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)) diff --git a/Build/source/libs/mpfr/mpfr-src/src/mpn_exp.c b/Build/source/libs/mpfr/mpfr-src/src/mpn_exp.c index 5fac37e721f..70417b870f1 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/mpn_exp.c +++ b/Build/source/libs/mpfr/mpfr-src/src/mpn_exp.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/mul.c b/Build/source/libs/mpfr/mpfr-src/src/mul.c index 67c974ffef3..31169eb4f86 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/mul.c +++ b/Build/source/libs/mpfr/mpfr-src/src/mul.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/mul_2exp.c b/Build/source/libs/mpfr/mpfr-src/src/mul_2exp.c index dac89f1fe6a..858ed5d62d6 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/mul_2exp.c +++ b/Build/source/libs/mpfr/mpfr-src/src/mul_2exp.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/mul_2si.c b/Build/source/libs/mpfr/mpfr-src/src/mul_2si.c index 04fdee403f6..6c0bcc6f73b 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/mul_2si.c +++ b/Build/source/libs/mpfr/mpfr-src/src/mul_2si.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/mul_2ui.c b/Build/source/libs/mpfr/mpfr-src/src/mul_2ui.c index 8c9959abe37..981d3272365 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/mul_2ui.c +++ b/Build/source/libs/mpfr/mpfr-src/src/mul_2ui.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/mul_d.c b/Build/source/libs/mpfr/mpfr-src/src/mul_d.c index ff2514ad7ba..2078fee0b3a 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/mul_d.c +++ b/Build/source/libs/mpfr/mpfr-src/src/mul_d.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/mul_ui.c b/Build/source/libs/mpfr/mpfr-src/src/mul_ui.c index bd144761962..c64c5ca26d3 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/mul_ui.c +++ b/Build/source/libs/mpfr/mpfr-src/src/mul_ui.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/mulders.c b/Build/source/libs/mpfr/mpfr-src/src/mulders.c index a988db84bcb..24811299682 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/mulders.c +++ b/Build/source/libs/mpfr/mpfr-src/src/mulders.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/neg.c b/Build/source/libs/mpfr/mpfr-src/src/neg.c index b9f5c702cb3..7e8fff8b9fb 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/neg.c +++ b/Build/source/libs/mpfr/mpfr-src/src/neg.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/next.c b/Build/source/libs/mpfr/mpfr-src/src/next.c index c49c32928ee..e6420f20464 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/next.c +++ b/Build/source/libs/mpfr/mpfr-src/src/next.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/out_str.c b/Build/source/libs/mpfr/mpfr-src/src/out_str.c index 88707571e44..1b5e6da8f31 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/out_str.c +++ b/Build/source/libs/mpfr/mpfr-src/src/out_str.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/pow.c b/Build/source/libs/mpfr/mpfr-src/src/pow.c index 62a3f018382..5c1c2dec8c0 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/pow.c +++ b/Build/source/libs/mpfr/mpfr-src/src/pow.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/pow_si.c b/Build/source/libs/mpfr/mpfr-src/src/pow_si.c index 3ea5cc56d9f..6ffeed16439 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/pow_si.c +++ b/Build/source/libs/mpfr/mpfr-src/src/pow_si.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/pow_ui.c b/Build/source/libs/mpfr/mpfr-src/src/pow_ui.c index 061b54cbb7b..4e3cb8aef52 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/pow_ui.c +++ b/Build/source/libs/mpfr/mpfr-src/src/pow_ui.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/pow_z.c b/Build/source/libs/mpfr/mpfr-src/src/pow_z.c index c2b0c79d39e..762f506fa6f 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/pow_z.c +++ b/Build/source/libs/mpfr/mpfr-src/src/pow_z.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/powerof2.c b/Build/source/libs/mpfr/mpfr-src/src/powerof2.c index 53f0551cd66..c41335c5c63 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/powerof2.c +++ b/Build/source/libs/mpfr/mpfr-src/src/powerof2.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/powerpc32/mparam.h b/Build/source/libs/mpfr/mpfr-src/src/powerpc32/mparam.h index 6b5816b495d..9f393d19c4d 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/powerpc32/mparam.h +++ b/Build/source/libs/mpfr/mpfr-src/src/powerpc32/mparam.h @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/powerpc64/mparam.h b/Build/source/libs/mpfr/mpfr-src/src/powerpc64/mparam.h index 79b87ceddce..1301c809d8f 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/powerpc64/mparam.h +++ b/Build/source/libs/mpfr/mpfr-src/src/powerpc64/mparam.h @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/print_raw.c b/Build/source/libs/mpfr/mpfr-src/src/print_raw.c index 80992c56798..b05fcae596b 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/print_raw.c +++ b/Build/source/libs/mpfr/mpfr-src/src/print_raw.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/print_rnd_mode.c b/Build/source/libs/mpfr/mpfr-src/src/print_rnd_mode.c index f863bbcff07..6728c678734 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/print_rnd_mode.c +++ b/Build/source/libs/mpfr/mpfr-src/src/print_rnd_mode.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/printf.c b/Build/source/libs/mpfr/mpfr-src/src/printf.c index 72fb40e8a85..3a554e70457 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/printf.c +++ b/Build/source/libs/mpfr/mpfr-src/src/printf.c @@ -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 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., # endif /* HAVE___VA_COPY */ #endif /* HAVE_VA_COPY */ -#include #include "mpfr-impl.h" #ifdef _MPFR_H_HAVE_FILE diff --git a/Build/source/libs/mpfr/mpfr-src/src/rec_sqrt.c b/Build/source/libs/mpfr/mpfr-src/src/rec_sqrt.c index 2be95302182..90d3f27a054 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/rec_sqrt.c +++ b/Build/source/libs/mpfr/mpfr-src/src/rec_sqrt.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/reldiff.c b/Build/source/libs/mpfr/mpfr-src/src/reldiff.c index eac12cb8284..9464ebcd0e4 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/reldiff.c +++ b/Build/source/libs/mpfr/mpfr-src/src/reldiff.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/rem1.c b/Build/source/libs/mpfr/mpfr-src/src/rem1.c index 1299396e32b..399d29bbdd3 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/rem1.c +++ b/Build/source/libs/mpfr/mpfr-src/src/rem1.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/rint.c b/Build/source/libs/mpfr/mpfr-src/src/rint.c index 2e50a983df8..ded7c098b26 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/rint.c +++ b/Build/source/libs/mpfr/mpfr-src/src/rint.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/root.c b/Build/source/libs/mpfr/mpfr-src/src/root.c index 5bf45449851..d3b5b171ad9 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/root.c +++ b/Build/source/libs/mpfr/mpfr-src/src/root.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/round_near_x.c b/Build/source/libs/mpfr/mpfr-src/src/round_near_x.c index 6aa0eb24389..3651eb1ea9e 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/round_near_x.c +++ b/Build/source/libs/mpfr/mpfr-src/src/round_near_x.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/round_p.c b/Build/source/libs/mpfr/mpfr-src/src/round_p.c index 8e2c0bebdaa..c4f2973c25d 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/round_p.c +++ b/Build/source/libs/mpfr/mpfr-src/src/round_p.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/round_prec.c b/Build/source/libs/mpfr/mpfr-src/src/round_prec.c index e5512b439dd..9c53c49126b 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/round_prec.c +++ b/Build/source/libs/mpfr/mpfr-src/src/round_prec.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/round_raw_generic.c b/Build/source/libs/mpfr/mpfr-src/src/round_raw_generic.c index 2b67fcc989e..f78b254e21c 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/round_raw_generic.c +++ b/Build/source/libs/mpfr/mpfr-src/src/round_raw_generic.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/scale2.c b/Build/source/libs/mpfr/mpfr-src/src/scale2.c index 8439a019252..5081c135456 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/scale2.c +++ b/Build/source/libs/mpfr/mpfr-src/src/scale2.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/sec.c b/Build/source/libs/mpfr/mpfr-src/src/sec.c index 300591629a1..d24636c8442 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/sec.c +++ b/Build/source/libs/mpfr/mpfr-src/src/sec.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/sech.c b/Build/source/libs/mpfr/mpfr-src/src/sech.c index 4dd9da78439..5060ed72bd7 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/sech.c +++ b/Build/source/libs/mpfr/mpfr-src/src/sech.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/set.c b/Build/source/libs/mpfr/mpfr-src/src/set.c index b10d7d8278d..4d4d5ecfaed 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/set.c +++ b/Build/source/libs/mpfr/mpfr-src/src/set.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/set_d.c b/Build/source/libs/mpfr/mpfr-src/src/set_d.c index c076ccf8405..fb6fb457d84 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/set_d.c +++ b/Build/source/libs/mpfr/mpfr-src/src/set_d.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/set_d64.c b/Build/source/libs/mpfr/mpfr-src/src/set_d64.c index a9300adfb95..cf22fcaac83 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/set_d64.c +++ b/Build/source/libs/mpfr/mpfr-src/src/set_d64.c @@ -5,7 +5,7 @@ See http://gcc.gnu.org/ml/gcc/2006-06/msg00691.html, http://gcc.gnu.org/onlinedocs/gcc/Decimal-Float.html, and TR 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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/set_dfl_prec.c b/Build/source/libs/mpfr/mpfr-src/src/set_dfl_prec.c index 96464c459f9..68762df7353 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/set_dfl_prec.c +++ b/Build/source/libs/mpfr/mpfr-src/src/set_dfl_prec.c @@ -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,15 +23,8 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., #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; - -#ifdef MPFR_WIN_THREAD_SAFE_DLL -mpfr_prec_t * __gmpfr_default_fp_bit_precision_f() -{ - return &__gmpfr_default_fp_bit_precision; -} -#endif +MPFR_THREAD_VAR (mpfr_prec_t, __gmpfr_default_fp_bit_precision, + IEEE_DBL_MANT_DIG) void mpfr_set_default_prec (mpfr_prec_t prec) diff --git a/Build/source/libs/mpfr/mpfr-src/src/set_exp.c b/Build/source/libs/mpfr/mpfr-src/src/set_exp.c index f27fe5b59f0..e920335dce4 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/set_exp.c +++ b/Build/source/libs/mpfr/mpfr-src/src/set_exp.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/set_f.c b/Build/source/libs/mpfr/mpfr-src/src/set_f.c index 67e6ae35655..07dc69277fd 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/set_f.c +++ b/Build/source/libs/mpfr/mpfr-src/src/set_f.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/set_flt.c b/Build/source/libs/mpfr/mpfr-src/src/set_flt.c index b66da2f0d84..df92a73cbb2 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/set_flt.c +++ b/Build/source/libs/mpfr/mpfr-src/src/set_flt.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/set_inf.c b/Build/source/libs/mpfr/mpfr-src/src/set_inf.c index 0f1f5c4e2e1..06fc45f305c 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/set_inf.c +++ b/Build/source/libs/mpfr/mpfr-src/src/set_inf.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/set_ld.c b/Build/source/libs/mpfr/mpfr-src/src/set_ld.c index 8c4fa841429..8d63de981d3 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/set_ld.c +++ b/Build/source/libs/mpfr/mpfr-src/src/set_ld.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/set_nan.c b/Build/source/libs/mpfr/mpfr-src/src/set_nan.c index 08b546fbc9c..8d0a40601b1 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/set_nan.c +++ b/Build/source/libs/mpfr/mpfr-src/src/set_nan.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/set_prc_raw.c b/Build/source/libs/mpfr/mpfr-src/src/set_prc_raw.c index 8638afa0feb..532fa2d8a65 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/set_prc_raw.c +++ b/Build/source/libs/mpfr/mpfr-src/src/set_prc_raw.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/set_prec.c b/Build/source/libs/mpfr/mpfr-src/src/set_prec.c index 578c0274d6c..2927efefc89 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/set_prec.c +++ b/Build/source/libs/mpfr/mpfr-src/src/set_prec.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/set_q.c b/Build/source/libs/mpfr/mpfr-src/src/set_q.c index cdfd0f083ca..ffcc1de4c4e 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/set_q.c +++ b/Build/source/libs/mpfr/mpfr-src/src/set_q.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/set_rnd.c b/Build/source/libs/mpfr/mpfr-src/src/set_rnd.c index 10fc232312d..56b5c2d05de 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/set_rnd.c +++ b/Build/source/libs/mpfr/mpfr-src/src/set_rnd.c @@ -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,15 +23,7 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., #include "mpfr-impl.h" -MPFR_THREAD_ATTR 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 +MPFR_THREAD_VAR (mpfr_rnd_t, __gmpfr_default_rounding_mode, MPFR_RNDN) void mpfr_set_default_rounding_mode (mpfr_rnd_t rnd_mode) diff --git a/Build/source/libs/mpfr/mpfr-src/src/set_si.c b/Build/source/libs/mpfr/mpfr-src/src/set_si.c index ce77aced2b2..f0576ffba9f 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/set_si.c +++ b/Build/source/libs/mpfr/mpfr-src/src/set_si.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/set_si_2exp.c b/Build/source/libs/mpfr/mpfr-src/src/set_si_2exp.c index f5add967644..3eb41a5a6b6 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/set_si_2exp.c +++ b/Build/source/libs/mpfr/mpfr-src/src/set_si_2exp.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/set_sj.c b/Build/source/libs/mpfr/mpfr-src/src/set_sj.c index 2d1a734e212..1e997222b6f 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/set_sj.c +++ b/Build/source/libs/mpfr/mpfr-src/src/set_sj.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/set_str.c b/Build/source/libs/mpfr/mpfr-src/src/set_str.c index 191db5826f1..e6ca69d81b9 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/set_str.c +++ b/Build/source/libs/mpfr/mpfr-src/src/set_str.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/set_str_raw.c b/Build/source/libs/mpfr/mpfr-src/src/set_str_raw.c index e84c25059fe..cb12477d87f 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/set_str_raw.c +++ b/Build/source/libs/mpfr/mpfr-src/src/set_str_raw.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/set_ui.c b/Build/source/libs/mpfr/mpfr-src/src/set_ui.c index d59f5b9d297..26d2cf2e14d 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/set_ui.c +++ b/Build/source/libs/mpfr/mpfr-src/src/set_ui.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/set_ui_2exp.c b/Build/source/libs/mpfr/mpfr-src/src/set_ui_2exp.c index de24331f1c9..b1cefbd41e5 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/set_ui_2exp.c +++ b/Build/source/libs/mpfr/mpfr-src/src/set_ui_2exp.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/set_uj.c b/Build/source/libs/mpfr/mpfr-src/src/set_uj.c index 1dd15a5b24b..6049e638741 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/set_uj.c +++ b/Build/source/libs/mpfr/mpfr-src/src/set_uj.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/set_z.c b/Build/source/libs/mpfr/mpfr-src/src/set_z.c index e480bc653af..9d6bd32b510 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/set_z.c +++ b/Build/source/libs/mpfr/mpfr-src/src/set_z.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/set_z_exp.c b/Build/source/libs/mpfr/mpfr-src/src/set_z_exp.c index 5907ba88780..e540dabcba3 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/set_z_exp.c +++ b/Build/source/libs/mpfr/mpfr-src/src/set_z_exp.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/set_zero.c b/Build/source/libs/mpfr/mpfr-src/src/set_zero.c index ba471340f96..ed8221650a6 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/set_zero.c +++ b/Build/source/libs/mpfr/mpfr-src/src/set_zero.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/setmax.c b/Build/source/libs/mpfr/mpfr-src/src/setmax.c index cf8a873810b..88081c33cfc 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/setmax.c +++ b/Build/source/libs/mpfr/mpfr-src/src/setmax.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/setmin.c b/Build/source/libs/mpfr/mpfr-src/src/setmin.c index 78b5deedfae..24495b71474 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/setmin.c +++ b/Build/source/libs/mpfr/mpfr-src/src/setmin.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/setsign.c b/Build/source/libs/mpfr/mpfr-src/src/setsign.c index 06d9f7c3f45..31461c2a7de 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/setsign.c +++ b/Build/source/libs/mpfr/mpfr-src/src/setsign.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/sgn.c b/Build/source/libs/mpfr/mpfr-src/src/sgn.c index fe72bd71cb7..18b47279721 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/sgn.c +++ b/Build/source/libs/mpfr/mpfr-src/src/sgn.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/si_op.c b/Build/source/libs/mpfr/mpfr-src/src/si_op.c index 11d1e4192d5..5b7a72f38fd 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/si_op.c +++ b/Build/source/libs/mpfr/mpfr-src/src/si_op.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/signbit.c b/Build/source/libs/mpfr/mpfr-src/src/signbit.c index a97f529543d..bbc0dc85adc 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/signbit.c +++ b/Build/source/libs/mpfr/mpfr-src/src/signbit.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/sin.c b/Build/source/libs/mpfr/mpfr-src/src/sin.c index 2a4c65e0f74..860aa649c09 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/sin.c +++ b/Build/source/libs/mpfr/mpfr-src/src/sin.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/sin_cos.c b/Build/source/libs/mpfr/mpfr-src/src/sin_cos.c index e665d063723..a7c44620b46 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/sin_cos.c +++ b/Build/source/libs/mpfr/mpfr-src/src/sin_cos.c @@ -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 @@ sin_bs_aux (mpz_t Q0, mpz_t S0, mpz_t C0, mpz_srcptr p, mpfr_prec_t r, 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; diff --git a/Build/source/libs/mpfr/mpfr-src/src/sinh.c b/Build/source/libs/mpfr/mpfr-src/src/sinh.c index 3b06e217302..97bbf2f809c 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/sinh.c +++ b/Build/source/libs/mpfr/mpfr-src/src/sinh.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/sinh_cosh.c b/Build/source/libs/mpfr/mpfr-src/src/sinh_cosh.c index b41281408a4..0f0a20fc367 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/sinh_cosh.c +++ b/Build/source/libs/mpfr/mpfr-src/src/sinh_cosh.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/sparc64/mparam.h b/Build/source/libs/mpfr/mpfr-src/src/sparc64/mparam.h index 26a7b91240f..7d952a67654 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/sparc64/mparam.h +++ b/Build/source/libs/mpfr/mpfr-src/src/sparc64/mparam.h @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/sqr.c b/Build/source/libs/mpfr/mpfr-src/src/sqr.c index 4096be731c5..92e6ade9005 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/sqr.c +++ b/Build/source/libs/mpfr/mpfr-src/src/sqr.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/sqrt.c b/Build/source/libs/mpfr/mpfr-src/src/sqrt.c index e1f75d33afe..f3682fa4e75 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/sqrt.c +++ b/Build/source/libs/mpfr/mpfr-src/src/sqrt.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/sqrt_ui.c b/Build/source/libs/mpfr/mpfr-src/src/sqrt_ui.c index e824b088a39..44297199740 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/sqrt_ui.c +++ b/Build/source/libs/mpfr/mpfr-src/src/sqrt_ui.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/stack_interface.c b/Build/source/libs/mpfr/mpfr-src/src/stack_interface.c index fdf0edf2ab1..f28a4c54845 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/stack_interface.c +++ b/Build/source/libs/mpfr/mpfr-src/src/stack_interface.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/strtofr.c b/Build/source/libs/mpfr/mpfr-src/src/strtofr.c index 67f5caa62a0..f040ef65867 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/strtofr.c +++ b/Build/source/libs/mpfr/mpfr-src/src/strtofr.c @@ -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 @@ parsed_string_to_mpfr (mpfr_t x, struct parsed_string *pstr, mpfr_rnd_t rnd) 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: diff --git a/Build/source/libs/mpfr/mpfr-src/src/sub.c b/Build/source/libs/mpfr/mpfr-src/src/sub.c index cc4ec1ca714..7a544a8ffdf 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/sub.c +++ b/Build/source/libs/mpfr/mpfr-src/src/sub.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/sub1.c b/Build/source/libs/mpfr/mpfr-src/src/sub1.c index cf361393876..1d117d0599b 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/sub1.c +++ b/Build/source/libs/mpfr/mpfr-src/src/sub1.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/sub1sp.c b/Build/source/libs/mpfr/mpfr-src/src/sub1sp.c index 37b4d598d6e..67d597677bb 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/sub1sp.c +++ b/Build/source/libs/mpfr/mpfr-src/src/sub1sp.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/sub_d.c b/Build/source/libs/mpfr/mpfr-src/src/sub_d.c index 82c10ad8a1b..fc542c2f2be 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/sub_d.c +++ b/Build/source/libs/mpfr/mpfr-src/src/sub_d.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/sub_ui.c b/Build/source/libs/mpfr/mpfr-src/src/sub_ui.c index 718db0a43aa..63689dd5d8b 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/sub_ui.c +++ b/Build/source/libs/mpfr/mpfr-src/src/sub_ui.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/subnormal.c b/Build/source/libs/mpfr/mpfr-src/src/subnormal.c index 753c900ac80..79ef58796f8 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/subnormal.c +++ b/Build/source/libs/mpfr/mpfr-src/src/subnormal.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/sum.c b/Build/source/libs/mpfr/mpfr-src/src/sum.c index 4cc0cc8ac63..425ce3d7512 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/sum.c +++ b/Build/source/libs/mpfr/mpfr-src/src/sum.c @@ -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 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., 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" diff --git a/Build/source/libs/mpfr/mpfr-src/src/swap.c b/Build/source/libs/mpfr/mpfr-src/src/swap.c index a7282089003..ed488ca88c8 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/swap.c +++ b/Build/source/libs/mpfr/mpfr-src/src/swap.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/tan.c b/Build/source/libs/mpfr/mpfr-src/src/tan.c index b10edc620c7..4f65f1bcdd9 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/tan.c +++ b/Build/source/libs/mpfr/mpfr-src/src/tan.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/tanh.c b/Build/source/libs/mpfr/mpfr-src/src/tanh.c index 3ce860ac6b2..f220321ff75 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/tanh.c +++ b/Build/source/libs/mpfr/mpfr-src/src/tanh.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/uceil_exp2.c b/Build/source/libs/mpfr/mpfr-src/src/uceil_exp2.c index 29c685ad4c8..b81181a53c4 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/uceil_exp2.c +++ b/Build/source/libs/mpfr/mpfr-src/src/uceil_exp2.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/uceil_log2.c b/Build/source/libs/mpfr/mpfr-src/src/uceil_log2.c index b34a21c07bc..9c9168a5a91 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/uceil_log2.c +++ b/Build/source/libs/mpfr/mpfr-src/src/uceil_log2.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/ufloor_log2.c b/Build/source/libs/mpfr/mpfr-src/src/ufloor_log2.c index 8e7627e44fa..bae86087222 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/ufloor_log2.c +++ b/Build/source/libs/mpfr/mpfr-src/src/ufloor_log2.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/ui_div.c b/Build/source/libs/mpfr/mpfr-src/src/ui_div.c index dd190300d44..e69dfee1f3f 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/ui_div.c +++ b/Build/source/libs/mpfr/mpfr-src/src/ui_div.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/ui_pow.c b/Build/source/libs/mpfr/mpfr-src/src/ui_pow.c index ed71309ca98..9e96ba5a281 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/ui_pow.c +++ b/Build/source/libs/mpfr/mpfr-src/src/ui_pow.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/ui_pow_ui.c b/Build/source/libs/mpfr/mpfr-src/src/ui_pow_ui.c index 98dc76e2165..1198e3b54f0 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/ui_pow_ui.c +++ b/Build/source/libs/mpfr/mpfr-src/src/ui_pow_ui.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/ui_sub.c b/Build/source/libs/mpfr/mpfr-src/src/ui_sub.c index f4cbaac5120..0ef7917c389 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/ui_sub.c +++ b/Build/source/libs/mpfr/mpfr-src/src/ui_sub.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/urandom.c b/Build/source/libs/mpfr/mpfr-src/src/urandom.c index 1232ff18aa3..a30f9a843dc 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/urandom.c +++ b/Build/source/libs/mpfr/mpfr-src/src/urandom.c @@ -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,6 +37,25 @@ random_rounding_bit (gmp_randstate_t rstate) 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 @@ mpfr_urandom (mpfr_ptr rop, gmp_randstate_t rstate, mpfr_rnd_t rnd_mode) 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,58 +112,64 @@ mpfr_urandom (mpfr_ptr rop, gmp_randstate_t rstate, mpfr_rnd_t rnd_mode) 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 */ 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; diff --git a/Build/source/libs/mpfr/mpfr-src/src/urandomb.c b/Build/source/libs/mpfr/mpfr-src/src/urandomb.c index fd728967aa6..5eea6a2f21b 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/urandomb.c +++ b/Build/source/libs/mpfr/mpfr-src/src/urandomb.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/vasprintf.c b/Build/source/libs/mpfr/mpfr-src/src/vasprintf.c index 7db85a962c5..08855d10191 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/vasprintf.c +++ b/Build/source/libs/mpfr/mpfr-src/src/vasprintf.c @@ -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 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., #include /* for ptrdiff_t */ #endif +#include + #define MPFR_NEED_LONGLONG_H #include "mpfr-intmax.h" #include "mpfr-impl.h" @@ -1452,7 +1454,7 @@ partition_number (struct number_parts *np, mpfr_srcptr p, 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 @@ partition_number (struct number_parts *np, mpfr_srcptr p, } 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,43 +1647,43 @@ partition_number (struct number_parts *np, mpfr_srcptr p, /* 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 */ { 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: diff --git a/Build/source/libs/mpfr/mpfr-src/src/version.c b/Build/source/libs/mpfr/mpfr-src/src/version.c index 0e24a47f022..12d31a5fac0 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/version.c +++ b/Build/source/libs/mpfr/mpfr-src/src/version.c @@ -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 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., const char * mpfr_get_version (void) { - return "3.1.5"; + return "3.1.6"; } diff --git a/Build/source/libs/mpfr/mpfr-src/src/volatile.c b/Build/source/libs/mpfr/mpfr-src/src/volatile.c index 938655ebab5..ac6af05b7e2 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/volatile.c +++ b/Build/source/libs/mpfr/mpfr-src/src/volatile.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/x86/core2/mparam.h b/Build/source/libs/mpfr/mpfr-src/src/x86/core2/mparam.h index 04edd526cea..21b771d4219 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/x86/core2/mparam.h +++ b/Build/source/libs/mpfr/mpfr-src/src/x86/core2/mparam.h @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/x86/mparam.h b/Build/source/libs/mpfr/mpfr-src/src/x86/mparam.h index 978760a4c15..99f37b1d982 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/x86/mparam.h +++ b/Build/source/libs/mpfr/mpfr-src/src/x86/mparam.h @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/x86_64/core2/mparam.h b/Build/source/libs/mpfr/mpfr-src/src/x86_64/core2/mparam.h index 59025ad0973..2bba007ebd5 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/x86_64/core2/mparam.h +++ b/Build/source/libs/mpfr/mpfr-src/src/x86_64/core2/mparam.h @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/x86_64/pentium4/mparam.h b/Build/source/libs/mpfr/mpfr-src/src/x86_64/pentium4/mparam.h index 88a06e5425a..311c0580438 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/x86_64/pentium4/mparam.h +++ b/Build/source/libs/mpfr/mpfr-src/src/x86_64/pentium4/mparam.h @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/yn.c b/Build/source/libs/mpfr/mpfr-src/src/yn.c index a17a7f35652..9caa97749f3 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/yn.c +++ b/Build/source/libs/mpfr/mpfr-src/src/yn.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/zeta.c b/Build/source/libs/mpfr/mpfr-src/src/zeta.c index df000b15fc4..d9d073bf7ad 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/zeta.c +++ b/Build/source/libs/mpfr/mpfr-src/src/zeta.c @@ -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. diff --git a/Build/source/libs/mpfr/mpfr-src/src/zeta_ui.c b/Build/source/libs/mpfr/mpfr-src/src/zeta_ui.c index dc147e712a4..ad8f0c06854 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/zeta_ui.c +++ b/Build/source/libs/mpfr/mpfr-src/src/zeta_ui.c @@ -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. diff --git a/Build/source/libs/mpfr/version.ac b/Build/source/libs/mpfr/version.ac index 66d0bbed289..4de272a8eba 100644 --- a/Build/source/libs/mpfr/version.ac +++ b/Build/source/libs/mpfr/version.ac @@ -8,4 +8,4 @@ dnl 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]) -- cgit v1.2.3