summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* [tests/tlgamma.c] Corrected updated comment from r10444.vlefevre2016-06-071-2/+4
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10445 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tlgamma.c] Updated comment of the test added in r10442.vlefevre2016-06-061-1/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10444 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/uceil_log2.c] Correction in __gmpfr_ceil_log2, avoiding anvlefevre2016-06-061-1/+1
| | | | | | | | | | | incorrect result with tcc: x.s.exp is declared as an unsigned bit-field, so that tcc considers that x.s.exp - 1023 is unsigned. However, since all the values of x.s.exp are representable in an int, according to the integer promotion rules, x.s.exp should be converted to an int, so that the subtraction is signed. So, this appears to be a bug in tcc. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10443 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tlgamma.c] Added a test causing a "too much memory" error withvlefevre2016-06-061-0/+19
| | | | | | | tcc 0.9.27~git20151227.933c223-1 (there's already one in special(), but this one is a simpler, standalone test). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10442 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] When checking if __float128 is available, we now alsovlefevre2016-06-061-4/+6
| | | | | | | | check whether C99 constants (in particular the __float128 ones, such as 0x1.fp+16383q) are supported since this is now required with the __float128 support. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10440 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/add1.c] Simplified code: removed fb = 1 since it was already 1vlefevre2016-06-061-5/+1
| | | | | | in the "if (fb > 0)" branch. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10435 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/set_float128.c] Fix: removed the divisions by zero, replacing themvlefevre2016-06-061-8/+9
| | | | | | | by comparisons with the maximum finite binary128 number. Changes to be similar to the handling of infinities in "src/set_ld.c". git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10434 280ebfd0-de03-0410-8827-d642c229c3f4
* [TODO] Faithful rounding: small correction.vlefevre2016-06-061-2/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10433 280ebfd0-de03-0410-8827-d642c229c3f4
* [TODO] Added "faithful rounding", with information about its definitionvlefevre2016-06-061-0/+18
| | | | | | and implementation. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10432 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/{fits_intmax.c,fits_s.h}] In comments, fit → fits.vlefevre2016-06-032-2/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10431 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/set_float128.c] Added FIXME comment: The mpfr_set_float128 codevlefevre2016-06-031-0/+4
| | | | | | generates a divide-by-zero exception. Suggest a solution. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10430 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tset_float128.c] Take into account failures in division by 0vlefevre2016-06-031-7/+30
| | | | | | | and absence of signed zeros. Also fixed the code checking the sign of 0 (mpfr_sgn cannot be used for that since it returns 0 for ±0). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10429 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/set_d.c] Added some assertions and fixed a 32-bit shift countvlefevre2016-06-031-1/+5
| | | | | | when GMP_NUMB_BITS == 32. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10426 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tset_float128.c] C++ compatibility.vlefevre2016-06-031-21/+21
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10424 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tlog.c] Added a cast to mpfr_rnd_t for C++ compatibility.vlefevre2016-06-031-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10423 280ebfd0-de03-0410-8827-d642c229c3f4
* added reference for Lambert W functionzimmerma2016-06-031-0/+7
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10417 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/exceptions.c] Fixed the MPFR_LOG_FUNC in mpfr_underflow andvlefevre2016-06-021-4/+2
| | | | | | mpfr_overflow (x is not an input in these functions). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10396 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/sub1.c] In r10347, logging was introduced instead of #ifdef DEBUGvlefevre2016-06-021-4/+8
| | | | | | | | and printf. Removed 2 MPFR_LOG_VAR, as the variable is not normalized yet. Re-added #ifdef DEBUG for the MPFR_LOG_MSG's since this may be too low level and not much useful except in case of bugs. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10395 280ebfd0-de03-0410-8827-d642c229c3f4
* fixed typoszimmerma2016-05-301-2/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10390 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tsub.c] Added comments for check_max_almosteven (latestvlefevre2016-05-301-0/+23
| | | | | | test case, added in r10383). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10386 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/sub1.c] Fixed bug in mpfr_sub1 (real subtraction b - c, |b| > |c|):vlefevre2016-05-292-5/+139
| | | | | | | | | | | In MPFR_RNDN (rounding to nearest), when |b| is the midpoint between the maximum number and 2^emax (the maximum number + 1 ulp) and c is small, the obtained result is an infinity (with overflow) instead of ± the maximum number (no overflow). The cause is that an overflow is generated too early (in the rounding code). [tests/tsub.c] Added test cases. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10383 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/log_ui.c] Changes for ISO C90 compatibility.vlefevre2016-05-251-5/+5
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10378 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/mpfr-gmp.h] For _MPFR_IEEE_FLOATS, changed bit-field type fromvlefevre2016-05-251-8/+23
| | | | | | unsigned long, which is implementation-defined, to unsigned int. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10377 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/log_ui.c] Added an assertion.vlefevre2016-05-251-0/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10376 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/mpfr-impl.h] Fixed bug introduced in r10327, giving:vlefevre2016-05-251-1/+1
| | | | | | error: ISO C does not allow extra ';' outside of a function [-Wpedantic] git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10375 280ebfd0-de03-0410-8827-d642c229c3f4
* improved mpfr_log_uizimmerma2016-05-251-49/+80
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10374 280ebfd0-de03-0410-8827-d642c229c3f4
* added commentzimmerma2016-05-251-0/+3
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10373 280ebfd0-de03-0410-8827-d642c229c3f4
* [TODO] mpfr_ai efficiency: also mention mpfr.texi (the issue with largevlefevre2016-05-251-1/+1
| | | | | | arguments has always been documented). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10372 280ebfd0-de03-0410-8827-d642c229c3f4
* [TODO] mpfr_ai efficiency: mention tests/tai.c (the REDUCE_EMAX wasvlefevre2016-05-251-1/+2
| | | | | | added in r6734). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10371 280ebfd0-de03-0410-8827-d642c229c3f4
* added item about efficiency of mpfr_ai for large argumentszimmerma2016-05-251-0/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10370 280ebfd0-de03-0410-8827-d642c229c3f4
* [doc/README.dev] Also clarified the use of "configure".vlefevre2016-05-251-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10369 280ebfd0-de03-0410-8827-d642c229c3f4
* [doc/README.dev] Clarified the use of "autogen.sh".vlefevre2016-05-251-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10368 280ebfd0-de03-0410-8827-d642c229c3f4
* use autogen.shzimmerma2016-05-251-2/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10367 280ebfd0-de03-0410-8827-d642c229c3f4
* added libtoolize (needed for AX_PTHREAD)zimmerma2016-05-251-0/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10366 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tlog_ui.c] Improved a test function.vlefevre2016-05-241-3/+7
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10365 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] Fixed the use of m4_pattern_forbid: the argument mustvlefevre2016-05-241-1/+1
| | | | | | be quoted, otherwise the macro is expanded when defined. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10364 280ebfd0-de03-0410-8827-d642c229c3f4
* small improvements to log_ui (still slower than log for large precision)zimmerma2016-05-241-5/+9
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10363 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] Detect whether the AX_PTHREAD macro is left unexpanded.vlefevre2016-05-241-1/+5
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10362 280ebfd0-de03-0410-8827-d642c229c3f4
* use rounding to nearest by default in "tconst_log2 prec"zimmerma2016-05-241-3/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10361 280ebfd0-de03-0410-8827-d642c229c3f4
* minor changes to allow ./tlog xxx preczimmerma2016-05-241-6/+5
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10360 280ebfd0-de03-0410-8827-d642c229c3f4
* added generic tests for mpfr_log_ui + compare with mpfr_logzimmerma2016-05-242-11/+57
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10359 280ebfd0-de03-0410-8827-d642c229c3f4
* Removed _MPFR_PROTO with the following Perl script on the .h files.vlefevre2016-05-245-623/+615
| | | | | | | | while (<>) { if ($c) { die if /_MPFR_PROTO/; s/^( {$c}) */$1/; s/\) *\)/)/ and undef $c } elsif (s/^(.*)(_MPFR_PROTO *\()\(/$1(/) { s/\) *\)/)/ or $c = 1 + length $1 } print } git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10356 280ebfd0-de03-0410-8827-d642c229c3f4
* [configure.ac] Re-added AM_PROG_AR in case Microsoft lib.exe is usedvlefevre2016-05-241-0/+5
| | | | | | (without this, "automake --warnings=all" gives a warning). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10355 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] Replaced the obsolete ACX_PTHREAD by AX_PTHREADvlefevre2016-05-241-1/+1
| | | | | | (done with "autoupdate acinclude.m4"). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10354 280ebfd0-de03-0410-8827-d642c229c3f4
* [configure.ac] Moved LT_INIT near the top for --enable-lto, and removedvlefevre2016-05-241-4/+2
| | | | | | | AM_PROG_AR (no longer needed as done by LT_INIT) and AC_PROG_RANLIB (obsoleted by LT_INIT). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10353 280ebfd0-de03-0410-8827-d642c229c3f4
* Avoid some warnings with "gcc -Wundef".vlefevre2016-05-243-5/+6
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10352 280ebfd0-de03-0410-8827-d642c229c3f4
* [configure.ac] Removed a FIXME fixed in r4482.vlefevre2016-05-241-5/+0
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10351 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/mpfr-longlong.h] Update from GMP 6.1.0.vlefevre2016-05-241-222/+485
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10349 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/mpfr-cvers.h] Fixed typo in a macro (thanks to Patrick Pélissier).vlefevre2016-05-241-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10348 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/sub1.c] Various minor improvements:vlefevre2016-05-241-42/+23
| | | | | | | | * Some changes related to the exponents and diff_exp. * Coding style + use of IS_POW2. * Use logging instead of #ifdef DEBUG and printf. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10347 280ebfd0-de03-0410-8827-d642c229c3f4