| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
[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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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/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
|
|
|
|
|
|
|
|
| |
[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
|
|
|
|
|
|
|
| |
--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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
(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
|
|
|
|
|
|
| |
(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
|
|
|
|
|
|
|
|
|
|
| |
("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
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12203 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12200 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12177 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
|
| |
different cases of the mpfr_div_ui code) and other tests.
(merged changesets r12164-12169 from the trunk)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12170 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
|
|
|
| |
[tests/tdiv.c] Updated comment for bug20180126.
[tests/tdiv_ui.c] Added tests triggering the bug just fixed.
[tools/mpfrlint] Improved a regexp (avoiding false positives).
(merged the remaining changesets starting at r12123 from the trunk)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12164 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12130 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
|
|
|
|
|
|
| |
define symbols with a GMP reserved prefix.
* For the check-gmp-symbols and check-exported-symbols make rules, if
the library is not $(top_builddir)/src/.libs/libmpfr.so, these rules
do nothing instead of potentially failing.
* doc/README.dev, "To make a release": mention "make check-gmp-symbols"
and "make check-exported-symbols".
(merged changesets r12111-12114 from the trunk)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12125 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12120 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12119 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
|
|
|
|
| |
* src/mpfr-gmp.h: reverse-merged r11969, which is incorrect and
yields a build failure under some conditions.
* src/mp_clz_tab.c: fixed the condition that tests whether the
GMP build is used.
(merged changesets r12107-12108 from the trunk)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12109 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12096 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
|
|
| |
(also removed a useless cast).
[tests/tlgamma.c] Added a corresponding test case.
(merged changesets r12089-12092 from the trunk)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12095 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
|
|
| |
[tests/tai.c] Added corresponding test cases (in addition to what
has been done in tgeneric.c).
(merged changesets r12070-12072,12074-12075 from the trunk)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12094 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
|
|
|
|
| |
* Copyright notice update in most files: added 2018.
* tools/ck-mparam: in the copyright notice, just keep the year 2011
since this file is not part of the tarball (just used by mpfrlint).
* doc/mpfr.texi: updated the month.
(merged changesets r12067-12069 from the trunk)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12077 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12060 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12050 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12049 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12046 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12023 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12022 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12021 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12020 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12019 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
| |
triggered by the test added in r12017.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12018 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
|
| |
[tests/tfma.c] added non-regression test
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12012 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
| |
Still incomplete.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12011 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12008 280ebfd0-de03-0410-8827-d642c229c3f4
|