summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* [src/mpfr-impl.h] In the MPFR_RET macro, avoid the use of an integervlefevre2017-05-281-1/+1
| | | | | | | | | | | | | | 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 git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11536 280ebfd0-de03-0410-8827-d642c229c3f4
* [doc/mpfr.texi] Updated the month.vlefevre2017-04-071-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11432 280ebfd0-de03-0410-8827-d642c229c3f4
* [doc/mpfr.texi]vlefevre2017-04-071-2/+3
| | | | | | | | | * Clarified mpfr_asprintf & mpfr_vasprintf specification in case of error. * Corrected an English error. (merged changesets r11264,11430 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11431 280ebfd0-de03-0410-8827-d642c229c3f4
* [doc/mpfr.texi] Updated the month.vlefevre2017-02-261-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11345 280ebfd0-de03-0410-8827-d642c229c3f4
* [doc/mpfr.texi] Completed mpfr_root description: the 0th root gives NaN.vlefevre2017-02-261-1/+2
| | | | | | (merged changesets r9929,9933 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11344 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/sum.c] Added a note about the "const" position in the prototypes.vlefevre2017-02-211-0/+8
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11329 280ebfd0-de03-0410-8827-d642c229c3f4
* [doc/mpfr.texi] Updated the month.vlefevre2017-01-011-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11120 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2017 withvlefevre2017-01-01446-447/+447
| | | | | | | | | 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. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11119 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/strtofr.c] Fixed bug in mpfr_strtofr(): in round-to-nearest,vlefevre2016-12-192-5/+27
| | | | | | | | | 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) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11069 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/vasprintf.c] Fixed a bug: spec.prec can be a negative number othervlefevre2016-12-152-1/+21
| | | | | | | | 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) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11043 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/mpfr-impl.h] Fixed r10917 (thanks to Eli Zaretskii for the report).vlefevre2016-10-251-1/+2
| | | | | | (merged changeset r10920 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@10921 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/mpfr-impl.h] Improved a macro from r10917 (just in case...).vlefevre2016-10-241-1/+1
| | | | | | (merged changeset r10918 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@10919 280ebfd0-de03-0410-8827-d642c229c3f4
* [src] Support build as thread-safe DLL on Windows: clean-up.vlefevre2016-10-248-90/+39
| | | | | | | | | | | | | * 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) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@10917 280ebfd0-de03-0410-8827-d642c229c3f4
* Updated version to 3.1.6-dev.vlefevre2016-09-276-12/+12
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@10896 280ebfd0-de03-0410-8827-d642c229c3f4
* ChangeLog update with "TZ=UTC svn log -rHEAD:0 -v" (in UTF-8 locales).vlefevre2016-09-271-0/+42
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@10892 280ebfd0-de03-0410-8827-d642c229c3f4
* Updated version to 3.1.5.vlefevre2016-09-275-5/+5
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@10891 280ebfd0-de03-0410-8827-d642c229c3f4
* [examples/version.c] A bit more output.vlefevre2016-09-231-2/+4
| | | | | | (merged changeset r10888 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@10889 280ebfd0-de03-0410-8827-d642c229c3f4
* [examples/version.c] Update from the trunk (with svn merge onvlefevre2016-09-231-11/+139
| | | | | | changesets r8034,8036,8128,10885-10886). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@10887 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tdiv.c] Improved code readability, fixing a small bugvlefevre2016-09-141-2/+4
| | | | | | | | (found by David Binderman using cppcheck) at the same time. This bug could only affect the error message if the test failed. (merged changesets r10871-10872 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@10873 280ebfd0-de03-0410-8827-d642c229c3f4
* ChangeLog update with "TZ=UTC svn log -rHEAD:0 -v" (in UTF-8 locales).vlefevre2016-09-131-0/+239
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@10868 280ebfd0-de03-0410-8827-d642c229c3f4
* [doc/mpfr.texi] Updated the month.vlefevre2016-09-131-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@10867 280ebfd0-de03-0410-8827-d642c229c3f4
* Updated version to 3.1.5-rc1 and updated libmpfr_la_LDFLAGS invlefevre2016-09-136-6/+6
| | | | | | src/Makefile.am for the next release. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@10866 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/get_ld.c] Re-added a blank line that disappeared in a merge.vlefevre2016-09-121-0/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@10857 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/get_ld.c] Removed a "see below", which refers to a comment thatvlefevre2016-09-121-1/+1
| | | | | | is in the trunk but not in this branch. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@10856 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tset_ld.c] In bug_20160907, fixed the method to get the smallestvlefevre2016-09-121-11/+14
| | | | | | | subnormal (now, OK with gcc -mpc64 or under NetBSD 6-). (merged changesets r10835-10839 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@10855 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tabs.c] Removed mpfr_test_init (not needed here).vlefevre2016-09-121-1/+0
| | | | | | (merged changeset r10822 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@10854 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tset_ld.c] Move tests_start_mpfr and mpfr_test_init earlier.vlefevre2016-09-121-3/+3
| | | | | | (merged changesets r8688,10821 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@10853 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tset_ld.c] Corrected a type (due to a printf with %ld) and fixedvlefevre2016-09-121-5/+7
| | | | | | | a loop in case an extended range is used. (merged changesets r10818-10819 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@10852 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/get_ld.c] Fixed bug for little-endian x86 extended precision.vlefevre2016-09-082-2/+59
| | | | | | | [tests/tset_ld.c] Added test case. (merged changesets r10807-10809,10811-10812 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@10815 280ebfd0-de03-0410-8827-d642c229c3f4
* [NEWS] Update for GNU MPFR 3.1.5.vlefevre2016-09-081-0/+5
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@10814 280ebfd0-de03-0410-8827-d642c229c3f4
* Fixed various bugs in mpfr_can_round_raw, which affected mpfr_can_round:vlefevre2016-09-055-62/+393
| | | | | | | | | | | | | | there could still be false positives (i.e. mpfr_can_round could say that rounding was possible while correct rounding was not guaranteed), and also false negatives, some of which could yield infinite Ziv loops in user code in practice. Added tests triggering these bugs, in particular a comprehensive test against a naive implementation. (merged changesets r10679-10686,10717-10718,10743,10746-10748,10752,10754,10756 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@10792 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tzeta.c] Updated test_generic invocation based on the trunkvlefevre2016-09-051-1/+4
| | | | | | | in order to reduce the test time (increased since r9849). (merged changesets r9955,10667,10672,10790 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@10791 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tmul.c] Added underflow test from the trunk (merged changesetsvlefevre2016-08-221-0/+105
| | | | | | from r10601 to r10716 for tmul.c only). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@10742 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tsi_op.c] Fixed a macro. There were no consequences exceptvlefevre2016-08-041-7/+9
| | | | | | | spurious null statements. (merged changeset r10724 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@10728 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tset_{si,sj}.c] Fixed macros. There were no consequences exceptvlefevre2016-08-042-2/+2
| | | | | | | spurious null statements. (merged changeset r10721 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@10722 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests] C++ compatibility: avoid errors with "g++ -std=c++11" or later.vlefevre2016-08-044-11/+11
| | | | | | | | | | Note that as of GCC 6, "the default mode for C++ is now -std=gnu++14 instead of -std=gnu++98" <https://gcc.gnu.org/gcc-6/changes.html>. So, this fixes the failures in the build of the MPFR tests with g++ from GCC 6 without particular options. (merged changeset r10719 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@10720 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tsub.c] Added comments for check_max_almosteven.vlefevre2016-05-301-0/+23
| | | | | | (merged changeset r10386 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@10387 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/sub1.c] Fixed bug in mpfr_sub1 (real subtraction b - c, |b| > |c|):vlefevre2016-05-292-5/+139
| | | | | | | | | | | | | In MPFR_RNDN (rounding to nearest), when |b| is the midpoint between the maximum number and 2^emax (the maximum number + 1 ulp) and c is small, the obtained result is an infinity (with overflow) instead of ± the maximum number (no overflow). The cause is that an overflow is generated too early (in the rounding code). [tests/tsub.c] Added test cases. (merged changeset r10383 from the trunk, with conflict resolved in src/sub1.c and mpfr_flags_t replaced by unsigned int) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@10384 280ebfd0-de03-0410-8827-d642c229c3f4
* For mpfr_add_ui and mpfr_sub_ui, make sure that all the expected flagsvlefevre2016-05-224-0/+6
| | | | | | | | | are set (in practice, only NaN was affected). Added testcases from the trunk (merged r10298 and r10303). Note: the trunk was fixed with a partial rewrite for some optimization and to improve consistency, but here, the changes are kept minimal. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@10304 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/mpfr-impl.h] Removed the detection of possible inconsistenciesvlefevre2016-04-131-13/+0
| | | | | | | | | | | | | under Unix because the tests could yield spurious errors with Cygwin32 or other similar implementations. Moreover, such tests were used for debugging purpose or to detect potential problems in the environment, thus were not really useful for the end user. They were initially added in the win-thread-safe-dll branch (r9682, following a problem found in r9680). One alternative for checking by the MPFR developers would be to output the status of some internal macros in tversion. (merged changeset r10260 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@10264 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/mpfr-impl.h] Fixed and improved some sign-related macrosvlefevre2016-03-151-18/+22
| | | | | | | | | (some parentheses were missing). Note: the code in the 3.1 branch was not affected by these missing parentheses; however this could break later patches or ports of new functions using MPFR internals. (merged changeset r9295 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@10234 280ebfd0-de03-0410-8827-d642c229c3f4
* Updated version to 3.1.5-dev.vlefevre2016-03-066-12/+12
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@10204 280ebfd0-de03-0410-8827-d642c229c3f4
* ChangeLog update with "TZ=UTC svn log -rHEAD:0 -v" (in UTF-8 locales).vlefevre2016-03-061-0/+123
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@10201 280ebfd0-de03-0410-8827-d642c229c3f4
* [doc/mpfr.texi] Updated the month.vlefevre2016-03-061-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@10200 280ebfd0-de03-0410-8827-d642c229c3f4
* Updated version to 3.1.4.vlefevre2016-03-065-5/+5
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@10199 280ebfd0-de03-0410-8827-d642c229c3f4
* [INSTALL] Some improvement about MinGW and __USE_MINGW_ANSI_STDIO.vlefevre2016-03-041-3/+6
| | | | | | (merged changeset r10196 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@10197 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tversion.c] Improved output of compiler information.vlefevre2016-03-021-3/+24
| | | | | | (merge changesets r9695-9696,10170,10181-10182 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@10184 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/get_flt.c] FIXME: The code assumes the IEEE-754 binary32 formatvlefevre2016-03-021-0/+3
| | | | | | | with subnormal support. (merged changeset r10175 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@10176 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tget_flt.c] Do tests that may involve subnormals onlyvlefevre2016-03-021-0/+2
| | | | | | | if HAVE_DENORMS is defined. (merged changeset r10173 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@10174 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tget_flt.c] Use DOUBLE_ISNAN() instead of f == f.vlefevre2016-03-011-1/+2
| | | | | | (merge changesets r10160,10163 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@10167 280ebfd0-de03-0410-8827-d642c229c3f4