summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Punctuation (missing comma after "however").vlefevre2021-06-2116-34/+34
| | | | git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14542 280ebfd0-de03-0410-8827-d642c229c3f4
* [doc/README.dev] No longer use /tmp in examples so that the reader isvlefevre2021-06-211-7/+8
| | | | | | not encouraged to use it. Punctuation. git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14541 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] Fixed subnormal detection (issue found with icx).vlefevre2021-06-081-6/+11
| | | | git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14538 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tget_d.c] Improved error messages.vlefevre2021-06-031-12/+17
| | | | git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14537 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tget_d.c] Error message when check_inf_nan() fails for NaN.vlefevre2021-06-031-1/+5
| | | | | | | | 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
* [doc/mpfr.texi] Updated the month.vlefevre2021-06-021-1/+1
| | | | git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14535 280ebfd0-de03-0410-8827-d642c229c3f4
* [doc/mpfr.texi] some figures about slowdown with C++ interfacezimmerma2021-06-021-1/+2
| | | | git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14534 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/data/j1] added more testszimmerma2021-06-011-0/+54
| | | | git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14532 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tests.c] fixed bug introduced in r13787, which invalidated data_checkzimmerma2021-06-011-1/+1
| | | | | | | in some cases git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14531 280ebfd0-de03-0410-8827-d642c229c3f4
* [doc/mpfr.texi] Completed mpfr_fmodquo and mpfr_remquo description.vlefevre2021-05-201-0/+1
| | | | git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14529 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/rem1.c] Improved comments.vlefevre2021-05-201-4/+4
| | | | git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14528 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tsprintf.c] Cosmetic revert of blank line removal in r14519.vlefevre2021-05-171-0/+1
| | | | git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14527 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/vasprintf.c] Fixed buffer_cat: replaced incorrect assertion len > 0vlefevre2021-05-171-1/+7
| | | | | | | | | | | | | | | | 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
* [tests/tsprintf.c] Similarly to r14514, added tests of native integer 0vlefevre2021-05-171-0/+4
| | | | | | 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
* [tests/tsprintf.c] For various test functions, changed the return typevlefevre2021-05-171-14/+8
| | | | | | 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
* [src/vasprintf.c] Updated comment about the output for the 'a'/'A'vlefevre2021-05-161-1/+2
| | | | | | conversion specifier. git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14518 280ebfd0-de03-0410-8827-d642c229c3f4
* [doc/mpfr.texi] Formatted output functions (mpfr_*printf): completedvlefevre2021-05-161-6/+17
| | | | | | | the specification concerning the precision (this was needed because the conversion specifier 'b' does not exist in C). git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14517 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/vasprintf.c] Added a comment about the output for the 'a'/'A'vlefevre2021-05-121-1/+24
| | | | | | 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
* [doc/mpfr.texi] Punctuation.vlefevre2021-05-121-7/+7
| | | | git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14515 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tsprintf.c] Added tests of specifier 'P' with precision field 0.vlefevre2021-05-121-3/+10
| | | | git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14514 280ebfd0-de03-0410-8827-d642c229c3f4
* [TODO] More about mpfr_fda / mpfr_fds.vlefevre2021-05-111-0/+7
| | | | git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14513 280ebfd0-de03-0410-8827-d642c229c3f4
* [TODO] + Fused divide-add and fused divide-subtract (mpfr_fda, mpfr_fds).vlefevre2021-05-111-0/+3
| | | | git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14512 280ebfd0-de03-0410-8827-d642c229c3f4
* [doc/mpfr.texi,src/mpfr.h] Detail about the mpfr_pown implementation.vlefevre2021-05-032-3/+6
| | | | git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14511 280ebfd0-de03-0410-8827-d642c229c3f4
* [NEWS] added missing mpfr_pown (alias for mpfr_pow_sj)zimmerma2021-05-031-1/+1
| | | | git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14510 280ebfd0-de03-0410-8827-d642c229c3f4
* [manual] added mpfr_powm in NEWSzimmerma2021-05-031-1/+1
| | | | | | | (https://sympa.inria.fr/sympa/arc/mpfr/2021-05/msg00000.html) git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14509 280ebfd0-de03-0410-8827-d642c229c3f4
* [doc/mpfr.texi] Updated the month (due to r14505).vlefevre2021-05-031-1/+1
| | | | git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14508 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/sin.c] Added a TODO about range reduction.vlefevre2021-04-301-0/+3
| | | | git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14507 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tstrtofr.c] Check more infinity strings.vlefevre2021-04-261-7/+52
| | | | git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14506 280ebfd0-de03-0410-8827-d642c229c3f4
* [doc] Update about "case insensitive" and issue with Turkish localesvlefevre2021-04-262-5/+18
| | | | | | | | | | for "I" / "i". * mpfr.texi: added "with the rules of the C locale" in the mpfr_strtofr description. * README.dev: completed information about Turkish locales. git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14505 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tpowr.c] Added generic tests.vlefevre2021-04-241-0/+7
| | | | git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14504 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/exceptions.c] Corrected latest comment.vlefevre2021-04-241-1/+1
| | | | git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14503 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/exceptions.c] Replaced comment about logging (the issue was due tovlefevre2021-04-231-8/+3
| | | | | | the mpfr_check_range macro). git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14502 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/exceptions.c] Completed comment about a logging issue.vlefevre2021-04-231-2/+2
| | | | git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14501 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/exceptions.c] Added a comment about a logging issue.vlefevre2021-04-231-0/+8
| | | | git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14500 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/mpfr-impl.h] Logging: output the flags at "IN" and "OUT".vlefevre2021-04-231-2/+4
| | | | git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14499 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tsgn.c] Also test in a very reduced exponent range.vlefevre2021-04-231-15/+32
| | | | git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14498 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tsgn.c] Also test the flags.vlefevre2021-04-231-25/+45
| | | | git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14497 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/get_str.c] Fixed bug in mpfr_get_str_ndigits introduced in r14494.vlefevre2021-04-231-2/+3
| | | | | | | 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
* mpfr_get_str_ndigits: added an assertion / exploitable compiler hint.vlefevre2021-04-231-1/+4
| | | | git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14495 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/get_str.c] Improved mpfr_get_str_ndigits code structure.vlefevre2021-04-231-49/+50
| | | | git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14494 280ebfd0-de03-0410-8827-d642c229c3f4
* In various functions, use mpfr_equal_p() instead of mpfr_cmp() == 0.vlefevre2021-04-235-6/+6
| | | | | | | | | 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
* [src/get_str.c] Use mpfr_equal_p() instead of mpfr_cmp() == 0.vlefevre2021-04-231-1/+1
| | | | git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14492 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests] Added tpowr to svn:ignore property.vlefevre2021-04-230-0/+0
| | | | git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14489 280ebfd0-de03-0410-8827-d642c229c3f4
* Fixed bug in mpfr_get_str_ndigits.vlefevre2021-04-232-19/+59
| | | | | | | | | | | | * 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
* [src/mpfr-impl.h] Added cast to int for __LINE__ in formatted output.vlefevre2021-04-161-2/+3
| | | | | | | | | | 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
* [tests/thypot.c] added one testzimmerma2021-04-021-0/+29
| | | | git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14485 280ebfd0-de03-0410-8827-d642c229c3f4
* Added m4/ax_pthread.m4 file, and related updates.vlefevre2021-03-193-8/+533
| | | | | | | | | | Added m4/ax_pthread.m4 from https://github.com/autoconf-archive/autoconf-archive and updated: * acinclude.m4 (in particular, set CXX and CXXFLAGS) * doc/README.dev git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14482 280ebfd0-de03-0410-8827-d642c229c3f4
* [configure.ac] Avoid an issue with ordering of macros we don't usevlefevre2021-03-191-2/+11
| | | | | | | explicitly, which appears with ax_pthread.m4 29, i.e. with https://github.com/autoconf-archive/autoconf-archive/commit/2567e0ce0f3a11b535c6b527386197fb49ff172b git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14481 280ebfd0-de03-0410-8827-d642c229c3f4
* [acinclude.m4] Added a comment about AX_PTHREAD.vlefevre2021-03-181-0/+4
| | | | git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14480 280ebfd0-de03-0410-8827-d642c229c3f4
* Get rid of obsolescent AC_HEADER_TIME. Cleanup about sys/time.h usage.vlefevre2021-03-182-8/+4
| | | | | | | | | | | | | | | | | | | | | | | | | 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