summaryrefslogtreecommitdiff
path: root/src/exceptions.c
Commit message (Collapse)AuthorAgeFilesLines
* Copyright notice update: added 2020 withvlefevre2020-01-091-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/branches/4.0@13659 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/branches/4.0@13373 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/branches/4.0@13360 280ebfd0-de03-0410-8827-d642c229c3f4
* Minor date-related changes as in the trunk:vlefevre2018-01-091-1/+1
| | | | | | | | | | * Copyright notice update in most files: added 2018. * tools/ck-mparam: in the copyright notice, just keep the year 2011 since this file is not part of the tarball (just used by mpfrlint). * doc/mpfr.texi: updated the month. (merged changesets r12067-12069 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12077 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] Support build as thread-safe DLL on Windows: clean-up.vlefevre2016-10-241-10/+3
| | | | | | | | | | | * Increased the use of macros to avoid some code duplication (with risks of typos) and to prevent the problems related to thread-safe DLL from appearing in the .c files. * The prototypes of the functions to access the address of a TLS variable are now defined. Otherwise one gets warnings: https://sympa.inria.fr/sympa/arc/mpfr/2016-10/msg00004.html git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10916 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/exceptions.c] Added a comment for mpfr_underflow: historical reasonvlefevre2016-07-041-1/+5
| | | | | | for the choice of the behavior with MPFR_RNDN. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10541 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/exceptions.c] Fixed the MPFR_LOG_FUNC in mpfr_underflow andvlefevre2016-06-021-4/+2
| | | | | | mpfr_overflow (x is not an input in these functions). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10396 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/exceptions.c] Some changes concerning mpfr_check_range:vlefevre2016-02-051-7/+9
| | | | | | | | | | | | | | * Added a note about the case EXP(x) < MPFR_EMIN_MIN. * Do not use the MPFR_IS_PURE_FP() macro as this macro assumes that if the number is not a singular number, then it is really a pure FP number (some assertion checking may be done in debug mode), but this is not necessarily the case here. * Removed an incorrect comment and re-added the MPFR_UNLIKELY for the cases where EXP(x) is outside the exponent range. Indeed, mpfr_check_range is called at the end of most functions, and in most cases, there are no underflows / overflows. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9963 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
* Merged the win-thread-safe-dll branch: support build as thread-safe DLLvlefevre2015-09-101-0/+6
| | | | | | | | | on Windows: changes from Stephan Tolksdorf https://gforge.inria.fr/tracker/download.php/136/619/19537/4980/changes.zip + a correction and some consistency checks. See MPFR bug 19537 on: https://gforge.inria.fr/tracker/index.php?func=detail&aid=19537&group_id=136&atid=619 git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9684 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/exceptions.c] Added logging for mpfr_underflow and mpfr_overflow.vlefevre2015-07-151-1/+12
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9615 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
* [src] Cleaner use of MPFR_SET_SIGN.vlefevre2014-08-211-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9187 280ebfd0-de03-0410-8827-d642c229c3f4
* Added debug of branch prediction / --enable-debug-prediction configurevlefevre2014-07-071-1/+44
| | | | | | option (patch from Patrick Pélissier, with some changes). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9141 280ebfd0-de03-0410-8827-d642c229c3f4
* [src] Added support for MPFR_PURE_FUNCTION_ATTR, MPFR_HOT_FUNCTION_ATTR,vlefevre2014-01-211-43/+50
| | | | | | | and MPFR_COLD_FUNCTION_ATTR, and fixed some LIKELY/UNLIKELY conditions (modified patch by Patrick Pélissier). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8834 280ebfd0-de03-0410-8827-d642c229c3f4
* Fixed warnings from GCC's -Wold-style-declaration option:vlefevre2014-01-031-3/+3
| | | | | | MPFR_THREAD_ATTR must be at beginning of declaration. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8725 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
* Implemented the mpfr_flags_* functions (and mpfr_flags_test as a macro).vlefevre2012-04-191-0/+48
| | | | | | | | | | The MPFR_FLAGS_* macros had to be moved from mpfr-impl.h to mpfr.h (as they are now part of the API). Check that MPFR_FLAGS_ALL <= INT_MAX (or similar) when need be. Removed the mpfr_clear_* macros and merged r8139 (about the MPFR_SET_ERANGE macro) from the trunk due to a risk to break the sequence point rules. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/flags@8140 280ebfd0-de03-0410-8827-d642c229c3f4
* [src] New mpfr_flags_t type, defined as an unsigned int. For thevlefevre2012-03-261-1/+1
| | | | | | | | | __gmpfr_flags variable and internal flags-related variables, replaced unsigned int by mpfr_flags_t (note that this doesn't change the ABI, since unsigned int was already used). [tests] Cast __gmpfr_flags to unsigned int when printed with %u. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8130 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
* 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.vlefevre2011-01-141-0/+24
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7344 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/exceptions.c] Fixed bad #undef's (with currently no consequences).vlefevre2011-01-141-5/+5
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7343 280ebfd0-de03-0410-8827-d642c229c3f4
* Source reorganization. In short:vlefevre2010-08-171-0/+336
* 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