| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14588 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14579 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14549 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14542 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14528 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
by a test.
Note that len == 0 is possible when outputting an integer 0 (either a
native one or mpfr_prec_t) with precision field = 0. The consequence
of this bug:
* In debug mode (MPFR_ASSERTD assertion checking), one would get an
assertion failure.
* Otherwise, there should be no side effects since the code was valid
for len == 0, possibly except with LTO (very unlikely, though).
This incorrect assertion was added on 2009-03-13 in r6099.
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14521 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
| |
conversion specifier.
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14518 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
| |
conversion specifier, which is completely unintuitive. FIXME?
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14516 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14511 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14507 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14503 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
| |
the mpfr_check_range macro).
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14502 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14501 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14500 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14499 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
|
| |
Note: the issue (an uninitialized variable) was detected by GCC 6.5.0;
recent GCC versions miss the -Wmaybe-uninitialized warning.
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14496 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14495 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14494 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
|
|
|
| |
Note: In these cases, the test should be false if one of the arguments
is NaN (it is not always clear whether NaN is impossible, but just in
case, mpfr_equal_p is safer, in particular if the code around changes;
and this is more readable too).
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14493 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14492 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
|
|
|
|
|
|
| |
* src/get_str.c: use MPFR_SAVE_EXPO_MARK / MPFR_SAVE_EXPO_FREE to fix
2 issues in mpfr_get_str_ndigits: the inexact flag could be raised
(bug reported by Pierre Chatelier[*]); undefined behavior in a very
reduced exponent range.
* tests/tget_str.c: check the above issues in the tests.
[*] https://sympa.inria.fr/sympa/arc/mpfr/2021-04/msg00000.html
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14488 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
|
|
|
|
| |
The standard just says that __LINE__ in an integer constant. So its
type might be larger than int, even though the value is representable
in an int (like in MPFR). This concerns logging code, only available
for GCC compatible compilers, so that there should not be any issue
without the cast, but just in case...
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14487 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14476 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
|
|
| |
a call to mpn_sqr + similar changes in other files
(thanks Fredrik Johansson)
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14475 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14466 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
|
| |
* doc/mpfr.texi: added some text in Section "Custom Interface".
* src/mpfr.h: replaced the remaining FIXME by another comment.
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14462 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14459 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14457 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
| |
This became visible with the fix of the mpfr_get_prec macro in r14454.
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14455 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14454 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
| |
__GNUC__ is no longer needed.
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14452 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Macros mpfr_nan_p, mpfr_inf_p, mpfr_zero_p and mpfr_regular_p were
incorrect since they yielded a compilation error when the argument
was of type void *, for instance. Their definition as macros is now
available only with __GNUC__.
The tisnan test r14448 should no longer fail.
Also added a comment for mpfr_sgn, which is correct since documented
as a macro.
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14451 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14449 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
| |
as macros.
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14447 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14444 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
On araignee.loria.fr, this saves about 1 cycle, when GMP 6.2.1 and MPFR are
configured with --disable-shared, using mbench.
Before this change (medium of 5 runs, with turbo-boost disabled):
$ numactl --physcpubind=0 ./mfv5 -i0 -p53 mpfr_sqrt mpfr_sqrt mpfr_sqrt
mpfr_sqrt: 48 / 53.39 / 60
$ numactl --physcpubind=0 ./mfv5 -i0 -p113 mpfr_sqrt mpfr_sqrt mpfr_sqrt
mpfr_sqrt: 75 / 81.44 / 89
After this change:
$ numactl --physcpubind=0 ./mfv5 -i0 -p53 mpfr_sqrt mpfr_sqrt mpfr_sqrt
mpfr_sqrt: 48 / 52.37 / 60
$ numactl --physcpubind=0 ./mfv5 -i0 -p113 mpfr_sqrt mpfr_sqrt mpfr_sqrt
mpfr_sqrt: 75 / 80.27 / 88
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14437 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14432 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
|
| |
[tests/tj1.c] added corresponding non-regression test
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14431 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
|
|
| |
of Digamma(1-x) and Pi*cot(Pi*x) cancel exactly
[tests/tdigamma.c] added corresponding non-regression test
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14430 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
|
|
| |
an intmax_t and not a long, thus we can later implement mpfr_compoundn
taking as input an intmax_t
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14429 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14422 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14421 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14419 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14418 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
|
| |
still with limitations (which could be avoided by sharing code with
mpfr_set_uj_2exp).
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14416 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14415 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14414 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14413 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
|
| |
now mpfr_pown is an alias for mpfr_pow_sj
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14412 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
|
| |
be an alias of mpfr_pow_sj (not implemented yet) to follow ISO C2x,
where pown is defined with intmax_t n.
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14410 280ebfd0-de03-0410-8827-d642c229c3f4
|