summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* ChangeLog update with "LC_ALL=en_US.UTF8 TZ=UTC0 svn log -rHEAD:0 -v".vlefevre2019-01-081-0/+26
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13387 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tstrtofr.c] Updated comment about GCC bug 86554: now fixed invlefevre2019-01-081-1/+3
| | | | | | | the GCC trunk. (merged changeset r13385 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13386 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/Makefile.am] Replaced "env -u DISPLAY" by "env DISPLAY=''" asvlefevre2019-01-071-2/+7
| | | | | | | the -u option is not supported by NetBSD. (merged changeset r13383 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13384 280ebfd0-de03-0410-8827-d642c229c3f4
* ChangeLog update with "LC_ALL=en_US.UTF8 TZ=UTC0 svn log -rHEAD:0 -v".vlefevre2019-01-071-0/+20
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13382 280ebfd0-de03-0410-8827-d642c229c3f4
* Updated files:vlefevre2019-01-072-6/+6
| | | | | | | | * COPYING from https://www.gnu.org/licenses/gpl-3.0.txt * COPYING.LESSER from https://www.gnu.org/licenses/lgpl-3.0.txt These are URL updates and cosmetic changes. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13381 280ebfd0-de03-0410-8827-d642c229c3f4
* ChangeLog update with "LC_ALL=en_US.UTF8 TZ=UTC0 svn log -rHEAD:0 -v".vlefevre2019-01-071-9/+1992
| | | | | | | | Note: For r5400, this changes an incorrect update done via r13373 back to the old log message, as the URL in this log message here describes a change in one of the files. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13379 280ebfd0-de03-0410-8827-d642c229c3f4
* [doc/README.dev] Updated some URL's (http → https).vlefevre2019-01-071-10/+10
| | | | | | (merged changeset r13376 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13377 280ebfd0-de03-0410-8827-d642c229c3f4
* [doc/texinfo.tex] Update to 2018-02-12.17 with "autoreconf -i -f".vlefevre2019-01-071-2/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13375 280ebfd0-de03-0410-8827-d642c229c3f4
* Updated the www.gnu.org URL's (http → https) on all the files with:vlefevre2019-01-07505-517/+517
| | | | | | | perl -pi -e 's,http://www.gnu.org/,https://www.gnu.org/,g' **/*(.) under zsh. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13373 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/Makefile.am] Updated libmpfr_la_LDFLAGS for MPFR 4.0.2.vlefevre2019-01-071-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13371 280ebfd0-de03-0410-8827-d642c229c3f4
* Updated version to 4.0.2-rc1.vlefevre2019-01-075-5/+5
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13370 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/strtofr.c] Fixed various issues. In particular, the error analysisvlefevre2019-01-072-177/+555
| | | | | | | | | | | | | | | | | | with associated code was incorrect (due to the bad correction r8384 of a past bug, later really fixed in r11056). Also adapted the code to work with small-size limbs. [tests/tstrtofr.c] Added tests, including random tests. In particular, some part of the code was tested only on hard-to-round cases, meaning that some potential issues could not be detected (intermediate results were thrown out due to the next Ziv iteration). Moreover, in case of failure of some particular test, output the probable cause of this failure (GCC bug 86554) with a workaround. (merged changesets associated with these files r12566-13306,13364-13365 from the trunk) Note: There may still remain issues with mpfr_strtofr, to be checked later. At least, the tests do not fail. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13366 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/mpfr-impl.h] Added a comment with a warning concerning the meaningvlefevre2019-01-041-0/+6
| | | | | | | of MPFR_EXP_FSPEC (corresponding to the merge of mpfr-impl.h r13299 from the trunk; the other part of this commit with be merged later). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13363 280ebfd0-de03-0410-8827-d642c229c3f4
* [doc/mpfr.texi] Updated the month.vlefevre2019-01-011-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13362 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2019 withvlefevre2019-01-01495-496/+496
| | | | | | | | perl -pi -e 's/ (\d{4}-)?(2018)(?= Free Software)/ " ".($1||"$2-").($2+1)/e' **/*(^/) under zsh. Removed 2018 from the example in the doc/README.dev file. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13360 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/set.c] Fixed double-rounding bug in the internal functionvlefevre2018-12-313-12/+183
| | | | | | | | | | | | mpfr_set_1_2 (and simplified the generic algorithm, avoiding the non-portable inex | inex2). [tests/tset.c] Added corresponding tests. [tests/tfmma.c] Added tests as this bug was affecting mpfr_fmma (note: mpfr_set_1_2 is also called in mpfr_fma, but the buggy code could not be executed in this case). (merged changesets r13346-13347,13353-13356 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13357 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tdiv.c] fixed test_20151023 (random number must not be 0).vlefevre2018-12-101-3/+5
| | | | | | (merged changeset r13329 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13330 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/Makefile.am] Unset DISPLAY as it is not needed and it can yieldvlefevre2018-11-292-4/+11
| | | | | | | | | error messages when running the tests with LOG_COMPILER=wine (for builds with MinGW). [tests/tversion.c] Updated a comment about this issue. (merged changesets r13305,13307-13309 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13310 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tdiv.c] Fixed test_20151023().vlefevre2018-11-271-3/+14
| | | | | | (merged changesets r13149,13151,13298 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13301 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tset_str.c] Added bug20180908() test.vlefevre2018-11-261-0/+17
| | | | | | (merged changesets r13164,13296 from the trunk, for the tests directory) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13297 280ebfd0-de03-0410-8827-d642c229c3f4
* [doc/mpfr.texi] Updated the month.vlefevre2018-11-231-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13294 280ebfd0-de03-0410-8827-d642c229c3f4
* MPFR manual: corrected/completed the mpfr_get_str description in ordervlefevre2018-11-223-5/+17
| | | | | | | | to follow the historical behavior and GMP's mpf_get_str function. (Discussion in the Trier meeting.) (merged changeset r13283 from the trunk, with a correction in NEWS) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13284 280ebfd0-de03-0410-8827-d642c229c3f4
* Removed trailing whitespace.vlefevre2018-11-2013-37/+36
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13277 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/mpfr-longlong.h] Fix obsolete ARC asm constraints; see patch postedvlefevre2018-10-181-4/+6
| | | | | | | on <https://sympa.inria.fr/sympa/arc/mpfr/2018-10/msg00010.html>. (merged changeset r13251 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13252 280ebfd0-de03-0410-8827-d642c229c3f4
* [codespell.ignore] Also ignore "ue" (codespell 1.14).vlefevre2018-10-081-0/+1
| | | | | | (merged changeset r13244 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13245 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tdiv_ui.c] fixed corner_cases() testvlefevre2018-09-131-1/+3
| | | | | | (merged changeset r13162 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13187 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tversion.c] Portability corrections related to the use of thevlefevre2018-08-221-29/+40
| | | | | | | preprocessor / code robustness. (merged changeset r13003 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13010 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tsub1sp.c] Added a test by merging r12997 from the trunk, andvlefevre2018-08-211-0/+21
| | | | | | modified the comment to say that the bug is only in the trunk. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12999 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/mpfr-impl.h] Added a cast to mp_bitcnt_t in order to fix potentialvlefevre2018-08-201-9/+9
| | | | | | | integer overflow in MPFR_MPZ_SIZEINBASE2. (merged changeset r12988 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12994 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tcan_round.c] Added missing casts for printf (error messages).vlefevre2018-08-201-4/+4
| | | | | | | | Bug detected under MS Windows, where size_t > unsigned long. See: https://sympa.inria.fr/sympa/arc/mpfr/2018-08/msg00002.html (merged changeset r12983 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12993 280ebfd0-de03-0410-8827-d642c229c3f4
* [tools/mpfrlint] Check that __GMP_DECLSPEC is not used by MPFR.vlefevre2018-08-202-2/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | [src/mpfr-longlong.h] Replaced __GMP_DECLSPEC by __MPFR_DECLSPEC. Otherwise, with Windows DLL, __GMP_DECLSPEC is replaced by __declspec(dllimport), which is wrong when building MPFR and yields warning LNK4217 such as: eint.obj : warning LNK4217: locally defined symbol mpfr_clz_tab imported in function mpfr_eint due to extern const unsigned char __GMP_DECLSPEC __clz_tab[129]; (note that mpfr_clz_tab is defined with "#define __clz_tab mpfr_clz_tab" only without the GMP build). See: https://sympa.inria.fr/sympa/arc/mpfr/2018-08/msg00000.html https://sympa.inria.fr/sympa/arc/mpfr/2018-08/msg00001.html (merged changesets r12975-12977 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12992 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tversion.c] Updated comment about missing output from thevlefevre2018-07-311-1/+2
| | | | | | | first printf with i586-mingw32msvc-gcc -D__USE_MINGW_ANSI_STDIO and run under Wine (issue not reproducible). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12969 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tversion.c] Try to detect missing output from the first printfvlefevre2018-07-301-1/+17
| | | | | | with i586-mingw32msvc-gcc -D__USE_MINGW_ANSI_STDIO and run under Wine. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12968 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4,configure.ac] Check the support of the group flag forvlefevre2018-07-304-10/+58
| | | | | | | | | native integers, which is a Single UNIX Specification extension. [src/vasprintf.c] Fixed bug with the P length modifier (mpfr_prec_t). [tests/tsprintf.c] Added testcases. (merged changesets r12958-12959,12961-12964 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12967 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/vasprintf.c] Bug fix: in case of some errors (via "goto error;"),vlefevre2018-07-301-32/+41
| | | | | | | va_end wasn't called, yielding undefined behavior. (reverse-merged r12965; merged changesets r12955,12957 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12966 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/vasprintf.c] Fixed "store to null pointer" and free of bad pointervlefevre2018-07-301-2/+4
| | | | | | | in case of error. (merged part of changeset r12957 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12965 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/erf.c] In the computation of an error bound, replaced somevlefevre2018-07-232-10/+34
| | | | | | | | | | | | double's (which could overflow) by mpfr_t to fix bug reported by Naoki Shibata: https://sympa.inria.fr/sympa/arc/mpfr/2018-07/msg00028.html [tests/terf.c] Added a testcase for this bug. Increased the number of generic tests in order to reproduce the bug there too with the default seed. (merged changesets r12946-12949 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12950 280ebfd0-de03-0410-8827-d642c229c3f4
* Shared caches: fix and minor changes.vlefevre2018-07-199-10/+35
| | | | | | | | | | | | | | | * Fixed detection and use of C11 thread support: the C11 header is <threads.h>, not <thread.h>. * Renamed WANT_SHARED_CACHE to MPFR_WANT_SHARED_CACHE for consistency with the other MPFR_WANT_* macros. * Added MPFR_THREAD_LOCK_METHOD macro, giving the thread locking method as a string (when shared caches are enabled). * doc/README.dev: documented 4 macros for shared caches. * tests/tversion.c: output MPFR_WANT_SHARED_CACHE and MPFR_THREAD_LOCK_METHOD information. (merged changeset r12937 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12938 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tconst_pi.c] Removed an incorrect assertion, as the #else wouldvlefevre2018-07-181-2/+4
| | | | | | | | be applicable when WANT_SHARED_CACHE is defined but not HAVE_PTHREAD (which may occur when MPFR_HAVE_C11_LOCK is defined). (merged changeset r12935 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12936 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] Fixed the __float128 detection for NetBSD: Optimizationvlefevre2018-07-131-2/+8
| | | | | | | | made the "undefined reference" error disappear, so that __float128 was misdetected as being supported. Also updated the message. Note: this change is similar to the r12921-12922 ones in the trunk. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12923 280ebfd0-de03-0410-8827-d642c229c3f4
* [NEWS] Update for GNU MPFR 4.0.2.vlefevre2018-07-121-0/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12918 280ebfd0-de03-0410-8827-d642c229c3f4
* [doc/mpfr.texi] In Section "Nomenclature and Types":vlefevre2018-07-121-22/+30
| | | | | | | | | | * rewrote the paragraph defining "floating-point number", avoiding ambiguities; * removed all the @noindent, whose purpose is unclear; * defined regular numbers and exponents. (merged changesets r12906-12908 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12917 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] For the __float128 detection, changed AC_COMPILE_IFELSEvlefevre2018-07-121-1/+5
| | | | | | | | | | | to AC_LINK_IFELSE since an error may occur only at link time, such as under NetBSD: https://mail-index.netbsd.org/pkgsrc-users/2018/02/02/msg026220.html https://mail-index.netbsd.org/pkgsrc-users/2018/02/05/msg026238.html Note: this change is similar to the r12915 one in the trunk, except that we do not try to detect _Float128 in the 4.0 branch. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12916 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/Makefile.am] Corrected check-exported-symbols to avoid a failurevlefevre2018-07-121-1/+1
| | | | | | | | | when the default .SHELLFLAGS value is '-ec' (POSIX) instead of '-c' (GNU Make, which is not in POSIX-conforming mode by default). Bug found on FreeBSD 11.1 (Compile Farm @ HouseGordon.com). (merged changeset r12913 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12914 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/vasprintf.c] Fixed several bugs in buffer_sandwich, which couldvlefevre2018-07-101-12/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | yield memory corruption with non-default memory allocators and other undefined behavior; check the return value when this function is called. Details: * check integer overflow on the size computations; * computation of q and r without tests; * fixed the case where r > len (e.g. len = 1 and tz = 1); * in the loop, increase the str pointer only when needed, otherwise str could be beyond of the end of the string of the digits, which is undefined behavior. The first consequence of the r > len issue was an incorrect generated string. Moreover, since the generated string was shorter than expected, mpfr_free_str would provide an incorrect buffer size to the "free" function of the current GMP memory allocator. By default, this size is ignored, but it may matter if the memory allocators have been changed with the mp_set_memory_functions GMP function, in which case a possible consequence could be memory corruption. Note: This corresponds to r12869 from the trunk. Other changes in the trunk (dead code removal...) have not been applied. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12909 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/{tprintf.c,tsprintf.c}] Merged the latest tests from the trunkvlefevre2018-07-062-21/+196
| | | | | | (r12562:12903). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12904 280ebfd0-de03-0410-8827-d642c229c3f4
* [doc/mpfr.texi] Updated the month.vlefevre2018-07-061-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12897 280ebfd0-de03-0410-8827-d642c229c3f4
* [AUTHORS,doc/mpfr.texi] Typo in Fredrik's name.vlefevre2018-07-062-2/+2
| | | | | | (merged changesets r12888-12889 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12890 280ebfd0-de03-0410-8827-d642c229c3f4
* Added MPFR_CHECK_LOCALES environment variable for the tests (to bevlefevre2018-07-043-11/+44
| | | | | | | | | used by developers): when set, terminate with an error if locales cannot be tested. (merged changeset r12870 from the trunk; merging tests/tprintf.c r12861 was needed first) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12872 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tget_set_d64.c] Tests on powers of 10: test negative numbers too.vlefevre2018-06-201-8/+23
| | | | | | (merged part of changeset r12792 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12793 280ebfd0-de03-0410-8827-d642c229c3f4