299c6f0c6b
Changes from version 4.0.0 to version 4.0.1: - Bug fixes (see ChangeLog file), in particular in mpfr_div_ui, which could yield an incorrectly rounded result to nearest when using different precisions; this bug had been present since the introduction of mpfr_div_ui, and in MPFR 4.0.0, it was affecting mpfr_div too. Changes from versions 3.1.* to version 4.0.0: - Partial support of MPFR_RNDF (faithful rounding). - New functions: mpfr_fpif_export and mpfr_fpif_import to export and import numbers in a floating-point interchange format, independent both on the number of bits per word and on the endianness. - New function mpfr_fmodquo to return the low bits of the quotient corresponding to mpfr_fmod. - New functions mpfr_flags_clear, mpfr_flags_set, mpfr_flags_test, mpfr_flags_save and mpfr_flags_restore to operate on groups of flags. - New functions mpfr_set_float128 and mpfr_get_float128 to convert from/to the __float128 type (requires --enable-float128 and compiler support). - New functions mpfr_buildopt_float128_p and mpfr_buildopt_sharedcache_p. - New functions mpfr_rint_roundeven and mpfr_roundeven, completing the other similar round-to-integer functions for rounding to nearest with the even-rounding rule. - New macro mpfr_round_nearest_away to add partial emulation of the rounding to nearest-away (as defined in IEEE 754-2008). - New functions mpfr_nrandom and mpfr_erandom to generate random numbers following normal and exponential distributions respectively. - New functions mpfr_fmma and mpfr_fmms to compute a*b+c*d and a*b-c*d. - New function mpfr_rootn_ui, similar to mpfr_root, but agreeing with the rootn function of the IEEE 754-2008 standard. - New functions mpfr_log_ui to compute the logarithm of an integer, mpfr_gamma_inc for the incomplete Gamma function. - New function mpfr_beta for the Beta function (incomplete, experimental). - New function mpfr_get_q to convert a floating-point number into rational. - Dropped K&R C compatibility. - Major speedup in mpfr_add, mpfr_sub, mpfr_mul, mpfr_div and mpfr_sqrt when all operands have the same precision and this precision is less than twice the number of bits per word, e.g., less than 128 on a 64-bit computer. - Speedup by a factor of almost 2 in the double <--> mpfr conversions (mpfr_set_d and mpfr_get_d). - Speedup in mpfr_log1p and mpfr_atanh for small arguments. - Speedup in the mpfr_const_euler function (contributed by Fredrik Johansson), in the computation of Bernoulli numbers (used in mpfr_gamma, mpfr_li2, mpfr_digamma, mpfr_lngamma and mpfr_lgamma), in mpfr_div, in mpfr_fma and mpfr_fms.
63 lines
2.3 KiB
Makefile
63 lines
2.3 KiB
Makefile
# Copyright 2000-2018 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.
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
|
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
|
# PARTICULAR PURPOSE.
|
|
|
|
|
|
AUTOMAKE_OPTIONS = gnu
|
|
|
|
# ACLOCAL_AMFLAGS will be fully deprecated in Automake 2.0;
|
|
# AC_CONFIG_MACRO_DIRS (introduced in Automake 1.13) is now used instead,
|
|
# but we still set ACLOCAL_AMFLAGS to avoid a warning message from
|
|
# libtoolize and in case some developer needs to switch back to an
|
|
# old Automake version.
|
|
ACLOCAL_AMFLAGS = -I m4
|
|
|
|
SUBDIRS = doc src tests tune tools/bench
|
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
|
pkgconfig_DATA = mpfr.pc
|
|
|
|
nobase_dist_doc_DATA = AUTHORS BUGS COPYING COPYING.LESSER NEWS TODO \
|
|
examples/ReadMe examples/divworst.c examples/rndo-add.c examples/sample.c \
|
|
examples/version.c examples/can_round.c
|
|
|
|
EXTRA_DIST = PATCHES VERSION doc/README.dev doc/check-typography \
|
|
tools/ck-clz_tab tools/ck-copyright-notice tools/ck-news \
|
|
tools/ck-version-info tools/get_patches.sh \
|
|
$(DATAFILES)
|
|
|
|
bench:
|
|
cd tools/bench && $(MAKE) $(AM_MAKEFLAGS) bench
|
|
|
|
# Various checks for "make dist".
|
|
# * Check consistency concerning -version-info. Moreover if the VERSION
|
|
# file doesn't end with "-dev", check that the -version-info value is
|
|
# up-to-date. Note: this is a heuristic, to detect some mistakes.
|
|
# * Check that copyright notices exist and appear to be correct.
|
|
# * Check the NEWS file.
|
|
dist-hook:
|
|
cd $(srcdir) && tools/ck-version-info
|
|
cd $(srcdir) && tools/ck-copyright-notice
|
|
cd $(srcdir) && tools/ck-news
|
|
cd $(srcdir) && tools/ck-clz_tab
|
|
cd $(srcdir)/doc && ./check-typography
|
|
|
|
# Check that MPFR does not use GMP internal symbols. Of course, do not run
|
|
# this rule if you use --with-gmp-build or --enable-gmp-internals.
|
|
# This test does nothing if no libmpfr.so is generated.
|
|
check-gmp-symbols:
|
|
cd src && $(MAKE) check-gmp-symbols
|
|
|
|
# Check that MPFR does not define symbols with a GMP reserved prefix.
|
|
# This test does nothing if no libmpfr.so is generated.
|
|
check-exported-symbols:
|
|
cd src && $(MAKE) check-exported-symbols
|
|
|
|
.PHONY: check-gmp-symbols check-exported-symbols
|