summaryrefslogtreecommitdiff
path: root/src/gamma.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
* [src/gamma.c] added commentzimmerma2018-06-251-0/+2
| | | | | | | | [src/gamma_inc.c] fixed bug for gamma_inc(-Inf, 0) [tests/tgamma_inc.c] added coverage tests git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12856 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
* [src/gamma.c] Got rid of the EXPM1_STR macro (macro name reservedvlefevre2017-05-161-11/+9
| | | | | | | | | by ISO C when <errno.h> is included), made no longer interesting by using mpfr_set_str_binary only once and another temporary variable. At the same time, replaced the usual allocation by a GROUP allocation (more efficient). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11479 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/gamma.c] Clarified proof for tiny arguments again.vlefevre2017-05-021-6/+8
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11452 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/gamma.c] Clarified proof for tiny arguments.vlefevre2017-05-021-2/+9
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11451 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/gamma.c] In the proof for tiny arguments:vlefevre2017-05-021-2/+3
| | | | | | | * Simplification suggestion by Paul. * Attempt to clarify the end. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11450 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/gamma.c] Tiny arguments: corrected a typo and added a TODOvlefevre2017-04-281-1/+4
| | | | | | (one might get a better condition). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11447 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/gamma.c] Corrections in a proof for tiny arguments. Added a TODO.vlefevre2017-04-281-12/+18
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11446 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
* [src/gamma.c] Added another assertion.vlefevre2016-02-171-1/+6
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10047 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/gamma.c] Added assertions and a comment.vlefevre2016-02-171-1/+4
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10046 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/gamma.c] Removed useless saved_flags as flags are already savedvlefevre2016-02-171-7/+0
| | | | | | | | by MPFR_SAVE_EXPO_MARK. Removed the comment about about emin/emax as emin <= 2 <= emax may not be sufficient (or may be suboptimal). After all, MPFR_SAVE_EXPO_* is the usual thing to do... git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10045 280ebfd0-de03-0410-8827-d642c229c3f4
* previous commit was incompletezimmerma2016-02-171-1/+7
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10044 280ebfd0-de03-0410-8827-d642c229c3f4
* fixed bug in mpfr_gamma: flags might be corrupted in case the argument waszimmerma2016-02-171-0/+6
| | | | | | | an integer fitting in an unsigned long git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10043 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
* 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
* forgot to restore the exponents in last commitzimmerma2014-02-121-1/+4
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8959 280ebfd0-de03-0410-8827-d642c229c3f4
* improve mpfr_gamma at around 1000 bitszimmerma2014-02-121-0/+4
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8957 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/*.c] Replaced mpfr_set_divby0 by the faster MPFR_SET_DIVBY0,vlefevre2014-01-211-1/+1
| | | | | | | | | | | and so on (except for src/exceptions.c). [tools/mpfrlint] Update for flags related functions: check that the macros are used in src (except for exceptions.c and mpfr.h) instead of the functions. [src/mpfr-impl.h] Removed some useless parentheses in comments, for mpfrlint. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8833 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
* [gamma.c] simplified mpfr_gamma_1_minus_x_exact() after code coverage analysiszimmerma2012-06-251-7/+7
| | | | | | | with Benjamin Dadoun git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8249 280ebfd0-de03-0410-8827-d642c229c3f4
* [gamma.c] simplified code for mpfr_gamma_2_minus_x_exact() (thanks to coveragezimmerma2012-06-251-3/+6
| | | | | | | analysis by Benjamin Dadoun) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8244 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/lngamma.c] Added mpfr_explgamma internal function to handlevlefevre2012-05-071-15/+14
| | | | | | | | overflows/underflows (intermediate or not) in mpfr_gamma. Updated the general overflow detection to use this function. [src/gamma.c] Fixed the general underflow detection. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8199 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/gamma.c] Corrected the FIXME comment concerning the underflowvlefevre2012-05-031-5/+4
| | | | | | detection. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8185 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/gamma.c] Added a FIXME comment: the underflow detection may stillvlefevre2012-05-031-3/+6
| | | | | | be buggy (or the explanation is incomplete). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8183 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/gamma.c] Completed the explanation concerning the new underflowvlefevre2012-05-031-1/+3
| | | | | | detection. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8182 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/gamma.c] Removed the FIXME comment (from r8169).vlefevre2012-05-031-6/+0
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8181 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/gamma.c] Untabified.vlefevre2012-05-031-10/+10
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8179 280ebfd0-de03-0410-8827-d642c229c3f4
* [gamma.c] tentative fix for the underflow problemzimmerma2012-05-031-0/+12
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8174 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/gamma.c] Added a FIXME comment.vlefevre2012-04-271-0/+6
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8169 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/gamma.c] Use the new MPFR_DBGRES macro.vlefevre2012-04-271-2/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8167 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/gamma.c] fixed bug found by Giridhar Tammanazimmerma2012-04-261-1/+1
| | | | | | | | | 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
* 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
* Get rid of deprecated register_printf_function function in logging system.thevenyp2011-03-171-2/+4
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7575 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/gamma.c] More robust code (for the change in r7551).vlefevre2011-03-091-4/+4
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7556 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/gamma.c] Fixed the special code for tiny values.vlefevre2011-03-091-20/+29
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7551 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/gamma.c] Added a comment about an overflow case.vlefevre2011-02-251-0/+3
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7499 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/gamma.c] Fixed flags when x if very small (protect fromvlefevre2011-02-251-1/+4
| | | | | | intermediate overflow). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7497 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/gamma.c] Fixed inexact flag when x if very small.vlefevre2011-02-251-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7494 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/gamma.c] Fixed a bug occurring in reduced exponent range.vlefevre2011-02-251-4/+8
| | | | | | [tests/tgamma.c] Added corresponding testcase. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7492 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
* Added support for the division-by-zero exception in functionsvlefevre2011-01-171-0/+1
| | | | | | | | mpfr_atanh, mpfr_cot, mpfr_coth, mpfr_csc, mpfr_csch, mpfr_digamma, mpfr_eint, mpfr_gamma, mpfr_lgamma, mpfr_lngamma, mpfr_log, mpfr_log2 and mpfr_log10. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7381 280ebfd0-de03-0410-8827-d642c229c3f4
* Source reorganization. In short:vlefevre2010-08-171-0/+402
* Added directories and moved related files into them: - src for the MPFR source files (to build the library). - doc for documentation files (except INSTALL, README...). - tools for various tools (scripts) and mbench. - tune for tuneup-related source files. - other for other source files (not distributed in tarballs). Existing directories: - tests for the source files of the test suite (make check). - examples for examples. - m4 for m4 files. * Renamed configure.in to configure.ac. * Added/updated Makefile.am files where needed. * Updated acinclude.m4 and configure.ac (AC_CONFIG_FILES line). * Updated the documentation (INSTALL, README, doc/README.dev and doc/mpfr.texi). * Updated NEWS and TODO. * Updated the scripts now in tools. The following script was used: #!/usr/bin/env zsh svn mkdir doc other src tools tune svn mv ${${(M)$(sed -n '/libmpfr_la_SOURCES/,/[^\]$/p' \ Makefile.am):#*.[ch]}:#get_patches.c} mparam_h.in \ round_raw_generic.c jyn_asympt.c src svn mv mbench check_inits_clears coverage get_patches.sh mpfrlint \ nightly-test update-patchv update-version tools svn mv bidimensional_sample.c speed.c tuneup.c tune svn mv *.{c,h} other svn mv FAQ.html README.dev algorithm* faq.xsl fdl.texi mpfr.texi \ update-faq doc svn mv configure.in configure.ac svn cp Makefile.am src/Makefile.am svn rm replace_all [Modifying some files, see above] svn add doc/Makefile.am svn add tune/Makefile.am git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7087 280ebfd0-de03-0410-8827-d642c229c3f4