| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
the SVN revision and date, as this value may no longer be valid in the
future (when tests are added or changed).
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14574 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14570 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
|
| |
the MPFR build fail with "i686-w64-mingw32-gcc -std=c89" (e.g. via
./configure --host=i686-w64-mingw32, and -std=c89 in CFLAGS).
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14567 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
| |
in Debian/unstable, da_DK no longer exists.
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14566 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
| |
when HAVE_SUBNORM_FLT is not defined.
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14558 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
| |
the Boolean _p functions.
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14557 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
|
|
|
|
| |
What was tested was just mpfr_get_flt on a NaN mpfr_t. But this was
already tested in main(). And one gets the same result and error with
icx (without -fp-model=strict). Moreover, the old test was correctly
protected by "#if !defined(MPFR_ERRDIVZERO)", needed because NaN is
defined by 0.0 / 0.0.
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14556 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
|
| |
argument was yielding an underflow (not portable), by mpfr_set_si_2exp
(it is mpfr_get_flt that is tested, not mpfr_set_flt).
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14555 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14554 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14553 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14552 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14544 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@14537 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
|
|
| |
Note: With "icx -O2" (at least), 8 tests are now failing with
Intel(R) oneAPI DPC++ Compiler 2021.2.0 (2021.2.0.20210317).
But no failures when the compiler is invoked as "clang".
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14536 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14532 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
|
| |
in some cases
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14531 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14527 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
| |
with precision field 0 (also yields a call to buffer_cat with len = 0).
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14520 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
| |
from int to void (when the value is never used).
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14519 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14514 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14506 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14504 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14498 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14497 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
|
|
|
|
| |
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14485 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The AC_HEADER_TIME macro is obsolescent in autoconf 2.69 (2012),
and autoconf 2.71 (2021) outputs a warning, which makes autogen.sh
fail due to "--warnings=all,error", so let's avoid the warnings.
This macro defines TIME_WITH_SYS_TIME, used only in tests/tests.c
(but actually not needed). We actually have two cases:
1. HAVE_GETTIMEOFDAY is defined: we use gettimeofday(), which
needs <sys/time.h>.
2. Otherwise: we use time(), which needs <time.h>.
Based on that, we can simplify the condition in tests/tests.c for
the inclusion of time-related headers, and we no longer need to
check the <sys/time.h> availability. If gettimeofday() is defined
but <sys/time.h> is not available (which shouldn't occur), then
the current gettimeofday() usage may be incorrect anyway.
Changes:
* acinclude.m4:
- no longer use AC_HEADER_TIME;
- no longer check the sys/time.h header.
* tests/tests.c: simplify the inclusion of time-related headers.
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14479 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14477 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@14474 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The mpfr_get_exp() function checks that the argument is a regular
number, but the corresponding macro doesn't. The test code was
calling mpfr_get_exp() on 0, thus failed with MPFR_USE_NO_MACRO
defined. Here, the code was correct with the macro, because the
value was not used for the particular case 0.
This is fixed by testing 0 earlier (and doing a goto, but the code
has fewer tests and should be simpler to understand). Moreover,
mpfr_get_exp has been replaced by MPFR_GET_EXP, so that the argument
is checked with --enable-assert.
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14464 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
| |
casts to "void *", invalid in C++ (completing r14460 and r14461).
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14463 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
| |
(these tests are enabled only if __cplusplus is not defined).
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14461 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
|
|
|
|
|
| |
These casts make the build of these tests fail with a C++ compiler.
But this means that the use of macros will not introduce any issue
concerning the type of the arguments, i.e. with a C++ compiler, the
tests are still complete after this change.
However, GCC's -Werror=c++-compat still cannot be used.
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14460 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
|
|
| |
Without MPFR_USE_NO_MACRO, the compilation currently fails because
the second argument is not converted to mpfr_srcptr when MPFR_SIGN
is applied.
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14458 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
|
| |
Without MPFR_USE_NO_MACRO, the compilation of these tests in tcopysign.c
currently fails because some arguments are not converted to mpfr_srcptr.
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14456 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
|
|
| |
Without MPFR_USE_NO_MACRO, the compilation of these tests
in texceptions.c and tset_exp.c currently fails because
the argument is not converted to mpfr_srcptr.
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14453 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14450 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
|
| |
mpfr_zero_p and mpfr_regular_p is implemented as a macro, it behaves
like a function.
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14448 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
| |
[tests/tj1.c] Replaced mpfr_cmp_si_2exp by mpfr_cmp_si_2exp0.
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14434 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14433 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@14423 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
|
| |
Note: this is particularly important to check that pow(NaN,0) returns 1,
not NaN.
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14417 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14414 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
|