| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
which also tests the sign (to distinguish +0 and -0).
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/faithful@11545 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
| |
RND_LOOP by RND_LOOP_NO_RNDF.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/faithful@11544 280ebfd0-de03-0410-8827-d642c229c3f4
|
|\
| |
| |
| | |
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/faithful@11543 280ebfd0-de03-0410-8827-d642c229c3f4
|
| |
| |
| |
| | |
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11542 280ebfd0-de03-0410-8827-d642c229c3f4
|
| |
| |
| |
| |
| |
| |
| |
| | |
by not using the returned string any longer. Indeed, ISO C99 says that
this string "may be overwritten by a subsequent call to the setlocale
function".
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11533 280ebfd0-de03-0410-8827-d642c229c3f4
|
| |
| |
| |
| |
| |
| |
| |
| | |
(this should have been done in r5230, where EOVERFLOW was moved).
This fixes the "Got r = -1, errno = 0" errors in tprintf with
MPFR_CHECK_LARGEMEM=1.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11532 280ebfd0-de03-0410-8827-d642c229c3f4
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
to mpfr_intmax_t for the string length in the string_buffer structure,
it was no longer detected; however, this bug was not normally visible in
the tests because here, a negative value was returned thanks to wrapping
in a type conversion and the negative value was changed to the expected
-1 value in printf.c).
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11531 280ebfd0-de03-0410-8827-d642c229c3f4
|
| |
| |
| |
| | |
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11530 280ebfd0-de03-0410-8827-d642c229c3f4
|
| |
| |
| |
| |
| |
| | |
been processed, allowing the %...n arguments to be filled, as decided.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11529 280ebfd0-de03-0410-8827-d642c229c3f4
|
| |
| |
| |
| |
| |
| | |
an invalid value and do all tests before exiting.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11528 280ebfd0-de03-0410-8827-d642c229c3f4
|
| |
| |
| |
| | |
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11527 280ebfd0-de03-0410-8827-d642c229c3f4
|
| |
| |
| |
| | |
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11526 280ebfd0-de03-0410-8827-d642c229c3f4
|
| |
| |
| |
| | |
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11525 280ebfd0-de03-0410-8827-d642c229c3f4
|
| |
| |
| |
| | |
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11524 280ebfd0-de03-0410-8827-d642c229c3f4
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
for size = 0, still allowing its support in case of overflow on
the return value (i.e. when the number of characters that would
have been output is > INT_MAX).
Note: full support in case of overflow is still limited by GMP
and the C library.
[tests/tprintf.c] Increased the memory needed in check_long_string().
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11523 280ebfd0-de03-0410-8827-d642c229c3f4
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
However, this will not necessarily be used by src/vasprintf.c, as
this can be regarded as an EOVERFLOW error for which the behavior
on the %...n values is not specified, i.e. we may not need to
support size values larger than INT_MAX.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11522 280ebfd0-de03-0410-8827-d642c229c3f4
|
| |
| |
| |
| |
| |
| | |
lowercase so that it doesn't look like a constant to mpfrlint.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11521 280ebfd0-de03-0410-8827-d642c229c3f4
|
| |
| |
| |
| |
| |
| |
| |
| | |
to the 'n' format specifier with size = 0. The way to fix this issue
depends on the specifications in case of overflow on the return value,
and for POSIX, they are unclear. Waiting for comments...
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11520 280ebfd0-de03-0410-8827-d642c229c3f4
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
signed integer type available for the MPFR build. It will be
useful for the formatted output functions (src/vasprintf.c) to
handle the 'n' format specifier, assuming that the value may
be larger than INT_MAX, which is possible assuming that the
C standard has a defect in the corresponding specification:
https://sourceware.org/bugzilla/show_bug.cgi?id=21360
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11519 280ebfd0-de03-0410-8827-d642c229c3f4
|
| |
| |
| |
| | |
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11518 280ebfd0-de03-0410-8827-d642c229c3f4
|
| |
| |
| |
| |
| |
| | |
in mixed(), bug without random data.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11517 280ebfd0-de03-0410-8827-d642c229c3f4
|
| |
| |
| |
| |
| |
| | |
on total.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11516 280ebfd0-de03-0410-8827-d642c229c3f4
|
| |
| |
| |
| |
| |
| | |
the long and int types have the same size.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11515 280ebfd0-de03-0410-8827-d642c229c3f4
|
| |
| |
| |
| |
| |
| |
| | |
characters to be written computed in partition_number() corresponds
to what is really written.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11514 280ebfd0-de03-0410-8827-d642c229c3f4
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
computation of the number of characters to be written was incorrect
in partition_number() when the thousands separator was not empty.
This bug was visible with size = 0 and could be visible near overflow
on the number of characters.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11513 280ebfd0-de03-0410-8827-d642c229c3f4
|
| |
| |
| |
| |
| |
| | |
only tests for which the thousands separator is not empty).
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11512 280ebfd0-de03-0410-8827-d642c229c3f4
|
| |
| |
| |
| |
| |
| |
| | |
(to test mpfr_snprintf with size = 0 more often), and call mixed()
later in order to get failures without the use of %n first.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11511 280ebfd0-de03-0410-8827-d642c229c3f4
|
| |
| |
| |
| | |
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11510 280ebfd0-de03-0410-8827-d642c229c3f4
|
| |
| |
| |
| | |
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11509 280ebfd0-de03-0410-8827-d642c229c3f4
|
| |
| |
| |
| | |
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11508 280ebfd0-de03-0410-8827-d642c229c3f4
|
| |
| |
| |
| | |
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11507 280ebfd0-de03-0410-8827-d642c229c3f4
|
| |
| |
| |
| |
| |
| | |
In doc/README.dev, updated the corresponding description.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11506 280ebfd0-de03-0410-8827-d642c229c3f4
|
| |
| |
| |
| | |
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11505 280ebfd0-de03-0410-8827-d642c229c3f4
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
which is redundant with MPFR_TESTS_DIVBYZERO and MPFR_ERRDIVZERO. The
code related to these exception is now like r11488 (see the output of
"svn diff -r11488"), but keeping the following changes:
* Missing !defined(MPFR_ERRDIVZERO) tests added in r11498,11499.
* In tests.c:
- code related to traps (macro MPFR_RAISE_EXCEPTIONS, which will
be renamed);
- more detailed output about which FP exceptions occurred;
- removal of "#ifdef MPFR_ERRDIVZERO" (as in r11493), as this is
better with Automake 1.13+ (required by MPFR since r9375).
Note: EXCEPTIONS_FLAG renamed to FPE_FLAGS, since EXCEPTIONS_FLAG is
reserved by ISO C when <errno.h> is included.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11504 280ebfd0-de03-0410-8827-d642c229c3f4
|
| |
| |
| |
| |
| |
| | |
a failure by default once the bug triggered by mixed() is fixed.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11503 280ebfd0-de03-0410-8827-d642c229c3f4
|
| |
| |
| |
| |
| |
| | |
with %n when the size argument of mpfr_vsnprintf is 0.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11502 280ebfd0-de03-0410-8827-d642c229c3f4
|
| |
| |
| |
| |
| |
| | |
by default (which occurs when one gets randsize <= 0).
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11501 280ebfd0-de03-0410-8827-d642c229c3f4
|
| |
| |
| |
| |
| |
| |
| |
| | |
of Linux Programmer's Manual says: "On some systems, va_end contains
a closing '}' matching a '{' in va_start, so that both macros must
occur in the same function, and in a way that allows this."
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11500 280ebfd0-de03-0410-8827-d642c229c3f4
|
| |
| |
| |
| |
| |
| | |
occurs only with -DXDEBUG) if MPFR_ERRDIVZERO is defined.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11499 280ebfd0-de03-0410-8827-d642c229c3f4
|
| |
| |
| |
| |
| |
| | |
(now occurs only with -DXDEBUG) if MPFR_ERRDIVZERO is defined.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11498 280ebfd0-de03-0410-8827-d642c229c3f4
|
| |
| |
| |
| | |
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11497 280ebfd0-de03-0410-8827-d642c229c3f4
|
| |
| |
| |
| |
| |
| | |
in order to ease failure analysis.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11496 280ebfd0-de03-0410-8827-d642c229c3f4
|
| |
| |
| |
| | |
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11495 280ebfd0-de03-0410-8827-d642c229c3f4
|
| |
| |
| |
| | |
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11494 280ebfd0-de03-0410-8827-d642c229c3f4
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
or FE_INVALID, fail unconditionally, not just when MPFR_ERRDIVZERO is
defined, otherwise one cannot see the output about the floating-point
exceptions with "make check" (the test of MPFR_ERRDIVZERO here should
have been removed after switching to Automake 1.13, which discards the
output when the test program succeeds).
Note: defining MPFR_TESTS_DIVBYZERO without MPFR_ERRDIVZERO is just for
debugging.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11493 280ebfd0-de03-0410-8827-d642c229c3f4
|
| |
| |
| |
| | |
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11492 280ebfd0-de03-0410-8827-d642c229c3f4
|
| |
| |
| |
| |
| |
| |
| | |
-DMPFR_TESTS_DIVBYZERO -DMPFR_ERRDIVZERO, because MPFR_TESTS_EXCEPTIONS
is not ready yet.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11491 280ebfd0-de03-0410-8827-d642c229c3f4
|
| |
| |
| |
| | |
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11490 280ebfd0-de03-0410-8827-d642c229c3f4
|
| |
| |
| |
| | |
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11489 280ebfd0-de03-0410-8827-d642c229c3f4
|
| |
| |
| |
| | |
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11488 280ebfd0-de03-0410-8827-d642c229c3f4
|