summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* [tests/tset_z_exp.c] Fixed type in a printf.vlefevre2010-05-311-1/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6901 280ebfd0-de03-0410-8827-d642c229c3f4
* [tset_z_exp.c] fixed two FIXMEzimmerma2010-05-311-7/+14
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6898 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tset_z_exp.c] Added 2 FIXME in the test.vlefevre2010-05-311-7/+6
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6897 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tset_z_exp.c] Removed testcase bug20100531 (this was a bug invlefevre2010-05-311-29/+8
| | | | | | | the test, which didn't detect overflow cases due to too large random exponent). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6896 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tset_z_exp.c] Added testcase bug20100531.vlefevre2010-05-311-0/+27
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6895 280ebfd0-de03-0410-8827-d642c229c3f4
* Made defined the previously undefined cases of mpfr_get_si, mpfr_get_ui,vlefevre2010-05-253-0/+72
| | | | | | | mpfr_get_sj, mpfr_get_uj, mpfr_get_z and mpfr_get_z_2exp. In such cases, the erange flag is set. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6879 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tstckintc.c] Changed mpfr_custom_get_mantissa intovlefevre2010-05-251-1/+1
| | | | | | | mpfr_custom_get_significand (but mpfr_custom_get_mantissa was still working thanks to the #define). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6867 280ebfd0-de03-0410-8827-d642c229c3f4
* Detect when the intmax_t type is available but INTMAX_MAX doesn't workvlefevre2010-05-223-25/+25
| | | | | | | | | | (e.g. with gcc -ansi -pedantic-errors in 32-bit mode under GNU/Linux). New macros MPFR_UINTMAX_MAX, MPFR_INTMAX_MAX and MPFR_INTMAX_MIN are defined and used internally instead of UINTMAX_MAX, INTMAX_MAX and INTMAX_MIN. If these C99 macros work, then the MPFR_* macros use them, otherwise MPFR uses its own definitions. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6849 280ebfd0-de03-0410-8827-d642c229c3f4
* Type corrections for C++ compilers (in particular, mpfr_rnd_t vs int).vlefevre2010-05-195-16/+18
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6825 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tests.c] Fixed code when _MPFR_PREC_FORMAT != 3.vlefevre2010-05-081-2/+4
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6791 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tests.c] fixed compiler warning (found by nightly tests)zimmerma2010-05-081-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6790 280ebfd0-de03-0410-8827-d642c229c3f4
* New exponent type mpfr_exp_t for MPFR (replacing GMP's mp_exp_t).vlefevre2010-05-0761-124/+124
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6789 280ebfd0-de03-0410-8827-d642c229c3f4
* Changed the precision type mpfr_prec_t from an unsigned integer typevlefevre2010-05-071-0/+5
| | | | | | | | | | | | | | | | into the corresponding signed integer type, in order to avoid problems due to the usual arithmetic conversions when mixing mpfr_prec_t and mp_exp_t in an expression. * NEWS: mentioned this change. * mpfr-impl.h: removed MPFR_INTPREC_MAX (which wasn't used) and updated the MPFR_UNSIGNED_MINUS_MODULO(S,A) macro, which assumed that A was unsigned; this macro now works even when A is signed. * mpfr.h: added mpfr_uprec_t; updated mpfr_prec_t and MPFR_PREC_MAX. * tests/tcheck.c: disabled a test on MPFR_PREC_MAX+1 with MPFR >= 3 (this test doesn't work with a signed mpfr_prec_t and isn't needed). Note: all tests pass under GNU Linux x86 and x86_64. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6787 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tcheck.c] Forgot to remove a printf (added during testing).vlefevre2010-05-071-1/+0
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6786 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tcheck.c] Support signed mpfr_prec_t (avoid integer overflow).vlefevre2010-05-071-2/+6
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6785 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/mpf_compat.h] Fixed prototype of function main.vlefevre2010-05-071-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6784 280ebfd0-de03-0410-8827-d642c229c3f4
* Add specifier 'Y' for the rounding away from zero mode in printf-like functions.thevenyp2010-05-031-10/+56
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6773 280ebfd0-de03-0410-8827-d642c229c3f4
* Changed mp_prec_t into mpfr_prec_t.vlefevre2010-04-3052-138/+138
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6767 280ebfd0-de03-0410-8827-d642c229c3f4
* [tai.c] enable first test of check_large, and reduced total timezimmerma2010-03-191-2/+4
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6740 280ebfd0-de03-0410-8827-d642c229c3f4
* Removed check of ai.c for large arguments. I added in algorithms.tex a schevill2010-03-191-1/+1
| | | | | | | | | | mention about the fact that mpfr_ai is currently not made for large arguments. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6738 280ebfd0-de03-0410-8827-d642c229c3f4
* [tai.c] reduce the maximal exponents in test_generic()zimmerma2010-03-181-1/+4
| | | | | | | also reduce the number of random tests to decrease the test time git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6734 280ebfd0-de03-0410-8827-d642c229c3f4
* [tai.c] replace mpfr_cmp by mpfr_equal_pzimmerma2010-03-181-2/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6732 280ebfd0-de03-0410-8827-d642c229c3f4
* tests/tset_z_exp.c untabified.vlefevre2010-03-181-2/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6731 280ebfd0-de03-0410-8827-d642c229c3f4
* [tai.c] added test for large inputszimmerma2010-03-181-1/+35
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6726 280ebfd0-de03-0410-8827-d642c229c3f4
* * Added function mpfr_ai. The implementation is the most naive: it evaluatesschevill2010-03-172-1/+45
| | | | | | | | | | | | | | | | | | | | | | the series step by step until it can stop. A special strategy is used to detect possible problems when Ai(x) is very close to 0. * Updated algorithms.tex with the technical description of the implementation of mpfr_ai. * Added algorithm2e.sty and algorithm2e-compatibility.sty (necessary to compile algorithms.tex now). * Updated mpfr.texi to let it know this new function. * Added a basic test file for mpfr_ai. I will add other test cases later. * Added a small HOWTO to README.dev about how to add a new test file for new functions. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6723 280ebfd0-de03-0410-8827-d642c229c3f4
* GMP_RNDx -> MPFR_RNDxvlefevre2010-03-111-2/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6720 280ebfd0-de03-0410-8827-d642c229c3f4
* [tstrtofr.c] added test for 1.23e, cfzimmerma2010-03-111-0/+28
| | | | | | | http://gmplib.org/list-archives/gmp-bugs/2010-March/001898.html git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6719 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tsqrt.c] Add the test -1 <= x/sqrt(x^2) <= 1, which correspondsvlefevre2010-03-111-8/+15
| | | | | | | | to -1 <= x/sqrt(x^2+y^2) <= 1 with y = 0. I don't think the test with random y is still necessary, though, since even a bad sqrt accuracy would not be detected. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6718 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tsqrt.c] Added a comment about the x/sqrt(x^2+y^2) test.vlefevre2010-03-101-0/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6717 280ebfd0-de03-0410-8827-d642c229c3f4
* [tsqrt.c] fixed bug reported by Sam Rawlinszimmerma2010-03-101-1/+1
| | | | | | | | (https://sympa.inria.fr/sympa/arc/mpfr/2010-03/msg00007.html) Note: this "bug" had no noticeable consequences; this can just be seen as an incomplete test. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6716 280ebfd0-de03-0410-8827-d642c229c3f4
* changed mpfr_get_z_exp -> mpfr_get_z_2exp (old function) zimmerma2010-02-221-5/+5
| | | | | | | mpfr_set_z_exp -> mpfr_set_z_2exp (new function) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6707 280ebfd0-de03-0410-8827-d642c229c3f4
* added new function mpfr_set_z_exp (companion to mpfr_get_z_exp)zimmerma2010-02-222-4/+110
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6706 280ebfd0-de03-0410-8827-d642c229c3f4
* * Added tests/tstdint.c to test the double inclusion of mpfr.h when onlyvlefevre2010-02-181-0/+57
| | | | | | | | | | the second occurrence needs <stdint.h> (this can happen when one uses several libraries that use MPFR under different conditions). * Added tstdint to the svn:ignore property of "tests". * TODO: mentions that tstdint should be added to check_PROGRAMS in the tests/Makefile.am file once this is fixed. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6705 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2010 withvlefevre2010-01-20166-166/+166
| | | | | | | perl -pi -e 's/2009 Free Software/2009, 2010 Free Software/' **/*(^/) under zsh, reverting the ChangeLog file and the mbench directory. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6684 280ebfd0-de03-0410-8827-d642c229c3f4
* [tprintf.c, tfprintf.c] cleaned up previous commitzimmerma2010-01-182-4/+6
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6678 280ebfd0-de03-0410-8827-d642c229c3f4
* tests/turandom.c: updated a test (if emin > 1 and rnd == MPFR_RNDN,vlefevre2010-01-181-1/+2
| | | | | | then the result is necessarily 0). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6677 280ebfd0-de03-0410-8827-d642c229c3f4
* tests/turandom.c: more tests in restricted exponent range.vlefevre2010-01-181-13/+16
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6676 280ebfd0-de03-0410-8827-d642c229c3f4
* [tprintf.c,tfprintf.c] print obtained chain in test #8zimmerma2010-01-182-0/+4
| | | | | | | (https://sympa.inria.fr/sympa/arc/mpfr/2009-12/msg00035.html) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6674 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/turandom.c] Change accumulation of ternary value in the loop, it was ↵thevenyp2010-01-151-1/+2
| | | | | | not portable in system with sign and magnitude representation for integers. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6666 280ebfd0-de03-0410-8827-d642c229c3f4
* [urandom.c, mpfr.texi] Change the behavior of mpfr_urandom to the usual mpfr ↵thevenyp2010-01-141-13/+31
| | | | | | | | | function interface (wrt the ternary value and the out-of-range behavior). [tests/turandom.c] Check new behavior and add a test for the inclusion in [0, 1]. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6655 280ebfd0-de03-0410-8827-d642c229c3f4
* New function mpfr_urandom.thevenyp2010-01-132-22/+209
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6654 280ebfd0-de03-0410-8827-d642c229c3f4
* Replaced GMP_LIMB_BITS by GMP_NUMB_BITS to use only one of these macros.vlefevre2010-01-0817-51/+51
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6646 280ebfd0-de03-0410-8827-d642c229c3f4
* BITS_PER_MP_LIMB -> GMP_LIMB_BITSzimmerma2010-01-0817-51/+51
| | | | | | | | got rid of BYTES_PER_MP_LIMB in configure.in (no longer defined by GMP) Note[VL] (mpfr-impl.h): a mpn_sqr_n() macro is defined to use mpn_mul if it is not already defined (in gmp-impl.h from GMP 4.x). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6644 280ebfd0-de03-0410-8827-d642c229c3f4
* tests/tsin_cos.c: in consistency(), better error message.vlefevre2009-12-071-6/+10
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6627 280ebfd0-de03-0410-8827-d642c229c3f4
* tests/tsin_cos.c: in consistency(), improved testing on underflow case.vlefevre2009-12-071-7/+13
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6626 280ebfd0-de03-0410-8827-d642c229c3f4
* tests/tsin_cos.c: in consistency(), added testing on underflow case.vlefevre2009-12-071-5/+20
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6625 280ebfd0-de03-0410-8827-d642c229c3f4
* tests/tsin_cos.c: in consistency(), fixed flags testing.vlefevre2009-12-071-2/+7
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6624 280ebfd0-de03-0410-8827-d642c229c3f4
* tests/tsin_cos.c: in consistency(), test also the flags.vlefevre2009-12-071-1/+8
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6623 280ebfd0-de03-0410-8827-d642c229c3f4
* tests/tsin_cos.c: in consistency(), test also the returned valuevlefevre2009-12-071-4/+10
| | | | | | (the one that gives inexact-related information). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6622 280ebfd0-de03-0410-8827-d642c229c3f4
* [tfits.c] converted to GNU coding stylezimmerma2009-11-301-78/+78
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6619 280ebfd0-de03-0410-8827-d642c229c3f4