summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* [NEWS] For MPFR 4.1.0, added an item saying that TLS can safely bevlefevre2020-07-011-0/+5
| | | | | | (re-)enabled on Sparc. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@14047 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/mpfr-test.h] Avoid a GCC bug on Sparc, at least when using TLS.vlefevre2020-06-291-0/+46
| | | | | | | | | | The MPFR library itself is not affected, only a particular test. Normal code using the MPFR library should not be affected either, as the bug occurs when accessing __gmpfr_flags directly (and the public mpfr.h header file does not provide any macro that accesses an internal variable directly). So a workaround for the tests is the best solution. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@14045 280ebfd0-de03-0410-8827-d642c229c3f4
* [NEWS] Update for the next release.vlefevre2020-06-181-0/+3
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@14040 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/mpfr-longlong.h] Mention applied patch (in r14035).vlefevre2020-06-181-1/+3
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@14036 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/mpfr-longlong.h] Applied patch onvlefevre2020-06-171-103/+42
| | | | | | | | | | https://gmplib.org/list-archives/gmp-bugs/2020-June/004807.html to fix add_ssaaaa and sub_ddmmss on arm / aarch64 (after a reverse-merge of r14032 and r13997), in order to resolve https://sympa.inria.fr/sympa/arc/mpfr/2020-06/msg00017.html https://sympa.inria.fr/sympa/arc/mpfr/2020-06/msg00059.html git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@14035 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tcmp_ui.c] Added a comment about a failing test with tcc ifvlefevre2020-06-171-0/+6
| | | | | | | | one adds tcc support for macros using __builtin_constant_p in mpfr.h by testing __TINYC__. Bug report against tcc: https://savannah.nongnu.org/bugs/?58606 git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@14034 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/mpfr-longlong.h] disable buggy sub_ddmmss for aarch64zimmerma2020-06-161-1/+3
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@14032 280ebfd0-de03-0410-8827-d642c229c3f4
* [doc/mpfr.texi] Corrected and detailed the description ofvlefevre2020-06-151-1/+4
| | | | | | mpfr_get_str_ndigits. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@14031 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/get_str.c] Since the mpfr_get_str_ndigits function is in thevlefevre2020-06-151-1/+1
| | | | | | | | public API, use MPFR_ASSERTN instead of MPFR_ASSERTD on the condition on the argument b in order to get an assertion failure (by default) if this condition is not satisfied. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@14030 280ebfd0-de03-0410-8827-d642c229c3f4
* [doc/mpfr.texi] specify the range of b for mpfr_get_str_ndigitszimmerma2020-06-151-0/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@14029 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tdigamma.c] Increase the number of tests.vlefevre2020-06-141-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@14028 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/digamma.c] fixed bug found while testing mpfr-4.1.0-rc1zimmerma2020-06-141-1/+4
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@14027 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/digamma.c] Added a FIXME.vlefevre2020-06-141-0/+4
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@14026 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/digamma.c] Replaced mpfr_get_exp by MPFR_GET_EXP.vlefevre2020-06-141-4/+4
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@14025 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/digamma.c]vlefevre2020-06-141-16/+18
| | | | | | | | | | | | * Replaced some MPFR_EXP by MPFR_GET_EXP to check that the MPFR number has an exponent (i.e. it is not a special value). → Assertion failure in tdigamma (on x86_64). Note: this might be the cause of an unexpected loop (infinite loop?) on a Debian 10.4 POWER9 machine: https://sympa.inria.fr/sympa/arc/mpfr/2020-06/msg00025.html * Added an integer overflow check on a precision. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@14024 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tset_ld.c] In a test specific to x86 extended precision, in casevlefevre2020-06-131-0/+16
| | | | | | | | | | | of incorrect result, detect whether Valgrind is used and one gets the result obtained with Valgrind due to https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=890215 https://bugs.kde.org/show_bug.cgi?id=421262 (long double behaves as double); in this case, output a message without an error since Valgrind is the only cause of the miscalculation. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@14023 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tset_ld.c] bug_20160907 (tests on subnormals):vlefevre2020-06-131-3/+8
| | | | | | | * Replaced an assertion by a test with detailed output. * Corrected a value in a test, which did not match the comment. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@14022 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests] Skip tabort_defalloc1 and tabort_defalloc2 under Valgrind, asvlefevre2020-06-134-0/+24
| | | | | | | | | | Valgrind complains due to the large allocation size. * mpfr-test.h, tests.c: added tests_run_within_valgrind() function to guess whether the test runs within Valgrind. * tabort_defalloc1.c, tabort_defalloc2.c: skip the test (exit code 77) if this function returns true. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@14021 280ebfd0-de03-0410-8827-d642c229c3f4
* [configure.ac] Improvements concerning the default CFLAGS with GCC.vlefevre2020-06-131-2/+8
| | | | | | | | | | * Add -Wc++-compat option to CFLAGS with GCC ≥ 4.1 not in C++ mode. Changes based on Bruno Haible's patch suggested at https://sympa.inria.fr/sympa/arc/mpfr/2020-06/msg00008.html (with some autoconf related fixes). * Output the $CFLAGS value that is eventually used. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@14020 280ebfd0-de03-0410-8827-d642c229c3f4
* [configure.ac] No longer add -Wc++-compat to CFLAGS when the compilervlefevre2020-06-131-1/+3
| | | | | | | | is GCC not in C++ mode (reverting the change done in r13406) since this option is not available before GCC 4.1: https://sympa.inria.fr/sympa/arc/mpfr/2020-06/msg00008.html git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@14018 280ebfd0-de03-0410-8827-d642c229c3f4
* [doc/mpfr.texi] ACM TOMS article: use the preferred DOI URL.vlefevre2020-06-131-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@14015 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tfpif.c] Updated comment about the bug detected on AIX.vlefevre2020-06-131-1/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@14012 280ebfd0-de03-0410-8827-d642c229c3f4
* [tools/announce-text] For release candidates, automatically adapt thevlefevre2020-06-131-3/+12
| | | | | | flow of the text. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@14010 280ebfd0-de03-0410-8827-d642c229c3f4
* [NEWS] Updated mpfr.org URLs (http → https).vlefevre2020-06-131-2/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@14009 280ebfd0-de03-0410-8827-d642c229c3f4
* [tools/announce-text] Better line lengths for release candidates.vlefevre2020-06-131-3/+3
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@14008 280ebfd0-de03-0410-8827-d642c229c3f4
* [README] Added URL of the official GNU MPFR website and a note about thevlefevre2020-06-121-0/+10
| | | | | | future migration, since InriaForge will shut down in December 2020. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@14005 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tests.c] Removed a useless "#include <errno.h>" (added in r5252,vlefevre2020-06-121-1/+0
| | | | | | useless since r5253). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@14004 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tfpif.c] Fixed a bug (in the test) detected on AIX[*], wherevlefevre2020-06-121-1/+27
| | | | | | | | | | an fclose failed due to a previous read failure. At the same time, check that a read failure no longer occurs. Note: the read failure made mpfr_fpif_import fail, but this is a test where it is expected to fail, i.e. we now check that it fails for a good reason. [*] gcc119.fsffrance.org on the GCC Compile farm. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@14003 280ebfd0-de03-0410-8827-d642c229c3f4
* [tools/update-version] Improved a message.vlefevre2020-06-121-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13999 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/mpfr-longlong.h] Corrected a comment from GMP's longlong.h, whichvlefevre2020-06-121-1/+1
| | | | | | makes codespell complain in particular. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13997 280ebfd0-de03-0410-8827-d642c229c3f4
* [tools/mpfrlint] Improved the __GMP_DECLSPEC test:vlefevre2020-06-121-2/+4
| | | | | | | * No longer exclude "src/mpfr.h". * Avoid false positives in "src/mpfr.h" and "src/mpfr-longlong.h". git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13995 280ebfd0-de03-0410-8827-d642c229c3f4
* [doc/mpfr.texi] Updated the month.vlefevre2020-06-121-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13993 280ebfd0-de03-0410-8827-d642c229c3f4
* Updated version to 4.2.0-dev.vlefevre2020-06-126-10/+10
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13992 280ebfd0-de03-0410-8827-d642c229c3f4
* ChangeLog update with "LC_ALL=en_US.UTF8 TZ=UTC0 svn log -rHEAD:0 -v".vlefevre2020-06-121-0/+2044
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13990 280ebfd0-de03-0410-8827-d642c229c3f4
* Renamed mpfr_total_order to mpfr_total_order_p for consistency with thevlefevre2020-06-115-19/+19
| | | | | | other predicates (by convention, the function name should end with _p). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13989 280ebfd0-de03-0410-8827-d642c229c3f4
* [NEWS] New function mpfr_total_order. Detailed mpfr_get_str_ndigits.vlefevre2020-06-111-1/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13987 280ebfd0-de03-0410-8827-d642c229c3f4
* [doc/README.dev] Updated "To make a release".vlefevre2020-06-111-5/+7
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13986 280ebfd0-de03-0410-8827-d642c229c3f4
* [doc/README.dev] Updated "To make a release".vlefevre2020-06-111-12/+20
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13980 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/Makefile.am] Updated -version-info to 7:0:1 for MPFR 4.1.0.vlefevre2020-06-111-1/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13979 280ebfd0-de03-0410-8827-d642c229c3f4
* [NEWS] Additional details, in particular binary compatibility.vlefevre2020-06-111-1/+5
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13978 280ebfd0-de03-0410-8827-d642c229c3f4
* [NEWS] Some improvements.vlefevre2020-06-111-2/+3
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13977 280ebfd0-de03-0410-8827-d642c229c3f4
* [doc/mini-gmp] one more test is skipped nowzimmerma2020-06-111-3/+3
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13976 280ebfd0-de03-0410-8827-d642c229c3f4
* [doc/mini-gmp] add test results with reduced limb size (int)zimmerma2020-06-111-0/+13
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13975 280ebfd0-de03-0410-8827-d642c229c3f4
* [doc/README.dev] Updated "To make a release".vlefevre2020-06-111-0/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13974 280ebfd0-de03-0410-8827-d642c229c3f4
* [NEWS] Added release name for 4.1.0: "épinards à la crème".vlefevre2020-06-101-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13973 280ebfd0-de03-0410-8827-d642c229c3f4
* [doc/mini-gmp] English usage improvement.vlefevre2020-06-101-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13971 280ebfd0-de03-0410-8827-d642c229c3f4
* Fixed 2 issues with tests/tvalist.c:vlefevre2020-06-102-23/+10
| | | | | | | | | | | | | | | | | | | 1. When building with mini-gmp (--with-mini-gmp=DIR) without optimizations (-O0), the build of tvalist was failing because the formatted output functions are not supported (this issue wasn't noticed with optimizations due to dead code elimination). Fix: this test is disabled with mini-gmp (not needed anyway). 2. Dead code elimination with optimizations partly broke the goal of this test, i.e. checking that mpfr_vfprintf was available. This dead code was introduced in r7648 "Make sure that fct is used (avoid a warning)." (where fct = mpfr_vfprintf) but was actually not sufficient. Fix: call mpfr_vfprintf unconditionally, but on an empty string in order to avoid output to stdout. In addition to these changes in tests/tvalist.c, src/mpfr-impl.h could be simplified as a consequence. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13970 280ebfd0-de03-0410-8827-d642c229c3f4
* Removed '# undef HAVE_STDARG' before '# include "config.h"' when itvlefevre2020-06-104-4/+0
| | | | | | | | | was used, as it was not always undefined (e.g. in tests/tsprintf.c) and there are no reasons to undefine this macro specifically. Note: this code was introduced in r2665 (2004-02-06), perhaps for the MPFR build inside GMP, which has been dropped a long time ago. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13969 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tvalist.c] Updated a comment.vlefevre2020-06-101-2/+3
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13968 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tvalist.c] Correction when config.h is used (code copied fromvlefevre2020-06-101-0/+5
| | | | | | src/inits.c). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13967 280ebfd0-de03-0410-8827-d642c229c3f4