| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13418 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13417 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* acinclude.m4:
- test $enable_shared_cache instead of $mpfr_want_shared_cache;
- check ISO C11 thread support and/or POSIX thread support
only when necessary;
- when checking support for POSIX threads (pthread), also check
that pthread_rwlock_t is supported, as it is needed by MPFR
and conditionally defined in glibc's bits/pthreadtypes.h (via
<pthread.h>);
- with POSIX threads, also set CC="$PTHREAD_CC" as documented by
ax_pthread (autoconf-archive). This is not guaranteed to work,
but according to the ax_pthread.m4 source, in the cases where
"$PTHREAD_CC" != "$CC", not setting it will probably not work
either;
- handle --enable-shared-cache early in MPFR_CONFIGS, because
the use of POSIX threads (pthread) may need to change CC,
CFLAGS, and LIBS (thus affecting other tests);
- removed the now useless MPFR_CHECK_SHARED_CACHE function.
* configure.ac: no longer set the mpfr_want_shared_cache variable,
as enable_shared_cache (now used) already has the same usage.
* acinclude.m4, configure.ac: moved the compatibility test of the
configure options even earlier, from acinclude.m4 to configure.ac,
just after the code that defines them. Also added an associated
AC_MSG_CHECKING message for better clarity.
* src/mpfr-impl.h: added a comment about the cache-related types,
which depend on the locking methods.
* src/mpfr-thread.h: fixed the lock macros:
- in case of failure, one must abort, otherwise this would
generally be undefined behavior;
- added missing "do {} while (0)" (currently not mandatory).
* tests/tversion.c: update concerning the shared cache, to be
consistent with the other mpfr_buildopt_*_p features:
- check that mpfr_buildopt_sharedcache_p() and
MPFR_WANT_SHARED_CACHE match;
- for the output of the value, test mpfr_buildopt_sharedcache_p()
instead of the macro.
* NEWS: update.
(merged changesets r13032,13390-13396,13410,13412 from the trunk)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13416 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
|
|
|
|
| |
the compiler is GCC not in C++ mode, add the -Wc++-compat warning
since we expect the code to compile with a C++ compiler.
[acinclude.m4,tests/trint.c] Fixed C++ compatibility issues detected
thanks to this option used with -Werror.
(merged changesets r13406-13408 from the trunk)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13409 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
| |
(merged changeset r13401 from the trunk)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13402 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
|
| |
(merged changeset r12776 from the trunk, and as a consequence,
completed the merge of r13003)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13400 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13399 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
|
| |
Thanks to Trevor Spiteri for the bug report.
(merged changeset r13397 from the trunk)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13398 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13387 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
|
| |
the GCC trunk.
(merged changeset r13385 from the trunk)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13386 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
|
| |
the -u option is not supported by NetBSD.
(merged changeset r13383 from the trunk)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13384 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13382 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
|
|
| |
* COPYING from https://www.gnu.org/licenses/gpl-3.0.txt
* COPYING.LESSER from https://www.gnu.org/licenses/lgpl-3.0.txt
These are URL updates and cosmetic changes.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13381 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
|
|
| |
Note: For r5400, this changes an incorrect update done via r13373 back
to the old log message, as the URL in this log message here describes
a change in one of the files.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13379 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
| |
(merged changeset r13376 from the trunk)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13377 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13375 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
|
| |
perl -pi -e 's,http://www.gnu.org/,https://www.gnu.org/,g' **/*(.)
under zsh.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13373 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13371 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13370 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
with associated code was incorrect (due to the bad correction r8384
of a past bug, later really fixed in r11056). Also adapted the code
to work with small-size limbs.
[tests/tstrtofr.c] Added tests, including random tests. In particular,
some part of the code was tested only on hard-to-round cases, meaning
that some potential issues could not be detected (intermediate results
were thrown out due to the next Ziv iteration). Moreover, in case of
failure of some particular test, output the probable cause of this
failure (GCC bug 86554) with a workaround.
(merged changesets associated with these files r12566-13306,13364-13365
from the trunk)
Note: There may still remain issues with mpfr_strtofr, to be checked
later. At least, the tests do not fail.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13366 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
|
| |
of MPFR_EXP_FSPEC (corresponding to the merge of mpfr-impl.h r13299
from the trunk; the other part of this commit with be merged later).
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13363 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13362 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
|
|
| |
perl -pi -e 's/ (\d{4}-)?(2018)(?= Free Software)/
" ".($1||"$2-").($2+1)/e' **/*(^/)
under zsh. Removed 2018 from the example in the doc/README.dev file.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13360 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
|
|
|
|
|
|
| |
mpfr_set_1_2 (and simplified the generic algorithm, avoiding
the non-portable inex | inex2).
[tests/tset.c] Added corresponding tests.
[tests/tfmma.c] Added tests as this bug was affecting mpfr_fmma
(note: mpfr_set_1_2 is also called in mpfr_fma, but the buggy
code could not be executed in this case).
(merged changesets r13346-13347,13353-13356 from the trunk)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13357 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
| |
(merged changeset r13329 from the trunk)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13330 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
|
|
|
| |
error messages when running the tests with LOG_COMPILER=wine (for builds
with MinGW).
[tests/tversion.c] Updated a comment about this issue.
(merged changesets r13305,13307-13309 from the trunk)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13310 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
| |
(merged changesets r13149,13151,13298 from the trunk)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13301 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
| |
(merged changesets r13164,13296 from the trunk, for the tests directory)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13297 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13294 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
|
|
| |
to follow the historical behavior and GMP's mpf_get_str function.
(Discussion in the Trier meeting.)
(merged changeset r13283 from the trunk, with a correction in NEWS)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13284 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13277 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
|
| |
on <https://sympa.inria.fr/sympa/arc/mpfr/2018-10/msg00010.html>.
(merged changeset r13251 from the trunk)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13252 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
| |
(merged changeset r13244 from the trunk)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13245 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
| |
(merged changeset r13162 from the trunk)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13187 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
|
| |
preprocessor / code robustness.
(merged changeset r13003 from the trunk)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13010 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
| |
modified the comment to say that the bug is only in the trunk.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12999 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
|
| |
integer overflow in MPFR_MPZ_SIZEINBASE2.
(merged changeset r12988 from the trunk)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12994 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
|
|
| |
Bug detected under MS Windows, where size_t > unsigned long. See:
https://sympa.inria.fr/sympa/arc/mpfr/2018-08/msg00002.html
(merged changeset r12983 from the trunk)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12993 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
[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
|
|
|
|
|
|
|
| |
first printf with i586-mingw32msvc-gcc -D__USE_MINGW_ANSI_STDIO
and run under Wine (issue not reproducible).
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12969 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
| |
with i586-mingw32msvc-gcc -D__USE_MINGW_ANSI_STDIO and run under Wine.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12968 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
|
|
|
|
|
|
|
|
| |
be applicable when WANT_SHARED_CACHE is defined but not HAVE_PTHREAD
(which may occur when MPFR_HAVE_C11_LOCK is defined).
(merged changeset r12935 from the trunk)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12936 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
|
|
| |
made the "undefined reference" error disappear, so that __float128 was
misdetected as being supported. Also updated the message.
Note: this change is similar to the r12921-12922 ones in the trunk.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12923 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
| |
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12918 280ebfd0-de03-0410-8827-d642c229c3f4
|
|
|
|
|
|
|
|
|
|
| |
* rewrote the paragraph defining "floating-point number",
avoiding ambiguities;
* removed all the @noindent, whose purpose is unclear;
* defined regular numbers and exponents.
(merged changesets r12906-12908 from the trunk)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12917 280ebfd0-de03-0410-8827-d642c229c3f4
|