summaryrefslogtreecommitdiff
path: root/tests/tgeneric.c
Commit message (Collapse)AuthorAgeFilesLines
* [tests/tgeneric.c] For MPFR_RNDF, replaced EQUAL() by SAME_VAL(),faithfulvlefevre2017-05-291-8/+1
| | | | | | which also tests the sign (to distinguish +0 and -0). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/faithful@11545 280ebfd0-de03-0410-8827-d642c229c3f4
* Merged the latest changes from the trunk.vlefevre2017-01-061-0/+10
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/faithful@11151 280ebfd0-de03-0410-8827-d642c229c3f4
* Merged the latest changes from the trunk.vlefevre2017-01-011-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/faithful@11121 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/round_prec.c] Forbid rnd2 = MPFR_RNDF as it does not make muchvlefevre2016-09-021-1/+2
| | | | | | | | | sense without additional specification (and explained why). [tests/{tcan_round.c,tgeneric.c}] Added MPFR_RNDF support with the above restriction. Note: 6 tests are failing as a consequence. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/faithful@10780 280ebfd0-de03-0410-8827-d642c229c3f4
* Merged the following changesets from the trunk:vlefevre2016-09-021-1/+1
| | | | | | | | | r10664-10686,10689-10690,10692,10695-10696,10699-10775 i.e. all the latest changes except for src/{add1sp.c,sub1sp.c} to avoid build failures (to be solved later). Currently only tcan_round fails, due to MPFR_RNDF. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/faithful@10776 280ebfd0-de03-0410-8827-d642c229c3f4
* Removed trailing spaces.vlefevre2016-06-241-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/faithful@10507 280ebfd0-de03-0410-8827-d642c229c3f4
* more work on branch faithfulzimmerma2016-06-221-10/+4
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/faithful@10480 280ebfd0-de03-0410-8827-d642c229c3f4
* RNDF: fixed texp10 and tgenericzimmerma2016-06-021-2/+3
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/faithful@10406 280ebfd0-de03-0410-8827-d642c229c3f4
* more work on the faithful branchzimmerma2016-05-301-11/+80
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/faithful@10385 280ebfd0-de03-0410-8827-d642c229c3f4
* start implementing RNDF (work in progress)zimmerma2016-05-281-2/+4
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/faithful@10380 280ebfd0-de03-0410-8827-d642c229c3f4
* added generic tests for mpfr_log_ui + compare with mpfr_logzimmerma2016-05-241-9/+26
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10359 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tgeneric.c] Check NaN argument, mainly in order to check the NaNvlefevre2016-05-201-10/+27
| | | | | | | flag when the result is NaN (almost all cases). This makes both tadd_ui (ignoring the new test done in r10298) and tsub_ui fail. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10299 280ebfd0-de03-0410-8827-d642c229c3f4
* fixed the number of special tests for 2-argument functionszimmerma2016-02-171-8/+8
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10057 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tgeneric.c] Fixed a typo in latest commit, and added min/maxvlefevre2016-02-171-4/+31
| | | | | | | and max/min special tests for functions with 2 arguments. This triggers a failure in tfmod on 64-bit machines at least. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10051 280ebfd0-de03-0410-8827-d642c229c3f4
* now mpfr_gamma_inc(a,x) also works for 'a' a negative integerzimmerma2016-02-171-3/+8
| | | | | | | | (however a and x should not be too large, we should implement Legendre's continued fraction for the general case) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10049 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/{tgeneric.c,tsi_op.c}] Added TODO.vlefevre2016-02-091-0/+3
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10004 280ebfd0-de03-0410-8827-d642c229c3f4
* Replacedvlefevre2016-02-041-1/+1
| | | | | | | | 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/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
* Copyright notice update: added 2016 withvlefevre2016-01-011-1/+1
| | | | | | | | | 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/tgeneric.c] Fixed overflow/underflow tests introduced in r9539:vlefevre2015-06-101-82/+70
| | | | | | | | | the tests were done in all rounding modes, but the code was incorrect if the exponent of the result depended on the rounding mode. So, the tests are now done only in the rounding mode previously selected. This should be sufficient to detect bugs. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9544 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tgeneric.c] Check whether the exponent range has beenvlefevre2015-06-101-4/+13
| | | | | | | modified by the tested function (which should never happen). This check triggers failures in tlgamma, tlngamma and tsin. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9541 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tgeneric.c] Added overflow/underflow tests (→ 4 failed tests).vlefevre2015-06-101-85/+201
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9539 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tgeneric.c] Removed unless parentheses.vlefevre2015-06-051-2/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9511 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tgeneric.c] Special cases with unsigned long argument.vlefevre2015-06-051-9/+9
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9510 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tgeneric.c] Major clean-up, with some minor corrections.vlefevre2015-06-041-87/+120
| | | | | | | | Added support for unsigned long argument, which can be the first or the second one (another intent is to replace tgeneric_ui.c, which does fewer tests concerning the flags). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9502 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests] Added always_scale argument (boolean) to tests_default_random()vlefevre2015-05-291-2/+9
| | | | | | | | | | | | | | so that when it is true, scaling is always performed on random numbers generated by mpfr_urandomb(), instead of preferring numbers of the order of magnitude of 1 for half outputs. This will be useful for mpfr_rint_* tests. For tgeneric.c, the value of this argument is controlled by a new macro TEST_RANDOM_ALWAYS_SCALE (0 by default, which corresponds to the current behavior). For the other tests that call tests_default_random(), the argument is set to 0, so that the behavior remains the same. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9471 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2015 withvlefevre2015-02-131-1/+1
| | | | | | | | | perl -pi -e 's/ (\d{4}-)?(2014)(?= Free Software)/ " ".($1||"$2-").($2+1)/e' **/*(^/) under zsh, reverting the tools/mbench directory (not distributed with MPFR). Removed 2014 from the example in the doc/README.dev file. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9278 280ebfd0-de03-0410-8827-d642c229c3f4
* Code clean-up:vlefevre2014-06-251-1/+1
| | | | | | | | | | * Simplified the definition of simple mp_limb_t constants: it is better to avoid GMP internals when there is a standard way. * Replaced the use of MP_LIMB_T_MAX by the new macro MPFR_LIMB_MAX. * So, removed the now useless MP_LIMB_T_MAX and GMP_LIMB_HIGHBIT definitions from "mpfr-gmp.h". git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9090 280ebfd0-de03-0410-8827-d642c229c3f4
* Updated URL's.vlefevre2014-06-221-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9081 280ebfd0-de03-0410-8827-d642c229c3f4
* Removed MPFR_CHECK_MAX as it is now useless: all "max" tests succeed.vlefevre2014-02-051-2/+0
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8919 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tgeneric.c] Fixed bug found by PZ: code introduced in r4538 tovlefevre2014-01-171-1/+1
| | | | | | | | test the maximum (in absolute value) positive and negative arguments was buggy, as only the negative one was tested. → This makes some tests fail on the maximum positive argument. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8765 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2014 withvlefevre2014-01-031-1/+1
| | | | | | | | | perl -pi -e 's/ (\d{4}-)?(2013)(?= Free Software)/ " ".($1||"$2-").($2+1)/e' **/*(^/) under zsh (the tools/mbench directory was not modified). Removed 2013 from the example in the doc/README.dev file. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8723 280ebfd0-de03-0410-8827-d642c229c3f4
* Use copyright year ranges, followingvlefevre2013-05-301-1/+1
| | | | | | http://www.gnu.org/prep/maintain/maintain.html#Copyright-Notices git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8540 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2013 withvlefevre2013-01-031-1/+1
| | | | | | | | | perl -pi -e 's/2012 Free Software/2012, 2013 Free Software/' **/*(^/) under zsh, reverting the ChangeLog file and the m4 directory (the tools/mbench directory was not modified). Removed 2012 from the example in the doc/README.dev file. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8447 280ebfd0-de03-0410-8827-d642c229c3f4
* Compatibility with GMP 5.1.0 when gmp-impl.h is included (thanks to Rob:vlefevre2012-12-201-2/+2
| | | | | | https://sympa.inria.fr/sympa/arc/mpfr/2012-12/msg00003.html); clean-up. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8439 280ebfd0-de03-0410-8827-d642c229c3f4
* Changed Arenaire to AriC with:vlefevre2012-01-101-1/+1
| | | | | | | perl -pi -e 's/Contributed by the Arenaire/Contributed by the AriC/' **/*(^/) under zsh. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7993 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2012 withvlefevre2012-01-101-1/+1
| | | | | | | | | 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/trunk@7986 280ebfd0-de03-0410-8827-d642c229c3f4
* Renamed "division-by-zero" to "divide-by-zero" (term used by thevlefevre2011-09-241-4/+4
| | | | | | | | 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"). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7886 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tgeneric.c] Added debug information.vlefevre2011-03-211-0/+6
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7590 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tgeneric.c] In failure messages, output the name of thevlefevre2011-03-151-6/+13
| | | | | | | tested function. This is useful for programs that have generic tests for several functions, such as terf. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7571 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tgeneric.c] Added feature for MPFR_SUSPICIOUS_OVERFLOW to avoidvlefevre2011-03-091-1/+8
| | | | | | spurious failures by defining TGENERIC_SO_TEST to some well-chosen test. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7553 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tgeneric.c] Added generic tests in a reduced exponent range.vlefevre2011-02-171-10/+89
| | | | | | This currently makes 10 tests fail on a 64-bit machine. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7470 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tgeneric.c] Reformat.vlefevre2011-02-171-4/+4
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7467 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2011 withvlefevre2011-01-171-1/+1
| | | | | | | | perl -pi -e 's/2010 Free Software/2010, 2011 Free Software/' **/*(^/) under zsh, reverting the ChangeLog file and the m4 and tools/mbench directories. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7389 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tgeneric.c] Fixed code introduced in r7346, again.vlefevre2011-01-141-2/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7357 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tgeneric.c] Fixed code introduced in r7346.vlefevre2011-01-141-4/+4
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7354 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tgeneric.c] Added comments.vlefevre2011-01-141-0/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7347 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tgeneric.c] Check the division-by-zero flag.vlefevre2011-01-141-2/+22
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7346 280ebfd0-de03-0410-8827-d642c229c3f4
* Support implementations where the floating-point division by 0 fails.vlefevre2010-08-041-0/+3
| | | | | | | | | | | | | | * acinclude.m4: added a test to check whether the FP division by 0 fails, and define MPFR_ERRDIVZERO in such a case. * tests/tests.c: if MPFR_TEST_DIVBYZERO is defined, test whether there has been a floating-point division by 0 (FE_DIVBYZERO or FE_INVALID exception). * tests/tgeneric.c: if MPFR_ERRDIVZERO is defined, disable the huge and tiny cases. * tests/t*_{flt,d,ld}.c: if MPFR_ERRDIVZERO is defined, disable tests involving NaN and infinities. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7050 280ebfd0-de03-0410-8827-d642c229c3f4
* Replacedvlefevre2010-07-301-1/+1
| | | | | | | | Contributed by the Arenaire and Cacao projects by Contributed by the Arenaire and Caramel projects git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7026 280ebfd0-de03-0410-8827-d642c229c3f4