summaryrefslogtreecommitdiff
path: root/lngamma.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
* New exponent type mpfr_exp_t for MPFR (replacing GMP's mp_exp_t).vlefevre2010-05-071-9/+9
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6789 280ebfd0-de03-0410-8827-d642c229c3f4
* Changed mp_prec_t into mpfr_prec_t.vlefevre2010-04-301-5/+5
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6767 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2010 withvlefevre2010-01-201-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/trunk@6684 280ebfd0-de03-0410-8827-d642c229c3f4
* Replaced GMP_LIMB_BITS by GMP_NUMB_BITS to use only one of these macros.vlefevre2010-01-081-4/+4
| | | | 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-081-4/+4
| | | | | | | | 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
* [lngamma.c] fixed typo, added comments about argument reduction, and replacedzimmerma2009-10-191-17/+21
| | | | | | | code using doubles git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6520 280ebfd0-de03-0410-8827-d642c229c3f4
* changed function into bernoulli.c (which was static, included 3 times) intozimmerma2009-09-041-4/+3
| | | | | | | an internal function mpfr_bernoulli_internal git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6411 280ebfd0-de03-0410-8827-d642c229c3f4
* [digamma.c] new function mpfr_digammazimmerma2009-09-021-57/+1
| | | | | | | | [lngamma.c,li2.c] factored computation of Bernoulli numbers in new file bernoulli.c (also used by digamma.c) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6398 280ebfd0-de03-0410-8827-d642c229c3f4
* replaced obsolete GMP functions (suggested by Brian Gladman):zimmerma2009-08-271-4/+4
| | | | | | | | | | | | 1. mpz_div_2exp ==> mpz_fdiv_q_2exp 2. mpz_div_ui ==> mpz_fdiv_q_ui 3. gmp_randinit (state, GMP_RAND_ALG_LC, 128) ==> gmp_randinit_lc_2exp_size (state, 128) (Didn't replace mpn_divrem by mpn_tdiv_qr since the parameters differ, and also for efficiency reasons.) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6397 280ebfd0-de03-0410-8827-d642c229c3f4
* Renamed COPYING.LIB as COPYING.LESSER (GNU Coding Standards, #7.3)vlefevre2009-07-301-1/+1
| | | | | | and updated all the references (except in ChangeLog). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6351 280ebfd0-de03-0410-8827-d642c229c3f4
* mp_rnd_t -> mpfr_rnd_tvlefevre2009-06-261-3/+3
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6295 280ebfd0-de03-0410-8827-d642c229c3f4
* GMP_RNDX -> MPFR_RNDXzimmerma2009-03-031-75/+75
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6053 280ebfd0-de03-0410-8827-d642c229c3f4
* Update to LGPL v3+, as decided by the main MPFR developers.vlefevre2009-03-031-4/+4
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6050 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/trunk@5814 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