summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* [doc/mpfr.texi] Updated the month.3.1vlefevre2018-02-011-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@12174 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/div_ui.c] Various bug fixes.vlefevre2018-02-012-83/+386
| | | | | | | | (merged changesets r10704,11014,11141-11155,12139-12163 from the trunk) [tests/tdiv_ui.c] Added tests, in particular triggering the above bugs. (merged changesets r11141-11144,12139-12159,12167-12172 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@12173 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2018 withvlefevre2018-02-01446-447/+447
| | | | | | | | | | perl -pi -e 's/ (\d{4}-)?(2017)(?= Free Software)/ " ".($1||"$2-").($2+1)/e' **/*(^/) under zsh. About tools/ck-mparam, just keep the year 2011 like in the trunk since this file is not part of the tarball (just used by mpfrlint). Removed 2017 from the example in the doc/README.dev file. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@12171 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tdiv.c] Merged various tests from the trunk into the 3.1 branch.vlefevre2018-01-261-1/+219
| | | | | | | | | | These tests triggered bugs in the new division code in the trunk; they may be useful here in the 3.1 branch to make sure that these bugs were not already present. (merged changesets r10765,10770,10772,11139,11141,12002,12016,12128 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@12131 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/root.c] Fixed the case |x| = 1 and k > 100.vlefevre2017-12-152-1/+36
| | | | | | | [tests/troot.c] Added non-regression tests. (merged changesets r11978-11981 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11982 280ebfd0-de03-0410-8827-d642c229c3f4
* [src] Fixed the behavior of the mpfr_get_* functions in a very reducedvlefevre2017-10-126-13/+63
| | | | | | | | exponent range. (merged changesets r11770,11774,11775,11777 and r11779 manually from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11783 280ebfd0-de03-0410-8827-d642c229c3f4
* Updated version to 3.1.7-dev again.vlefevre2017-09-086-12/+12
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11735 280ebfd0-de03-0410-8827-d642c229c3f4
* Updated various URL's: switch from ftp / http to https.vlefevre2017-09-084-5/+5
| | | | | | (merged changesets r11727-11729 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11731 280ebfd0-de03-0410-8827-d642c229c3f4
* Reverted to version 3.1.6 for online MPFR manual regeneration.vlefevre2017-09-086-12/+12
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11730 280ebfd0-de03-0410-8827-d642c229c3f4
* Updated version to 3.1.7-dev.vlefevre2017-09-076-12/+12
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11723 280ebfd0-de03-0410-8827-d642c229c3f4
* ChangeLog update with "TZ=UTC svn log -rHEAD:0 -v" (in UTF-8 locales).vlefevre2017-09-071-0/+116
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11720 280ebfd0-de03-0410-8827-d642c229c3f4
* Updated version to 3.1.6.vlefevre2017-09-075-5/+5
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11719 280ebfd0-de03-0410-8827-d642c229c3f4
* [doc/mpfr.texi] Updated the month.vlefevre2017-09-051-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11710 280ebfd0-de03-0410-8827-d642c229c3f4
* Updated version to 3.1.6-rc2 (at least for the developers, so thatvlefevre2017-09-055-5/+5
| | | | | | intermediate versions with new changes cannot be confused with rc1). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11709 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tsprintf.c] With MPFR_CHECK_LIBC_PRINTF, disable the test ofvlefevre2017-09-051-3/+7
| | | | | | | | 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) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11708 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/mpfr-impl.h] In case decimal_point and/or thousands_sep arevlefevre2017-09-051-3/+16
| | | | | | | | | 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) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11707 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests]vlefevre2017-09-055-9/+7
| | | | | | | | | | | | | | * 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) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11703 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/turandom.c] Correction for 16-bit int.vlefevre2017-09-011-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11694 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/turandom.c] print got/expected probabilities in test_underflow()zimmerma2017-08-301-3/+11
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11693 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/turandom.c] forgot exp=1 casezimmerma2017-08-291-5/+6
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11692 280ebfd0-de03-0410-8827-d642c229c3f4
* added test_underflow()zimmerma2017-08-291-0/+25
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11691 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/urandom.c] Clarified a comment about a subtle case.vlefevre2017-08-291-4/+10
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11689 280ebfd0-de03-0410-8827-d642c229c3f4
* [configure.ac] In "configure --help" output for --enable-decimal-float,vlefevre2017-08-281-1/+1
| | | | | | | mention that this option requires --with-gmp-build (this is for the 3.1 branch only). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11687 280ebfd0-de03-0410-8827-d642c229c3f4
* ChangeLog update with "TZ=UTC svn log -rHEAD:0 -v" (in UTF-8 locales).vlefevre2017-08-281-1/+882
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11682 280ebfd0-de03-0410-8827-d642c229c3f4
* Updated version to 3.1.6-rc1 and updated libmpfr_la_LDFLAGS invlefevre2017-08-286-6/+6
| | | | | | src/Makefile.am for the next release. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11681 280ebfd0-de03-0410-8827-d642c229c3f4
* Corrections for use with --with-gmp-build.vlefevre2017-08-282-5/+5
| | | | | | | | | * 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). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11672 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/turandom.c] Disabled the reprod_abi test with GMP < 4.2.0vlefevre2017-08-271-0/+2
| | | | | | | since the hardcoded values would be different. (merged changeset r11669 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11670 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/turandom.c] Check that the behavior does not depend on thevlefevre2017-08-271-0/+87
| | | | | | | | platform ABI or MPFR version. (merged changeset r11663 from the trunk, and updated the hardcoded values for this 3.1 branch) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11668 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/turandom.c] In bug20170123, use a local gmp_randstate_t variablevlefevre2017-08-271-2/+5
| | | | | | | instead of mpfr_rands, due to the gmp_randseed_ui. (merged changeset r11654 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11667 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/mpfr-gmp.h,tests/tests.c] Got rid of __gmp_randstate_struct, whichvlefevre2017-08-272-7/+3
| | | | | | | | 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) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11666 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/turandom.c] Disabled a test with GMP < 4.2.0 since it depends onvlefevre2017-08-271-1/+5
| | | | | | | | 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) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11665 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/urandom.c] Generate the exception flags for mpfr_urandom almost asvlefevre2017-08-223-28/+220
| | | | | | | | | | | | | | | | | | | | 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) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11649 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/urandom.c] Fixed bug reported by Trevor Spiteri:vlefevre2017-08-222-4/+24
| | | | | | | | <https://sympa.inria.fr/sympa/arc/mpfr/2017-01/msg00020.html> [tests/turandom.c] Added non-regression test. (merged changesets r11218-11219,11221 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11648 280ebfd0-de03-0410-8827-d642c229c3f4
* [doc/mpfr.texi] Slightly changed the paragraph about memory allocationvlefevre2017-08-211-4/+4
| | | | | | by MPFR (after a discussion with PZ). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11633 280ebfd0-de03-0410-8827-d642c229c3f4
* [doc/mpfr.texi] Update about the memory allocation (added referencesvlefevre2017-08-211-12/+6
| | | | | | to Section "Memory Handling"). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11632 280ebfd0-de03-0410-8827-d642c229c3f4
* [doc/mpfr.texi] Added a paragraph about memory allocation by MPFR.vlefevre2017-08-211-0/+17
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11631 280ebfd0-de03-0410-8827-d642c229c3f4
* [doc/mpfr.texi] Updated the month.vlefevre2017-08-031-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11618 280ebfd0-de03-0410-8827-d642c229c3f4
* [doc/mpfr.texi] Updated paragraph on the MPFR formatted output functionsvlefevre2017-08-031-27/+7
| | | | | | | and overflow on the return type int. Removed obsolete comments. (merged changesets r11403,11614-11615 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11616 280ebfd0-de03-0410-8827-d642c229c3f4
* [NEWS] Update for GNU MPFR 3.1.6.vlefevre2017-08-021-0/+8
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11613 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/mpf_compat.h] Include "mpfr-test.h" instead of "mpfr-impl.h",vlefevre2017-08-011-1/+1
| | | | | | | | 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 git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11606 280ebfd0-de03-0410-8827-d642c229c3f4
* [tools/mpfrlint] Detect "mpfr-impl.h" inclusion by the test programs:vlefevre2017-08-011-0/+5
| | | | | | | | "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.) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11605 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/sin_cos.c] Avoid integer overflows with precision 1100000 andvlefevre2017-07-171-2/+4
| | | | | | | | 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) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11591 280ebfd0-de03-0410-8827-d642c229c3f4
* [configure.ac] Under Linux, make sure that the old dtags are usedvlefevre2017-07-171-0/+30
| | | | | | | | if LD_LIBRARY_PATH is defined, avoiding the following issue: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=859732 https://lists.gnu.org/archive/html/libtool/2017-05/msg00000.html git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11587 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/mpfr-impl.h] Fixed the mpfr_get_default_rounding_mode() macro forvlefevre2017-06-051-5/+9
| | | | | | | | 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) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11580 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/mpf2mpfr.h] Fixed mpf_fits_s* and mpf_get_si macros.vlefevre2017-06-052-12/+16
| | | | | | | | [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) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11579 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/vasprintf.c] In a macro definition, changed a parameter tovlefevre2017-05-291-4/+4
| | | | | | | lowercase so that it doesn't look like a constant to mpfrlint. (merged changeset r11521 from the trunk, completing r11538) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11541 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tsprintf.c] Fixed setlocale usage (problem detected with MinGWvlefevre2017-05-281-3/+2
| | | | | | | | | | | 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) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11540 280ebfd0-de03-0410-8827-d642c229c3f4
* [src] Moved "#include <errno.h>" from printf.c to vasprintf.c (thisvlefevre2017-05-283-3/+32
| | | | | | | | | | | 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. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11539 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/vasprintf.c] Fixed overflow checking in partition_number().vlefevre2017-05-281-24/+24
| | | | | | | | | | | | | | | | | 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) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11538 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests] Increase buffer sizes to avoid a build failure with GCC 7vlefevre2017-05-282-2/+2
| | | | | | | | | | 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) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11537 280ebfd0-de03-0410-8827-d642c229c3f4