summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Replacedvlefevre2016-02-04183-183/+183
| | | | | | | | Contributed by the AriC and Caramel projects by Contributed by the AriC and Caramba projects git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9941 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/troot.c] Also check that root(0,0) is NaN to make sure that suchvlefevre2016-02-031-2/+17
| | | | | | special cases are considered in the right order in the implementation. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9930 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/root.c,tests/troot.c] Removed obsolete code that was commented out;vlefevre2016-02-031-44/+4
| | | | | | some cleanup. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9928 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/troot.c] Typo in a comment.vlefevre2016-02-031-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9922 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/troot.c] Added tests showing a bug in mpfr_root on largevlefevre2016-02-031-1/+50
| | | | | | | integer arguments (found thanks to a bug in GNOME Calculator: <https://bugzilla.gnome.org/show_bug.cgi?id=756960>). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9921 280ebfd0-de03-0410-8827-d642c229c3f4
* Style: use RND_LOOP; mpfr_can_round returns a Boolean-like value.vlefevre2016-02-032-6/+6
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9920 280ebfd0-de03-0410-8827-d642c229c3f4
* refactor the exhaustive search code in mpfr_const_log2zimmerma2016-02-021-11/+18
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9912 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tcan_round.c] Added test of mpfr_round_p with powers of twovlefevre2016-02-011-2/+17
| | | | | | (similar to the one done in src/round_p.c for MPFR_WANT_ASSERT >= 2). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9904 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tcan_round.c] Updated description: mpfr_round_p is also testedvlefevre2016-02-011-1/+1
| | | | | | in check_round_p (and will be in test_pow2). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9903 280ebfd0-de03-0410-8827-d642c229c3f4
* Cleanup of memory allocation in the tests:vlefevre2016-01-298-79/+62
| | | | | | | | | | | | | | * only tests_allocate, tests_reallocate and tests_free should be used (now exported instead of mpfr_default_allocate, etc.); * this is now mentioned in doc/README.dev; * added checks to tools/mpfrlint (heuristics as usual). Note: This follows the discussion at https://sympa.inria.fr/sympa/arc/mpfr/2015-12/msg00055.html and should solve these problems under MS Windows (mingw32), though this cleanup is more general than an attempt to fix a Windows issue. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9891 280ebfd0-de03-0410-8827-d642c229c3f4
* typozimmerma2016-01-291-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9889 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tcan_round.c] Updated comment and corrected condition on prec.vlefevre2016-01-281-3/+13
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9888 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tcan_round.c] Updated comments.vlefevre2016-01-281-2/+5
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9887 280ebfd0-de03-0410-8827-d642c229c3f4
* more work on mpfr_can_roundzimmerma2016-01-281-3/+6
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9884 280ebfd0-de03-0410-8827-d642c229c3f4
* fixed bug in mpfr_can_round for input = 2^kzimmerma2016-01-281-23/+42
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9883 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tcan_round.c] Added tests for powers of two. This triggersvlefevre2016-01-271-4/+33
| | | | | | | errors. I may have done mistakes, but at least x = 2^32, j = 32, r1=MPFR_RNDN, r2=MPFR_RNDN seems buggy. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9881 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tsqrt.c] Improved bug20160120.vlefevre2016-01-211-4/+9
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9861 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tsqrt.c] In bug20160120, check the validity of the result withvlefevre2016-01-211-0/+2
| | | | | | mpfr_check first, because the mpfr_sqrt was generating invalid data. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9859 280ebfd0-de03-0410-8827-d642c229c3f4
* fixed bug in mpfr_sqrt reported by Fredrik Johanssonzimmerma2016-01-201-1/+6
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9858 280ebfd0-de03-0410-8827-d642c229c3f4
* added test case for bug reported by Fredrik Johanssonzimmerma2016-01-201-0/+19
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9857 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tzeta.c] Added casts for printf.vlefevre2016-01-201-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9854 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tzeta.c] Some corrections. Made the input value of the latestvlefevre2016-01-201-4/+5
| | | | | | test clear (avoiding a long string at the same time). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9853 280ebfd0-de03-0410-8827-d642c229c3f4
* fixed bug for zeta(s) with s near an even negative integerzimmerma2016-01-201-1/+20
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9852 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tgeneric.c] Improved the generic tests in order to trigger thevlefevre2016-01-201-1/+6
| | | | | | | | | | | | mpfr_jn bug found by Fredrik Johansson (r9841) and potential similar bugs: For half cases, the precision of the inputs was modified to be smaller than the base precision (for the result). Here, this rule is changed so that if the base precision is small (< 16), then the precision of the inputs is chosen to be significantly *larger* than the base precision in general. Note: With this improvement, both tj0 and tj1 fail in r9840. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9848 280ebfd0-de03-0410-8827-d642c229c3f4
* fixed bug found by Fredrik Johanssonzimmerma2016-01-201-3/+3
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9844 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tj0.c] Avoid mpfr_set_d.vlefevre2016-01-201-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9842 280ebfd0-de03-0410-8827-d642c229c3f4
* added bug found by Fredrik Johansson in mpfr_j0zimmerma2016-01-191-0/+12
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9841 280ebfd0-de03-0410-8827-d642c229c3f4
* allow tgamma x prec to print gamma(x) to prec bitszimmerma2016-01-172-0/+14
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9829 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tgamma_inc.c] Portability correction.vlefevre2016-01-171-2/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9825 280ebfd0-de03-0410-8827-d642c229c3f4
* first version of incomplete Gamma function (work in progress)zimmerma2016-01-163-2/+90
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9822 280ebfd0-de03-0410-8827-d642c229c3f4
* try to fix bugs in fmma (work in progress)zimmerma2016-01-161-1/+3
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9820 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tlog_ui.c] Added tests for n around ULONG_MAX/3.vlefevre2016-01-151-4/+6
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9818 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tlog_ui.c] Added tests for n around LONG_MAX.vlefevre2016-01-151-3/+5
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9813 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tlog_ui.c]vlefevre2016-01-151-13/+21
| | | | | | | | | | | | | | | | | | * In the loop, do not test n = 0 and n = 1, because mpfr_can_round always fails for these values, so that the test is pointless. * Check that mpfr_can_round no longer fails (this is possible as we are not doing random tests, i.e. the tested values are known); the additional precision for y had to be increased. * Also test large values of n (ULONG_MAX down to ULONG_MAX-19). When GCC's run-time sanitizer -fsanitize=undefined -fno-sanitize-recover is used, it signals an error for large values of n. * The reference values y are obtained with mpfr_log instead of mpfr_log_ui: indeed we need a different implementation from the tested function, otherwise only the rounding is tested! Without GCC's run-time sanitizer, this shows that mpfr_log_ui is buggy for large values of n. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9810 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tfmma.c] Added tests that trigger an error.vlefevre2016-01-151-0/+67
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9807 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/Makefile.am] Tests in lexicographic order.vlefevre2016-01-141-2/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9805 280ebfd0-de03-0410-8827-d642c229c3f4
* in tests, removed #if MPFR_VERSION >= MPFR_VERSION_NUM(2,x,y)zimmerma2016-01-1419-194/+0
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9804 280ebfd0-de03-0410-8827-d642c229c3f4
* forgot in last commitzimmerma2016-01-141-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9803 280ebfd0-de03-0410-8827-d642c229c3f4
* added new function mpfr_log_uizimmerma2016-01-141-0/+157
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9802 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tfmma.c] C++ compatibility.vlefevre2016-01-121-5/+7
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9800 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tfmma.c] Fixed type in printf.vlefevre2016-01-121-2/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9799 280ebfd0-de03-0410-8827-d642c229c3f4
* Really replaced mpfr_printf by printf.vlefevre2016-01-121-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9797 280ebfd0-de03-0410-8827-d642c229c3f4
* replaced mpfr_printf callszimmerma2016-01-121-4/+10
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9795 280ebfd0-de03-0410-8827-d642c229c3f4
* forgot two fileszimmerma2016-01-121-0/+107
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9793 280ebfd0-de03-0410-8827-d642c229c3f4
* speedup in mpfr_fma and mpfr_fmszimmerma2016-01-101-1/+1
| | | | | | | | new functions mpfr_fmma and mpfr_fmms modified mbench/fma to compute b*c+c instead of b*b+c (b*c+d would be better) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9788 280ebfd0-de03-0410-8827-d642c229c3f4
* Updated documentation related to valgrind or other wrapper for the testsvlefevre2016-01-081-0/+5
| | | | | | | | due to the fact that Automake 1.13+ generates a parallel test harness. * doc/README.dev: replaced VALGRIND by LOG_COMPILER. * tests/Makefile.am: added a comment mentioning LOG_COMPILER. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9786 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2016 withvlefevre2016-01-01185-185/+185
| | | | | | | | | perl -pi -e 's/ (\d{4}-)?(2015)(?= Free Software)/ " ".($1||"$2-").($2+1)/e' **/*(^/) under zsh (the m4 and tools/mbench directories were not modified). Removed 2015 from the example in the doc/README.dev file. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9779 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/mpf_compat.h] Fix: File "inp_str.dat" could not be opened withvlefevre2015-12-271-12/+12
| | | | | | | | | | builds outside the source directory (objdir different from srcdir). This did not generate an error, but prevented a test from being done. Now that mpfr-test.h is included via the mpf_compat.c or mpfr_compat.c file (there does not seem to be a valid reason not to include it), we can use src_fopen to open the file in all cases. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9777 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests] In tversion.c, output the locale too (if supported).vlefevre2015-12-273-1/+10
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9775 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tinp_str.c] Added a blank line.vlefevre2015-12-271-0/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9774 280ebfd0-de03-0410-8827-d642c229c3f4