summaryrefslogtreecommitdiff
path: root/exp_2.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
* GMP_RNDX -> MPFR_RNDXzimmerma2009-03-031-10/+10
| | | | 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
* 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_2.c: fixed other log messages.vlefevre2008-08-141-3/+3
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5523 280ebfd0-de03-0410-8827-d642c229c3f4
* exp_2.c: fixed a log message (the format didn't correspond to the types)vlefevre2008-08-141-1/+2
| | | | | | and improved it. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5522 280ebfd0-de03-0410-8827-d642c229c3f4
* [exp_2.c] fixed case where cancel is negative, added comments and improvedzimmerma2008-08-021-5/+19
| | | | | | | code when initial n is known to be 0 git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5480 280ebfd0-de03-0410-8827-d642c229c3f4
* exp_2.c: MPFR_EXP -> MPFR_GET_EXP.vlefevre2008-08-011-1/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5479 280ebfd0-de03-0410-8827-d642c229c3f4
* [exp_2.c] fixed bug20080731zimmerma2008-08-011-6/+10
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5478 280ebfd0-de03-0410-8827-d642c229c3f4
* exp.c, exp_2.c: fixed the overflow/underflow detection. The underflow_upvlefevre2008-07-311-22/+4
| | | | | | | 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
* Added logging support to mpfr_exp_2 (exp_2.c).vlefevre2008-07-311-0/+3
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5472 280ebfd0-de03-0410-8827-d642c229c3f4
* exp_2.c: GNU style.vlefevre2008-07-291-46/+48
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5456 280ebfd0-de03-0410-8827-d642c229c3f4
* exp_2.c: solved the assertion failure by detecting a zero due to avlefevre2008-07-261-59/+66
| | | | | | | cancellation and increasing the precision via Ziv's loop in such a case. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5453 280ebfd0-de03-0410-8827-d642c229c3f4
* exp_2.c: added another assertion, that is checked independently ofvlefevre2008-07-261-0/+1
| | | | | | the value of MPFR_EXP_2_THRESHOLD (better for debugging). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5452 280ebfd0-de03-0410-8827-d642c229c3f4
* exp_2.c: added an assertion (more explicit than a similar assertionvlefevre2008-07-261-0/+2
| | | | | | | that would fail later) in mpfr_exp2_aux, caught by the underflow_up test in texp.c for prec = 16 on a 64-bit Linux machine. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5451 280ebfd0-de03-0410-8827-d642c229c3f4
* the O(l^{1/2}) method to evaluate power series is due to zimmerma2008-06-101-5/+5
| | | | | | | Paterson and Stockmeyer and not Brent/Kung git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5386 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
* Merged the feature-block branch to the trunk:vlefevre2007-12-181-4/+5
| | | | | | | | | | | | | | | * New MPFR_BLOCK* macros (see mpfr-impl.h) and mpfrlint check to test exception flags in a more reliable way and detect possible problems with mpfrlint. * Improved the generic tests (tests/tgeneric.c): for the second function call, sometimes set all the flags since risk of failures are known when some flags are already set. * Modified code to use these new MPFR_BLOCK* macros. This fixed bugs related to exceptions (where flags are set before the call); in particular, tcot and ty1 failed with the improved generic tests. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5115 280ebfd0-de03-0410-8827-d642c229c3f4
* fixed underflow problemzimmerma2007-11-301-7/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5064 280ebfd0-de03-0410-8827-d642c229c3f4
* <stdio.h> and <limits.h> are now included unconditionally in mpfr-impl.hvlefevre2007-07-091-2/+0
| | | | | | | (removed their inclusion from the C files for consistency). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4632 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 double by mpfr_t (problem on 64-bit machines)zimmerma2006-11-191-5/+9
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4240 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
* 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
* Converted tabs to spaces with expand.vlefevre2005-08-181-37/+37
| | | | 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
* Remove variable t which wasn't used!pelissip2005-05-201-6/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3594 280ebfd0-de03-0410-8827-d642c229c3f4
* Replace TMP_ALLOC by MPFR_TMP_ALLOCpelissip2005-05-181-12/+12
| | | | | | | | | | Replace TMP_DECL by MPFR_TMP_DECL Replace TMP_MARK by MPFR_TMP_MARK Replace TMP_FREE by MPFR_TMP_FREE Add support for GMP's TMP_SALLOC. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3593 280ebfd0-de03-0410-8827-d642c229c3f4
* Detect/avoid potential integer overflows.vlefevre2005-05-121-33/+39
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3542 280ebfd0-de03-0410-8827-d642c229c3f4
* Fix bug when exp(x) is near the limit of an overflow or anpelissip2005-05-111-4/+28
| | | | | | | | | 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
* Replace mpfr_can_round (..., GMP_RNDN, GMP_RNDZ, ...) to fast replacementpelissip2005-03-141-2/+1
| | | | | | | mpfr_round_p. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3388 280ebfd0-de03-0410-8827-d642c229c3f4
* Fix bug due to wrong estimation of (get_d (x) / LOG2).pelissip2005-03-041-1/+1
| | | | | | | TODO: Rexamine the algorithm of mpfr_exp_2! git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3362 280ebfd0-de03-0410-8827-d642c229c3f4
* Transform DEBUG message to LOG message.pelissip2005-03-041-17/+13
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3361 280ebfd0-de03-0410-8827-d642c229c3f4
* Tune mpfr_exp_2 now!pelissip2005-03-041-5/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3359 280ebfd0-de03-0410-8827-d642c229c3f4
* Add log for other functions.pelissip2005-02-101-2/+5
| | | | | | | | Add ZivLoop too. Cleanup exp3. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3290 280ebfd0-de03-0410-8827-d642c229c3f4
* Updated copyright lines.vlefevre2005-01-281-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3231 280ebfd0-de03-0410-8827-d642c229c3f4
* Optimize mpfr_exp2 by inlining some code, and by avoiding usingpelissip2005-01-041-62/+67
| | | | | | | mpz_sizeinbase. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3171 280ebfd0-de03-0410-8827-d642c229c3f4
* Try to retype correctly the functions (replace int by the correct type).pelissip2004-08-241-64/+84
| | | | | | | Still some works to do. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2956 280ebfd0-de03-0410-8827-d642c229c3f4
* Move __gmpfr_isqrt and __gmpfr_cuberoot to another file.pelissip2004-08-231-138/+95
| | | | | | | | Clean up the code of mpfr_exp_2: remove DEBUG condition to use TRACE, ASSERT and DUMP. Use MPFR_INT_CEIL_LOG2 instead of __gmpfr_ceil_log2. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2954 280ebfd0-de03-0410-8827-d642c229c3f4
* Add some likely, and use a static table instead of a dynamic one.pelissip2004-06-281-0/+3
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2928 280ebfd0-de03-0410-8827-d642c229c3f4
* Fix overflow problems.pelissip2004-05-061-0/+5
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2905 280ebfd0-de03-0410-8827-d642c229c3f4
* + Better support of non IEEE doubles.pelissip2004-02-061-4/+2
| | | | | | | + 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
* added several hard-coded tests (and fixed bugs found)zimmerma2004-01-221-7/+7
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2644 280ebfd0-de03-0410-8827-d642c229c3f4
* Changed some error messages into assertions.vlefevre2004-01-141-12/+11
| | | | | | | Removed some useless #include's. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2622 280ebfd0-de03-0410-8827-d642c229c3f4
* Remove some warnings and potential errors (Comparaison between signed and ↵pelissip2003-11-211-1/+1
| | | | | | unsigned). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2563 280ebfd0-de03-0410-8827-d642c229c3f4
* + Remove MPFR_CLEAR_NAN and MPFR_CLEAR_INF. Only use MPFR_CLEAR_FLAGS.pelissip2003-11-041-4/+4
| | | | | | | | | | | | | | 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
* change in can_round calls to get correct inexact flag for rounding to nearestzimmerma2003-10-131-1/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2488 280ebfd0-de03-0410-8827-d642c229c3f4