summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Use copyright year ranges, followingvlefevre2013-05-30172-172/+172
| | | | | | http://www.gnu.org/prep/maintain/maintain.html#Copyright-Notices git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@8541 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2013 withvlefevre2013-03-08172-172/+172
| | | | | | | | | perl -pi -e 's/2012 Free Software/2012, 2013 Free Software/' **/*(^/) under zsh, reverting the ChangeLog file (the m4 and tools/mbench directories were not modified). Removed 2012 from the example in the doc/README.dev file. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@8465 280ebfd0-de03-0410-8827-d642c229c3f4
* Compatibility with GMP 5.1.0 and later when gmp-impl.h is included,vlefevre2013-02-222-4/+4
| | | | | | | i.e. with --with-gmp-build (thanks to Rob for the fix); clean-up. (merged changeset r8439 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@8454 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/strtofr.c] Fixed bug in mpfr_strtofr in case:vlefevre2012-08-291-0/+88
| | | | | | | | | | | | (1) the input string was used entirely (2) the conversion was done by a division (3) and the division was exact In such a case the "reconstruction" of the ternary value was inexact. [tests/tstrtofr.c] Added various testcases (for this bug and for bugs in intermediate revisions). (merged changesets r8371,8384,8389-8398 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@8399 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/get_d64.c] mpfr_get_decimal64 was buggy in MPFR_RNDN on somevlefevre2012-08-161-0/+27
| | | | | | | | | values x such that 0.5e-398 < |x| < 1e-398 (smallest subnormal): it was returning 0 instead of +/- 1e-398. [tests/tget_set_d64.c] Added testcases. (merged changesets r8370,8379 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@8380 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/get_d64.c] Fixed get_decimal64_max by simplifying it completely,vlefevre2012-08-151-0/+65
| | | | | | | | | | | and changed get_decimal64_min in the same way. Thanks to Rob (Sisyphus) for the idea. [tests/tget_set_d64.c] Added some tests for large numbers and overflow tests (they cover the two bad tests fixed in r8373 and trigger the bug in get_decimal64_max fixed here). (merged changesets r8375-8377 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@8378 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tests.c] Improved an error message.vlefevre2012-07-033-1/+10
| | | | | | | | [tests/{td_div.c,tget_d.c}] Disable tests with a division by 0 if MPFR_ERRDIVZERO is defined. (merged changesets r8298-8299 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@8300 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tgrandom.c] Replaced GMP_RNDN by MPFR_RNDN.vlefevre2012-06-271-1/+1
| | | | | | (merged changeset r8283 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@8284 280ebfd0-de03-0410-8827-d642c229c3f4
* [doc/mpfr.texi] Completed spec of mpfr_grandom.vlefevre2012-06-271-11/+35
| | | | | | | | [tests/tgrandom.c] Improved a test and added a new one for mpfr_grandom(x, NULL, ...). (merged changesets r8279-8280 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@8281 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tinternals.c] mpfr_set_prec_raw missing tests (thanks to Patrick).vlefevre2012-06-261-0/+20
| | | | | | (merged changeset r8253 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@8254 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tset_si.c] Also test the mpfr_set_ui function (instead of macro).vlefevre2012-06-261-0/+8
| | | | | | (merged changeset r8251 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@8252 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tset_ld.c] For _GMP_IEEE_FLOATS, use #if instead of #ifdefvlefevre2012-06-211-1/+1
| | | | | | | since mpfr-impl.h defines it to 0 if it was undefined. (merged changeset r8219 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@8220 280ebfd0-de03-0410-8827-d642c229c3f4
* Patch from Nitin A Kamble for automake 1.12vlefevre2012-05-091-1/+1
| | | | | | (merged changeset r8204 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@8205 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/lngamma.c] Added mpfr_explgamma internal function to handlevlefevre2012-05-071-0/+170
| | | | | | | | | | overflows/underflows (intermediate or not) in mpfr_gamma. Added general overflow detection. [src/gamma.c] Added general underflow detection. [tests/tgamma.c] Added testcases for 32-bit and 64-bit machines. (merged changesets r8174,8179,8182-8183,8185-8189,8191-8199 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@8200 280ebfd0-de03-0410-8827-d642c229c3f4
* Merged changesets r8172-8173,8175 from the trunk to update URL's ofvlefevre2012-05-034-9/+9
| | | | | | mailing-list archives/messages. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@8176 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tgamma.c] Improved testcase test20100709.vlefevre2012-04-271-7/+5
| | | | | | (merged changeset r8164 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@8165 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tgamma.c] Updated testcase test20100709 for 64-bit machines,vlefevre2012-04-271-3/+44
| | | | | | | as this bug reappeared in r8160 (r8159 from the trunk). (merged changeset r8162 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@8163 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/gamma.c] Fixed bug in the underflow detection code of mpfr_gamma,vlefevre2012-04-271-0/+31
| | | | | | | | | found by Giridhar Tammana: some results may incorrectly be regarded as underflow. [tests/tgamma.c] Added testcase. (merged changeset r8159 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@8160 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/{Makefile.am,tests.c}] Fixed src_fopen to be able to run testvlefevre2012-03-262-6/+11
| | | | | | | programs directly (without "make check") when objdir != srcdir. (merged changesets r8122,8126 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@8127 280ebfd0-de03-0410-8827-d642c229c3f4
* Avoid potential integer overflows and improve consistency. This shouldvlefevre2012-03-081-1/+26
| | | | | | | | | | | | fix bug #13918 "Segfault with precision = MPFR_PREC_MAX on 32-bit". Note: this problem appeared in MPFR 3.0.0 when the precision type (now mpfr_prec_t) was changed to a signed integer. Added a large precision test in tests/tinits.c (enabled by setting MPFR_CHECK_LARGEMEM=1) to trigger the bug mentioned above on 32-bit machines (or when MPFR is built with -m32). (merged changesets r8025,8026,8029,8031,8077 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@8080 280ebfd0-de03-0410-8827-d642c229c3f4
* Changed Arenaire to AriC with:vlefevre2012-01-10171-171/+171
| | | | | | | perl -pi -e 's/Contributed by the Arenaire/Contributed by the AriC/' **/*(^/) under zsh, reverting the ChangeLog file. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@7995 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2012 withvlefevre2012-01-10172-172/+172
| | | | | | | | | perl -pi -e 's/2011 Free Software/2011, 2012 Free Software/' **/*(^/) under zsh, reverting the ChangeLog file (the m4 and tools/mbench directories were not modified). Removed 2011 from the example in the doc/README.dev file. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@7987 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/turandom.c] Removed an obsolete comment.vlefevre2011-11-281-2/+0
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@7972 280ebfd0-de03-0410-8827-d642c229c3f4
* Merged changesets r7965-7966 from the trunk:vlefevre2011-11-282-8/+24
| | | | | | | | | [doc/mpfr.texi] Mentioned the difference between GMP 4.1 and 4.2 about the changes of mpfr_urandom and mpfr_urandomb in MPFR 3.1. [tests/trandom.c,tests/turandom.c] Fixed compatibility with GMP 4.1.x (since the default PRNG has changed between GMP 4.1 and 4.2). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@7968 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tsprintf.c] Coding style.vlefevre2011-11-031-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@7942 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/vasprintf.c] Fixed bug reported by Pavel Holoborodko.vlefevre2011-11-031-0/+30
| | | | | | | [tests/tsprintf.c] Added testcases. (Merged changesets r7931 (except src/mpn_exp.c) and r7933-7936.) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@7940 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/Makefile.am] Added -L$(top_builddir)/src/.libs to AM_LDFLAGS.vlefevre2011-10-141-2/+18
| | | | | | [INSTALL] Removed the notes on HP-UX (obsolete after the above change). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@7921 280ebfd0-de03-0410-8827-d642c229c3f4
* Renamed "division-by-zero" to "divide-by-zero" (term used by thevlefevre2011-09-242-5/+5
| | | | | | | | | ISO C99 standard, the IEEE 754-2008 standard using divideByZero, and the old IEEE 754-1985 standard using both "divide by zero" and "division by zero"). (Merged changeset r7886 from the trunk.) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@7887 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tgmpop.c] Improved division-by-zero tests.vlefevre2011-09-241-52/+72
| | | | | | | [src/gmp_op.c] Forgot to update the flags in some functions. (Merged changesets r7882 and r7883 from the trunk.) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@7885 280ebfd0-de03-0410-8827-d642c229c3f4
* Renamed mpfr_buildopt_internals_p to mpfr_buildopt_gmpinternals_p.vlefevre2011-09-201-6/+6
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7869 280ebfd0-de03-0410-8827-d642c229c3f4
* Added mpfr_buildopt_internals_p function.vlefevre2011-09-201-0/+19
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7868 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tgmpop.c] check for erange flag in mpfr_cmp_[f,q,z]zimmerma2011-09-191-2/+44
| | | | | | | (https://sympa.inria.fr/sympa/arc/mpfr/2011-09/msg00013.html) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7860 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/trec_sqrt.c] Fixed bug introduced in r7711 (build failurevlefevre2011-09-101-11/+11
| | | | | | with a C++ compiler). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7836 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/Makefile.am]vlefevre2011-09-081-1/+7
| | | | | | | | | | | * Added "AM_LDFLAGS = -no-install" to prevent libtool from generating wrapper scripts for the tests (according to discussions and tests, there should be no negative effects); useful for gdb and valgrind. * Added $(VALGRIND) to TESTS_ENVIRONMENT in order to easily run the tests under valgrind with: VALGRIND="valgrind -q" make check [doc/README.dev] Update for gdb and valgrind. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7808 280ebfd0-de03-0410-8827-d642c229c3f4
* Untabified and removed trailing spaces.vlefevre2011-08-011-36/+36
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7778 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tversion.c] Improved output information.vlefevre2011-08-011-3/+3
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7777 280ebfd0-de03-0410-8827-d642c229c3f4
* [mparam_h.in] changed the detection of 64-bit Core 2, and addedzimmerma2011-07-311-0/+11
| | | | | | | | | MPFR_TUNE_CASE for default case [tversion.c] print GMP version (header and library), and file for tuning parameters git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7770 280ebfd0-de03-0410-8827-d642c229c3f4
* Avoid expensive calls to mpfr_get_prec() using mpfr_ceil_mul() instead.thevenyp2011-07-281-0/+34
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7761 280ebfd0-de03-0410-8827-d642c229c3f4
* [tget_flt.c] added test to check FLT_MAX + FLT_MAX gives INFPzimmerma2011-07-281-0/+6
| | | | | | | (to early detect compiler bugs) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7754 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tget_flt.c] Replaced FLT_MAX + FLT_MAX by (float) DBL_POS_INF,vlefevre2011-07-011-7/+1
| | | | | | | which should trigger fewer compiler bugs. See: https://sympa.inria.fr/sympa/arc/mpfr/2011-07/msg00002.html git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7736 280ebfd0-de03-0410-8827-d642c229c3f4
* [tget_flt.c] check for compiler bugzimmerma2011-07-011-0/+6
| | | | | | | (https://sympa.inria.fr/sympa/arc/mpfr/2011-07/msg00000.html) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7733 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/rec_sqrt.c] continued review; I can now prove that cu=0 in all caseszimmerma2011-05-221-0/+62
| | | | | | | [tests/trec_sqrt.c] added tests for corner cases git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7711 280ebfd0-de03-0410-8827-d642c229c3f4
* Updated AUTHORS file and copyright notices (for more consistency).vlefevre2011-05-1812-6/+16
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7705 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/thyperbolic.c] Fixed copyright notice.vlefevre2011-05-181-4/+5
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7704 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tsqr.c] Added a note in the check_mpn_sqr error message.vlefevre2011-05-181-0/+3
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7698 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tsqr.c] Added a test of mpn_sqr concerning a bug seenvlefevre2011-05-181-0/+34
| | | | | | with GCC 4.5.2 and GMP 5.0.1 on m68k (m68000 target). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7697 280ebfd0-de03-0410-8827-d642c229c3f4
* Added mpfr-intmax.h header.vlefevre2011-05-135-56/+5
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7695 280ebfd0-de03-0410-8827-d642c229c3f4
* Started to support mpfr_exp_t defined as intmax_t (_MPFR_EXP_FORMAT==4).vlefevre2011-05-132-0/+12
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7694 280ebfd0-de03-0410-8827-d642c229c3f4
* Fixed printf's calls: support the case where mpfr_prec_t is not a longvlefevre2011-05-1212-74/+94
| | | | | | | (or unsigned long). [merged changeset r7643 from the exp-int branch] git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7686 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tpow_z.c] More details for a test in case of failure.vlefevre2011-05-121-1/+11
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7683 280ebfd0-de03-0410-8827-d642c229c3f4