summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* [src/set_d64.c] Fixed ternary value, which was always 0. This is done byvlefevre2018-06-192-1/+47
| | | | | | | | | using mpfr_strtofr instead of mpfr_set_str (merged part of changeset r12783 from the trunk). [tests/tget_set_d64.c] Added tests on powers of 10, checking the ternary value in particular (merged part of changeset r12782 from the trunk). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12786 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tstckintc.c] Avoid false warnings with -Wcast-align=strict fromvlefevre2018-06-191-6/+24
| | | | | | | | | GCC 8.1 by adding casts "(long *) (void *)", still allowing checks of other alignment requirements (which are not handled by the tstckintc.c code). (merged changeset r12698 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12785 280ebfd0-de03-0410-8827-d642c229c3f4
* codespell: simplified exceptions.vlefevre2018-06-063-9/+12
| | | | | | | | | | * Added codespell.exclude file. * codespell.ignore: removed some words (particular cases). * tools/mpfrlint: use the codespell.exclude exclude file, and for the doc directory, replaced -S by an explicit list of files. (merged changesets r12486,12497,12753-12754 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12760 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/invert_limb.h] fixed two typos reported by Marco Bodrato.vlefevre2018-06-021-2/+2
| | | | | | | | Note that with the current MPFR code, these typos did not have any consequence. (merged changeset r12749 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12750 280ebfd0-de03-0410-8827-d642c229c3f4
* [doc/mpfr.texi] Updated the month.vlefevre2018-05-311-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12743 280ebfd0-de03-0410-8827-d642c229c3f4
* Updated mpfr.org URL's to use https (except in ChangeLog and NEWS).vlefevre2018-05-319-17/+17
| | | | | | (marked changeset r12740 as merged from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12741 280ebfd0-de03-0410-8827-d642c229c3f4
* [tools/announce-text] http → https (for mpfr.org).vlefevre2018-05-301-10/+10
| | | | | | (merged changeset r12734 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12736 280ebfd0-de03-0410-8827-d642c229c3f4
* [doc] Changes due to the https support by mpfr.org.vlefevre2018-05-303-4/+17
| | | | | | | | | | * faq.xsl: for the visual.css, use a local URL since libxml2 does not support https. * update-faq: download visual.css from mpfr.org first. * FAQ.html: update with update-faq. (merged changesets r12731-12733 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12735 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/{inp_str.c,out_str.c}] For mpfr_inp_str and mpfr_out_str, whenvlefevre2018-04-262-7/+0
| | | | | | | | | | | | the stream was a null pointer, it was replaced by stdin and stdout, respectively. No longer do that, since: * This behavior was useless, not documented, and not consistent with other I/O functions. * Just in case a null pointer for the stream has a special meaning with some C implementation, MPFR was not behaving as documented. (merged changesets r12520-12521 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12680 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/gmp_op.c] Fixed a bug in mpfr_cmp_q on NaN rational: the NaN flagvlefevre2018-04-262-5/+32
| | | | | | | | | | was set by mpfr_set_q, but the flags were not restored just after. [tests/tgmpop.c] For mpfr_cmp_q, improved the test where x is NaN by checking all the flags (not just erange) and added a test where y is a NaN rational. (merged changesets r12343,12677 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12679 280ebfd0-de03-0410-8827-d642c229c3f4
* Merged recent tests from the trunk (r12500-12555,12558,12561).vlefevre2018-04-266-5/+262
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12675 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/Makefile.am] Update of the "check" rule:vlefevre2018-04-261-1/+7
| | | | | | | | | * Output svnversion info when applicable. * Do not echo (complex) commands. * Do not output a useless "PASS ..." line at the end. (merged changesets r12535-12536 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12674 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/gmp_op.c] Fixed bug in mpfr_cmp_q when the denominator of thevlefevre2018-04-252-1/+50
| | | | | | | | mpq_t argument is 0. [tests/tgmpop.c] Added tests. (merged changesets r12499,12502 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12664 280ebfd0-de03-0410-8827-d642c229c3f4
* [doc/mpfr.texi] Updated the month.vlefevre2018-04-251-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12663 280ebfd0-de03-0410-8827-d642c229c3f4
* Merged recent tests from the trunk (r12435-12453).vlefevre2018-04-253-3/+15
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12662 280ebfd0-de03-0410-8827-d642c229c3f4
* Fixed an issue with mpfr_get_str: The number 1 of significant digitsvlefevre2018-04-193-9/+43
| | | | | | | | | | | | | | | | | output in the string is now fully supported, i.e. * the value 1 can be provided for n (4th argument); * if n = 0, then the number of significant digits in the output string can now be 1, as already implied by the documentation (but the code was increasing it to 2). Changes: * doc/mpfr.texi: updated mpfr_get_str description to accept n = 1. * src/get_str.c: fixed the code as explained above (for n = 0, removed the increase to 2, and removed an MPFR_ASSERTN). * tests/tget_str.c: added tests. (merged changesets from the trunk: r12430 on tests/tget_str.c only; r12432,12434,12440) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12642 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tget_flt.c] Correction about the use of mpfr_signbit, in casevlefevre2018-04-191-1/+1
| | | | | | | the implementation would change. (merged changeset r12631 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12632 280ebfd0-de03-0410-8827-d642c229c3f4
* Merged recent tests from the trunk (r12393-12424).vlefevre2018-04-196-101/+333
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12630 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/sqr.c] Fixed a bug in mpfr_sqr_1n in a rare case near underflow.vlefevre2018-04-192-9/+163
| | | | | | | | [tests/tsqr.c] Added tests, including non-regression for above bug (manually patched src/sqr.c since r12398 had other, unrelated changes; merged changesets r12398-12399 on tests/tsqr.c from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12629 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/fma.c] Fixed various bugs related to internal overflows/underflows.vlefevre2018-04-192-226/+604
| | | | | | | | [tests/tfma.c] Added tests. (merged changesets r12393-12405,12583-12623 on these files from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12624 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests] Removed some useless #include's, in particular all thevlefevre2018-04-113-8/+0
| | | | | | | | | | | | unconditional #include <math.h> occurrences. Note: There is an incompatibility between glibc 2.27 and the math.h provided by ICC 15 (at least), and this solves a compilation failure in the build of the tests. Moreover, <math.h> is not required by freestanding implementations, so that it may be better to avoid it if possible. (merged changeset r12488 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12581 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests] Merged the test from r12348, and replaced MUL_FFT_THRESHOLDvlefevre2018-04-111-1/+16
| | | | | | | by its default value 8448 (since the definition of MUL_FFT_THRESHOLD has not been moved in the 4.0 branch). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12580 280ebfd0-de03-0410-8827-d642c229c3f4
* Merged recent tests from the trunk (r12288-12347).vlefevre2018-04-119-20/+699
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12579 280ebfd0-de03-0410-8827-d642c229c3f4
* Fixed type errors with -D_MPFR_PREC_FORMAT=2 in CFLAGS and thevlefevre2018-04-113-8/+16
| | | | | | | --enable-assert=full configure option (signaled by GCC's -Wformat). (merged changesets r12301-12302 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12578 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tversion.c] Output the sizes of long and intmax_t, andvlefevre2018-04-111-0/+18
| | | | | | | "Generic ABI code" info (MPFR_GENERIC_ABI). (merged changesets r12447,12575 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12577 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/sub1sp.c] fixed bug in mpfr_sub1sp1n (corner case when a=c).vlefevre2018-04-111-1/+3
| | | | | | | | This fixes the failures from r12288. (merged changeset r12285 from the trunk; note that the merge for the tests directory had already been done via r12288) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12576 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/mpfr-impl.h] Typo in a comment.vlefevre2018-03-141-1/+1
| | | | | | (merged changeset r12421 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12480 280ebfd0-de03-0410-8827-d642c229c3f4
* Fixed spelling mistakes found by codespell 1.12.0.vlefevre2018-03-0910-18/+18
| | | | | | (merged changeset r12474 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12475 280ebfd0-de03-0410-8827-d642c229c3f4
* Added codespell.ignore file with simple words to ignore with codespellvlefevre2018-03-089-11/+16
| | | | | | | | | | ("cas"; "iff" as used in math; "nd" as the n comes from \n in printf, but nd could also be a variable name; "te" as used as a variable name). Updated tools/mpfrlint to use this file with codespell. Fixed spelling mistakes found by codespell 1.11.0. (merged changesets r12467-12469 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12470 280ebfd0-de03-0410-8827-d642c229c3f4
* [doc/mpfr.texi] Updated the month.vlefevre2018-03-051-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12465 280ebfd0-de03-0410-8827-d642c229c3f4
* [doc/mpfr.texi] Typographic corrections for mpfr_subnormalize.vlefevre2018-03-051-4/+4
| | | | | | (merged changeset r12462 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12463 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/get_sj.c] And now that the incorrect assertions have been removed,vlefevre2018-02-231-2/+2
| | | | | | the condition sh >= 0 needs to be fixed to sh > 0... git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12431 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/get_sj.c] Removed unnecessary condition sh < GMP_NUMB_BITS, whichvlefevre2018-02-231-2/+2
| | | | | | is incorrect with some C implementations. It came from r7047. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12428 280ebfd0-de03-0410-8827-d642c229c3f4
* Merged the latest tests from the trunk (r12258-12287).vlefevre2018-02-175-4/+401
| | | | | | | tsub and tsub1sp fail (bug fixed in the trunk) with both 32-bit and 64-bit ABI's, except when MPFR is built with "-DMPFR_GENERIC_ABI". git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12288 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tsub.c] Added bug20180216 test currently failing in the trunkvlefevre2018-02-161-0/+41
| | | | | | | in r12257. (merged changesets r12256-12257 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12258 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tsub.c] Added bug20180215 test currently failing in the trunkvlefevre2018-02-151-0/+33
| | | | | | | in r12243. (merged changeset r12246 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12247 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tadd.c] Added 2 tests that were failing in the trunk in r12220.vlefevre2018-02-131-0/+8
| | | | | | (merged changeset r12221 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12224 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests]vlefevre2018-02-0810-11/+9
| | | | | | | | | * tset_float128.c, tset_ld.c: removed obsolete WITH_FPU_CONTROL related code. * Added/updated comments about the config.h inclusion. (merged changesets r12214-12215 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12216 280ebfd0-de03-0410-8827-d642c229c3f4
* [INSTALL] Updated GMP URL.vlefevre2018-02-071-1/+1
| | | | | | (merged changeset r12212 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12213 280ebfd0-de03-0410-8827-d642c229c3f4
* [NEWS] Update for GNU MPFR 4.0.2.vlefevre2018-02-071-0/+3
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12211 280ebfd0-de03-0410-8827-d642c229c3f4
* [doc/mpfr.texi] Corrected minimal GMP version.vlefevre2018-02-072-3/+6
| | | | | | | [tools/mpfrlint] Updated test to detect minimal GMP version mismatch. (merged changeset r12208 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12209 280ebfd0-de03-0410-8827-d642c229c3f4
* [INSTALL] Corrected minimal GMP version (thanks to David Edelsohn).vlefevre2018-02-072-1/+11
| | | | | | | [tools/mpfrlint] Added a test to detect minimal GMP version mismatch. (merged changeset r12206 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12207 280ebfd0-de03-0410-8827-d642c229c3f4
* Updated version to 4.0.2-dev.vlefevre2018-02-076-12/+12
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12203 280ebfd0-de03-0410-8827-d642c229c3f4
* ChangeLog update with "TZ=UTC svn log -rHEAD:0 -v" (in UTF-8 locales).vlefevre2018-02-071-0/+36
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12201 280ebfd0-de03-0410-8827-d642c229c3f4
* Updated version to 4.0.1.vlefevre2018-02-075-5/+5
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12200 280ebfd0-de03-0410-8827-d642c229c3f4
* [doc/README.dev] "To make a release": moved a sentence.vlefevre2018-02-072-1/+12
| | | | | | | [tools/announce-text] For releases, check the VERSION file of the tag. (merged changesets r12197-12198 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12199 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tdiv_ui.c] Forcibly disable value coverage checking ifvlefevre2018-02-021-13/+18
| | | | | | | | mp_limb_t > unsigned long (e.g. on mips64 with the n32 ABI). Corrected comments. (merged changesets r12193-12194 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12195 280ebfd0-de03-0410-8827-d642c229c3f4
* ChangeLog update with "TZ=UTC svn log -rHEAD:0 -v" (in UTF-8 locales).vlefevre2018-02-021-0/+75
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12192 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests]vlefevre2018-02-0210-130/+112
| | | | | | | | | | * Replaced calloc + free by tests_allocate + tests_free as usual. * Replaced some fprintf with stderr by printf. * Do bitwise operations in unsigned arithmetic. * Formatting. (merged changesets r12188-12190 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12191 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests] Fixed the cases where tests_start_mpfr was called too late,vlefevre2018-02-024-28/+11
| | | | | | | | | | | | | | | | | | | | i.e. after potential output (to stdout). * tremquo.c: moved the call to tests_start_mpfr to the beginning. * tset_float128.c, tset_ld.c: removed the optional, obsolete code setting the FPU control word; MPFR_FPU_PREC can be used instead (see tests.c). [tests/tests.c] Make stderr unbuffered again. Note for the history: both stdout and stderr were made unbuffered in r2361, then all stderr were changed to stdout (and the corresponding setbuf on stderr removed) in r2449 for consistency, but stderr was used later for specific cases (e.g. memory allocation errors or when stdout is already used for something else), and it is also used for assertion failures. Thus the setbuf on stderr is still needed. (merged changesets r12185-12186 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12187 280ebfd0-de03-0410-8827-d642c229c3f4