summaryrefslogtreecommitdiff
path: root/exp.c
Commit message (Collapse)AuthorAgeFilesLines
* 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-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6295 280ebfd0-de03-0410-8827-d642c229c3f4
* Suppressed MPFR_CLEAR_FLAGS (no longer did anything).vlefevre2009-06-261-2/+0
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6294 280ebfd0-de03-0410-8827-d642c229c3f4
* GMP_RNDX -> MPFR_RNDXzimmerma2009-03-031-12/+12
| | | | 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
* Untabified and deleted trailing spaces (for patches).vlefevre2009-02-271-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6043 280ebfd0-de03-0410-8827-d642c229c3f4
* added round to away (still experimental)zimmerma2009-02-261-1/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6030 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
* 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
* exp.c, exp_2.c: fixed the overflow/underflow detection. The underflow_upvlefevre2008-07-311-102/+30
| | | | | | | test in texp.c still fails for mpfr_exp_2 only, but this seems to be due to a bug in this function (incorrect error bound?). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5475 280ebfd0-de03-0410-8827-d642c229c3f4
* exp.c: updated comment about the exp3.c routine.vlefevre2008-07-311-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5470 280ebfd0-de03-0410-8827-d642c229c3f4
* exp.c: completed a comment, describing how rigorous underflow/overflowvlefevre2008-07-301-3/+16
| | | | | | detection can be done. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5461 280ebfd0-de03-0410-8827-d642c229c3f4
* exp.c: removed an incorrect comment (corresponds to exp_2.c and alreadyvlefevre2008-07-301-4/+0
| | | | | | in exp_2.c). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5460 280ebfd0-de03-0410-8827-d642c229c3f4
* exp.c: underflow/overflow detection is still a bit incorrect.vlefevre2008-07-291-0/+4
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5459 280ebfd0-de03-0410-8827-d642c229c3f4
* exp.c: fixed underflow/overflow detection.vlefevre2008-07-291-19/+101
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5457 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
* fixed underflow problem in mpfr_exp_3zimmerma2007-11-301-4/+7
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5066 280ebfd0-de03-0410-8827-d642c229c3f4
* removed manual change to __gmpfr_emin outside the allowed rangezimmerma2007-11-301-1/+0
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5062 280ebfd0-de03-0410-8827-d642c229c3f4
* Updated copyright notice (for an unknown reason, some files were missingvlefevre2007-08-291-1/+1
| | | | | | | from the change done in r4350). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4800 280ebfd0-de03-0410-8827-d642c229c3f4
* exp.c: fixed problems in reduced exponent range.vlefevre2007-06-211-9/+15
| | | | | | | tests/texp.c: added overflowed_exp0 test. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4564 280ebfd0-de03-0410-8827-d642c229c3f4
* exp.c bug fix: a rounding mode was incorrect.vlefevre2007-06-211-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4563 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
* Partial fix: The inexact flag was not always set in some functions.vlefevre2006-08-201-1/+1
| | | | | | | | | In particular, it is now set by mpfr_check_range (if t is not zero) since mpfr_check_range usually comes just after MPFR_SAVE_EXPO_FREE (which restores the previous flags). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4131 280ebfd0-de03-0410-8827-d642c229c3f4
* Fixed FSF address.vlefevre2006-03-311-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4055 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
* fixed bug in exp(-eps) for rounding toward zero (test was also wrong...)zimmerma2005-09-131-1/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3844 280ebfd0-de03-0410-8827-d642c229c3f4
* Removed trailing spaces (better for future patches, as such spacesvlefevre2005-08-181-3/+3
| | | | | | | are sometimes stripped). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3726 280ebfd0-de03-0410-8827-d642c229c3f4
* Converted tabs to spaces with expand.vlefevre2005-08-181-30/+30
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3725 280ebfd0-de03-0410-8827-d642c229c3f4
* Change the address of the FSF.pelissip2005-06-021-2/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3606 280ebfd0-de03-0410-8827-d642c229c3f4
* Fix bug when exp(x) is near the limit of an overflow or anpelissip2005-05-111-0/+2
| | | | | | | | | underflow (mpfr_exp_2 didn't allow an overflow/underflow in its internal loop). Add corresponding test case. exp_3 may need similar patchs. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3539 280ebfd0-de03-0410-8827-d642c229c3f4
* Log input and ouput of functions.pelissip2005-02-151-2/+3
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3315 280ebfd0-de03-0410-8827-d642c229c3f4
* Add log for other functions.pelissip2005-02-101-26/+38
| | | | | | | | Add ZivLoop too. Cleanup exp3. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3290 280ebfd0-de03-0410-8827-d642c229c3f4
* Rename internal functions mpfr_set_overflow in mpfr_overflow andpelissip2005-02-031-3/+3
| | | | | | | | mpfr_set_underflow in mpfr_underflow so that we can add new functions mpfr_set_underflow and mpfr_set_overflow (which set the global flags). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3269 280ebfd0-de03-0410-8827-d642c229c3f4
* Fixed a sign bug in mpfr_exp (found by Mark J Watkins).vlefevre2005-01-291-3/+3
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3246 280ebfd0-de03-0410-8827-d642c229c3f4
* Fix wrong integer type and a test.pelissip2004-12-201-2/+4
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3158 280ebfd0-de03-0410-8827-d642c229c3f4
* Replace use of mpfr_save_emin_emax () / mpfr_restore_emin_emax()pelissip2004-11-181-6/+8
| | | | | | | | by MPFR_SAVE_EXPO macros (DECL, MARK and FREE) which are faster and thread safe. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3100 280ebfd0-de03-0410-8827-d642c229c3f4
* Fix overflow problems.pelissip2004-05-061-4/+7
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2905 280ebfd0-de03-0410-8827-d642c229c3f4
* Add some UNLIKELY to the tests.pelissip2004-05-041-3/+3
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2888 280ebfd0-de03-0410-8827-d642c229c3f4
* Change from MP_LIMB_T_ONE to MPFR_LIMB_ONE and/or MPFR_LIMB_MASK.pelissip2004-03-261-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2858 280ebfd0-de03-0410-8827-d642c229c3f4
* Rename mpfr_exp3 in mpfr_exp_3.pelissip2004-03-171-2/+2
| | | | | | | | Update THRESHOLD for mpfr_exp. Add MPFR_EXP_THRESHOLD. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2848 280ebfd0-de03-0410-8827-d642c229c3f4
* fixed tiny bugs for corner caseszimmerma2004-02-121-5/+11
| | | | | | | improved test coverage git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2687 280ebfd0-de03-0410-8827-d642c229c3f4
* Add forgotten copyright 2004 line.pelissip2004-02-061-1/+0
| | | | | | | Add a small documentation about mpfr_sum. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2671 280ebfd0-de03-0410-8827-d642c229c3f4
* + Better support of non IEEE doubles.pelissip2004-02-061-3/+1
| | | | | | | + You can compile MPFR without gmp internal files (ie gmp-impl.h, gmp-mparam.h, and config.h). You only need gmp.h and libgmp.a. But you can still compile with GMP internal files (configure detects them). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2665 280ebfd0-de03-0410-8827-d642c229c3f4
* Changed some error messages into assertions.vlefevre2004-01-141-4/+3
| | | | | | | Removed some useless #include's. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2622 280ebfd0-de03-0410-8827-d642c229c3f4
* Fix some bugs (Use MPFR_ASSERT(1) instead of MPFR_ASSERT(0))pelissip2003-11-051-0/+2
| | | | | | | Optimize swap.c and copysign.c. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2536 280ebfd0-de03-0410-8827-d642c229c3f4
* + Remove MPFR_CLEAR_NAN and MPFR_CLEAR_INF. Only use MPFR_CLEAR_FLAGS.pelissip2003-11-041-15/+8
| | | | | | | | | | | | | | MPFR_SET_INF, MPFR_SET_ZERO and MPFR_SET_ZERO must clear the flags before setting them. + Add a new test in tacosh.c : check Inf / Nan flags. + Use MPFR_IS_SINGULAR in all the remaining files. + Fix the use of MPFR_CLEAR_FLAGS. + mpfr-impl.h auto include gmp.h, gmp-impl.h, mpfr.h and limits.h. + Rename _PROTO to _MPFR_PROTO, and remove _GMP_PROTO. + Add MPFR_INT_SIGN macro. + Encapsulate a few more the sign. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2529 280ebfd0-de03-0410-8827-d642c229c3f4
* Use of MPFR_UNLIKELY and MPFR_IS_SINGULAR for fast detection of special ↵pelissip2003-10-281-21/+20
| | | | | | | | | values (Nan, Inf or Zero). Start to encapsulate the sign to be independant of the reprensation (Must be 1 or -1). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2525 280ebfd0-de03-0410-8827-d642c229c3f4
* Fixed mpfr_set_overflow, added tests for mpfr_set_underflowvlefevre2003-09-141-2/+1
| | | | | | | and mpfr_set_overflow, and reverted exp.c. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2411 280ebfd0-de03-0410-8827-d642c229c3f4
* overflow with round to zero was incorrectzimmerma2003-09-131-1/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2410 280ebfd0-de03-0410-8827-d642c229c3f4