summaryrefslogtreecommitdiff
path: root/lngamma.c
Commit message (Collapse)AuthorAgeFilesLines
* Copyright notice update: added 2010 withvlefevre2010-01-251-1/+1
| | | | | | | 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/branches/2.4@6688 280ebfd0-de03-0410-8827-d642c229c3f4
* [lngamma.c] Fixed typo, added comments about argument reduction, andvlefevre2009-11-091-17/+21
| | | | | | replaced code using doubles. [Patch r6520 ported from the trunk.] git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/2.4@6539 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2009 withvlefevre2009-01-151-1/+1
| | | | | | | perl -pi -e 's/2008 Free Software/2008, 2009 Free Software/' **/*(^/) under zsh. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/2.4@5819 280ebfd0-de03-0410-8827-d642c229c3f4
* r5689 undone: some casts were incorrect (mp_exp_t may be greater thanvlefevre2008-11-221-4/+4
| | | | | | | | | mp_prec_t, so that casting a mp_exp_t into a mp_prec_t can introduce a bug). There may be bugs in some cases, but the casts fix the symptom, not the bug (unless one casts the unsigned type to a signed type that is *strictly* larger, which is not possible here). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5690 280ebfd0-de03-0410-8827-d642c229c3f4
* fixed some signed/unsigned warnings with g++ (please review)zimmerma2008-11-221-4/+4
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5689 280ebfd0-de03-0410-8827-d642c229c3f4
* This is now GNU MPFR!vlefevre2008-10-271-4/+4
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5654 280ebfd0-de03-0410-8827-d642c229c3f4
* mpfr-impl.h: defined macro INITIALIZED to declare that some variablevlefevre2008-08-181-2/+1
| | | | | | | | is initialized before being used. README.dev: described the use of this macro. lngamma.c: replaced the dummy initialization by this macro. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5534 280ebfd0-de03-0410-8827-d642c229c3f4
* Added documentation about "'var' may be used uninitialized in thisvlefevre2008-05-231-3/+2
| | | | | | | function" warnings. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5360 280ebfd0-de03-0410-8827-d642c229c3f4
* Added comments about int i = i trick to avoid warning about uninitializedzimmerma2008-05-221-2/+3
| | | | | | | variables. This has the advantage to generate no code, but works for gcc only. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5359 280ebfd0-de03-0410-8827-d642c229c3f4
* got rid of false (?) compiler warnings for uninitialized valueszimmerma2008-05-211-1/+2
| | | | | | | | -> we might want to revert this change if we find a better solution and/or if the problem is fixed in gcc git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5357 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2008 withvlefevre2008-01-011-1/+1
| | | | | | | | perl -pi -e 's/2007 Free Software/2007, 2008 Free Software/' **/*(^/) under zsh. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5151 280ebfd0-de03-0410-8827-d642c229c3f4
* Untabified and removed trailing spaces.vlefevre2007-10-311-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4933 280ebfd0-de03-0410-8827-d642c229c3f4
* fixed bug mentioned by Kevin Rauch: mpfr_lgamma was hanging for tiny inputzimmerma2007-10-281-44/+60
| | | | | | | (had to implement a complete loop in that case) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4928 280ebfd0-de03-0410-8827-d642c229c3f4
* fixed bug found by Kevin Rauch (emin/emax not restored for x=1,2)zimmerma2007-10-261-1/+4
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4917 280ebfd0-de03-0410-8827-d642c229c3f4
* previous bug fix for tiny negative inputs in mpfr_lgamma was incorrect:zimmerma2007-07-171-19/+35
| | | | | | | | result was NaN, but this was not detected by the tests since mpfr_cmp (y, NaN) is always true! git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4643 280ebfd0-de03-0410-8827-d642c229c3f4
* lngamma.c: fix for small inputszimmerma2007-07-161-1/+5
| | | | | | | | tlgamma.c: added more tests from Kaveh Ghazi git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4640 280ebfd0-de03-0410-8827-d642c229c3f4
* lngamma.c: reformat and replaced mpfr_cmp(...) == 0 by mpfr_equal_p.vlefevre2007-07-031-31/+31
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4628 280ebfd0-de03-0410-8827-d642c229c3f4
* fixed bug in tlgamma and added test (need to implement Ziv's strategy inzimmerma2007-07-031-3/+8
| | | | | | | tiny case) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4625 280ebfd0-de03-0410-8827-d642c229c3f4
* Untabified and removed trailing spaces.vlefevre2007-06-201-6/+6
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4553 280ebfd0-de03-0410-8827-d642c229c3f4
* fixed problem with mpfr_lgamma for tiny negative input (and fixed use of zimmerma2007-06-111-44/+85
| | | | | | | generic test) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4536 280ebfd0-de03-0410-8827-d642c229c3f4
* Defined new macros SIGN and SAME_SIGN in mpfr-impl.h to canonicalizevlefevre2007-05-291-1/+1
| | | | | | | | the ternary value and to compare such values. Use SAME_SIGN in erf.c and lngamma.c. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4505 280ebfd0-de03-0410-8827-d642c229c3f4
* lngamma.c: fixed problem of tiny inputs in lngamma (still remains lgammazimmerma2007-05-291-0/+38
| | | | | | | | to deal with) erf.c: small correction (inexact flags might have been inexact :-) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4503 280ebfd0-de03-0410-8827-d642c229c3f4
* fixed error analysis in mpfr_lngammazimmerma2007-05-171-3/+14
| | | | | | | added mpfr_inp_raw/mpfr_out_raw in TODO git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4451 280ebfd0-de03-0410-8827-d642c229c3f4
* more details of error analysiszimmerma2007-05-031-2/+5
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4436 280ebfd0-de03-0410-8827-d642c229c3f4
* fixed error analysis (error was over-estimated)zimmerma2007-04-271-2/+3
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4419 280ebfd0-de03-0410-8827-d642c229c3f4
* lngamma.c: a bit more details in the error analysis for z0 < 1.vlefevre2007-04-261-4/+6
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4418 280ebfd0-de03-0410-8827-d642c229c3f4
* lngamma.c: a bit more details in the error analysis for z0 < 1.vlefevre2007-04-261-4/+4
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4417 280ebfd0-de03-0410-8827-d642c229c3f4
* u was used for two different meanings in the error analysis for z0 < 1zimmerma2007-04-261-8/+11
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4416 280ebfd0-de03-0410-8827-d642c229c3f4
* Added preliminary support for mpfr_lngamma and tests.vlefevre2007-04-251-30/+89
| | | | | | | | TODO: add support for negative numbers with small exponent. Re-enable the generic tests when this is done. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4413 280ebfd0-de03-0410-8827-d642c229c3f4
* lngamma.c: There was an assertion failed, probably because the errorvlefevre2007-04-251-1/+2
| | | | | | | was too large; fixed that by restarting with a larger precision. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4412 280ebfd0-de03-0410-8827-d642c229c3f4
* lngamma.c: fixed -2k-1 <= x <= -2k test.vlefevre2007-04-251-9/+31
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4411 280ebfd0-de03-0410-8827-d642c229c3f4
* Added "Contributed by the Arenaire and Cacao projects, INRIA." to thevlefevre2007-02-071-0/+1
| | | | | | | copyright notices and removed a few old things. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4350 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2007.vlefevre2007-01-101-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4326 280ebfd0-de03-0410-8827-d642c229c3f4
* Replaced mpfr_mul_2exp and mpfr_div_2exp by mpfr_mul_2ui andvlefevre2006-12-191-4/+4
| | | | | | | mpfr_div_2ui respectively (when this makes sense, of course). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4317 280ebfd0-de03-0410-8827-d642c229c3f4
* lngamma.c: added a comment.vlefevre2006-11-031-0/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4180 280ebfd0-de03-0410-8827-d642c229c3f4
* Fixed an exponent/flags-related bug in lngamma.c.vlefevre2006-08-211-4/+9
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4136 280ebfd0-de03-0410-8827-d642c229c3f4
* Updated FSF address.vlefevre2006-03-311-2/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4057 280ebfd0-de03-0410-8827-d642c229c3f4
* Added ', Inc.' when missing after 'Free Software Foundation'.vlefevre2006-01-051-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3985 280ebfd0-de03-0410-8827-d642c229c3f4
* Updated the copyright notices according to the new GNU rules on:vlefevre2006-01-051-1/+1
| | | | | | | | | | | http://www.gnu.org/prep/maintain/maintain.html#Copyright-Notices i.e. added 2006 to every MPFR file. Note: the copyright notices (currently 336) should match the regexp Copyright.* 2006 Free Software so that it will be easier to update them for the next year... git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3983 280ebfd0-de03-0410-8827-d642c229c3f4
* Small optimization.vlefevre2005-09-281-2/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3873 280ebfd0-de03-0410-8827-d642c229c3f4
* fixed infinite loop for lngamma(2)zimmerma2005-09-281-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3871 280ebfd0-de03-0410-8827-d642c229c3f4
* Use (mpz_t *) 0 instead of NULL (this is not less clear and thisvlefevre2005-09-091-3/+1
| | | | | | | works with the native SunOS 4 C compiler). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3815 280ebfd0-de03-0410-8827-d642c229c3f4
* cleanup of gamma and lngammazimmerma2005-09-091-26/+26
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3813 280ebfd0-de03-0410-8827-d642c229c3f4
* Change for ansi2knr.vlefevre2005-09-061-3/+5
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3791 280ebfd0-de03-0410-8827-d642c229c3f4
* Code clean-up (again).vlefevre2005-09-061-7/+8
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3790 280ebfd0-de03-0410-8827-d642c229c3f4
* Use GMP's allocate functions instead of C's. Code clean-up.vlefevre2005-09-061-153/+157
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3789 280ebfd0-de03-0410-8827-d642c229c3f4
* Reformat.vlefevre2005-09-061-34/+34
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3788 280ebfd0-de03-0410-8827-d642c229c3f4
* new function lngammazimmerma2005-08-311-0/+453
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3754 280ebfd0-de03-0410-8827-d642c229c3f4