summaryrefslogtreecommitdiff
path: root/tests/tgamma.c
Commit message (Collapse)AuthorAgeFilesLines
* [tests/*.c] When not in a test, use set_emin and set_emax rather thanvlefevre2021-01-311-23/+23
| | | | | | | mpfr_set_emin and mpfr_set_emax, in order to check failures. Done with: perl -pi -e 's/^ *\Kmpfr_(set_e(min|max) *\()/\1/' *.c git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14284 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2021 withvlefevre2021-01-031-1/+1
| | | | | | | | perl -pi -e 's/ (\d{4}-)?(2020)(?= Free Software)/ " ".($1||"$2-").($2+1)/e' **/*(^/) under zsh. Removed 2020 from the example in the doc/README.dev file. git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14229 280ebfd0-de03-0410-8827-d642c229c3f4
* [src,tests] Consistency: in prototypes, changedvlefevre2020-08-211-1/+1
| | | | | | | | | const mpfr_t to mpfr_srcptr mpfr_t to mpfr_ptr (except for mpfr_t *), as this is equivalent (the array is converted to a pointer) and the mpfr_srcptr/mpfr_ptr form is the usual one. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@14103 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tgamma.c] For the non-regression test added in r13907, onevlefevre2020-06-011-1/+10
| | | | | | | also needs to temporarily increase the memory limit, thus require MPFR_CHECK_LARGEMEM too. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13922 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tgamma.c] added comment about bug fixzimmerma2020-05-191-1/+6
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13912 280ebfd0-de03-0410-8827-d642c229c3f4
* [doc/README.dev] added MPFR_CHECK_EXPENSIVEzimmerma2020-05-191-1/+2
| | | | | | | [tests/tgamma.c] use MPFR_CHECK_EXPENSIVE git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13908 280ebfd0-de03-0410-8827-d642c229c3f4
* added non-regression test for bug reported by Frithjof Blomquistzimmerma2020-05-191-0/+32
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13907 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2020 withvlefevre2020-01-081-1/+1
| | | | | | | | perl -pi -e 's/ (\d{4}-)?(2019)(?= Free Software)/ " ".($1||"$2-").($2+1)/e' **/*(^/) under zsh. Removed 2019 from the example in the doc/README.dev file. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13652 280ebfd0-de03-0410-8827-d642c229c3f4
* Updated the www.gnu.org URL's (http → https) on all the files with:vlefevre2019-01-071-1/+1
| | | | | | | perl -pi -e 's,http://www.gnu.org/,https://www.gnu.org/,g' **/*(.) under zsh. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13372 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2019 withvlefevre2019-01-011-1/+1
| | | | | | | | perl -pi -e 's/ (\d{4}-)?(2018)(?= Free Software)/ " ".($1||"$2-").($2+1)/e' **/*(^/) under zsh. Removed 2018 from the example in the doc/README.dev file. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13359 280ebfd0-de03-0410-8827-d642c229c3f4
* Replaced mpfr_mul_2exp & mpfr_div_2exp by mpfr_mul_2ui & mpfr_div_2ui,vlefevre2018-04-171-2/+2
| | | | | | | | respectively (for the tests, except in reuse.c and in taway.c). Note: As documented, mpfr_mul_2exp & mpfr_div_2exp are only kept for compatibility with MPF; mpfr_mul_2ui & mpfr_div_2ui are preferred. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12607 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2018 withvlefevre2018-01-031-1/+1
| | | | | | | | | | perl -pi -e 's/ (\d{4}-)?(2017)(?= Free Software)/ " ".($1||"$2-").($2+1)/e' **/*(^/) under zsh, reverting the ck-mparam and timings-mpfr.c files and the mbench directory under "tools" (not distributed with MPFR). Removed 2017 from the example in the doc/README.dev file. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12067 280ebfd0-de03-0410-8827-d642c229c3f4
* Merged the latest changes from the trunk.vlefevre2017-05-291-21/+21
|\ | | | | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/faithful@11543 280ebfd0-de03-0410-8827-d642c229c3f4
| * Do not define macro names starting with "SIG" (+ uppercase letter)vlefevre2017-05-151-21/+21
| | | | | | | | | | | | | | | | | | | | | | | | as they are reserved when <signal.h> is included (ISO C, 7.31.7), which happens to be the case in tests/tests.c, which also includes tests/mpfr-test.h and src/mpfr-impl.h indirectly. * src/mpfr-impl.h, tests/mpfr-test.h: renamed macros: SIGN → VSIGN SIGN_RAND → RAND_SIGN * {src,tests}/*.{c,h}: updated the names in the use of these macros. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11476 280ebfd0-de03-0410-8827-d642c229c3f4
| * Copyright notice update: added 2017 withvlefevre2017-01-011-1/+1
| | | | | | | | | | | | | | | | | | perl -pi -e 's/ (\d{4}-)?(2016)(?= Free Software)/ " ".($1||"$2-").($2+1)/e' **/*(^/) under zsh, reverting the tools/mbench directory (not distributed with MPFR). Removed 2016 from the example in the doc/README.dev file. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11117 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
* | [tests] Define the RND_RAND_NO_RNDF and RND_LOOP_NO_RNDF macros, similarvlefevre2016-07-221-4/+1
| | | | | | | | | | | | | | | | to RND_RAND and RND_LOOP respectively but excluding MPFR_RNDF, to be used for tests that don't make sense in the faithful rounding mode. Replaced code to use these macros, fixing the remaining failures. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/faithful@10656 280ebfd0-de03-0410-8827-d642c229c3f4
* | more work on branch faithfulzimmerma2016-06-221-0/+3
|/ | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/faithful@10480 280ebfd0-de03-0410-8827-d642c229c3f4
* Replaced various instances of mpfr_print_binary + newline (sometimesvlefevre2016-04-071-8/+8
| | | | | | missing) by mpfr_dump. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10252 280ebfd0-de03-0410-8827-d642c229c3f4
* fixed bug in mpfr_gamma: flags might be corrupted in case the argument waszimmerma2016-02-171-0/+12
| | | | | | | an integer fitting in an unsigned long git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10043 280ebfd0-de03-0410-8827-d642c229c3f4
* reduced emaxzimmerma2016-02-051-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9971 280ebfd0-de03-0410-8827-d642c229c3f4
* changed test_generic() calls to start from MPFR_PREC_MIN instead of 2;zimmerma2016-02-051-1/+1
| | | | | | | this revealed a special-case code in mpfr_exp which didn't work for prec=1 git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9955 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
* allow tgamma x prec to print gamma(x) to prec bitszimmerma2016-01-171-0/+13
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9829 280ebfd0-de03-0410-8827-d642c229c3f4
* first version of incomplete Gamma function (work in progress)zimmerma2016-01-161-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9822 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
* 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
* Use MPFR_IS_NEG and MPFR_IS_POS instead of comparing the sign with 0.vlefevre2014-06-251-3/+3
| | | | | | | | | | | Done with perl -pi -e ' s/MPFR_SIGN *\(([^)]+)\) *<=? *0/MPFR_IS_NEG ($1)/g; s/MPFR_SIGN *\(([^)]+)\) *>=? *0/MPFR_IS_POS ($1)/g; ' {src,tests}/*.{c,h} and some manual changes. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9092 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tgamma.c] Fixed printf argument (bug detected withvlefevre2014-01-261-1/+1
| | | | | | _MPFR_EXP_FORMAT=2 and -Werror=format=). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8904 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
* [tests/tgamma.c] Avoid mpfr_set_d.vlefevre2013-03-011-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8457 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
* [tests/tgamma.c] Added tests for 32-bit and 64-bit machines, showing anvlefevre2012-05-071-0/+7
| | | | | | underflow detection bug in gamma.c (see FIXME comment added in r8185). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8197 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tgamma.c] Added tests to trigger the pre-r8189 endless loopvlefevre2012-05-071-0/+5
| | | | | | on 32-bit machines. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8196 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tgamma.c] Updated exp_lgamma to test the ternary value.vlefevre2012-05-041-14/+37
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8195 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tgamma.c] Added a test showing a failure on 64-bit machinesvlefevre2012-05-041-0/+4
| | | | | | due to an unset overflow flag. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8192 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tgamma.c] Updated exp_lgamma to test underflow & overflow flags.vlefevre2012-05-041-2/+28
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8191 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/lngamma.c] fixed endless loop with test cases introduced in r8188zimmerma2012-05-041-0/+6
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8189 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tgamma.c] Updated the exp_lgamma_tests test to trigger anvlefevre2012-05-031-5/+12
| | | | | | endless loop due to undetected overflow on 64-bit machines. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8188 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tgamma.c] Say that the freeze is for 64-bit machines only.vlefevre2012-05-031-0/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8187 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tgamma.c] Added more mpfr_tgamma tests, showing a freeze.vlefevre2012-05-031-0/+90
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8186 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tgamma.c] Improved testcase test20100709.vlefevre2012-04-271-7/+5
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8164 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 r8159. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8162 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/gamma.c] fixed bug found by Giridhar Tammanazimmerma2012-04-261-0/+31
| | | | | | | | | https://sympa.inria.fr/sympa/arc/mpfr/2012-04/msg00013.html Note (VL): this fix triggers an infinite loop on 32-bit machines (or with -m32) in test20100709 from tgamma.c and this is partly the opposite of changeset r6996. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8159 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests] Removed #include of headers already included via "mpfr-test.h"vlefevre2012-02-241-3/+0
| | | | | | | (<limits.h>, <stdio.h>, <stdlib.h>). Note: this change doesn't apply to tvalist.c, which is a special test that doesn't use "mpfr-test.h". git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8054 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
* Updated AUTHORS file and copyright notices (for more consistency).vlefevre2011-05-181-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7705 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tgamma.c] Added a comment about MPFR_SUSPICIOUS_OVERFLOW.vlefevre2011-03-091-0/+3
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7552 280ebfd0-de03-0410-8827-d642c229c3f4