summaryrefslogtreecommitdiff
path: root/div.c
Commit message (Collapse)AuthorAgeFilesLines
* New exponent type mpfr_exp_t for MPFR (replacing GMP's mp_exp_t).vlefevre2010-05-071-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6789 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-10/+10
| | | | 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-10/+10
| | | | | | | | 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
* towards -> toward (consistency).vlefevre2009-09-021-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6407 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-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-1/+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
* 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
* div.c: fixed types for fprintf when DEBUG and/or DEBUG2 is defined.vlefevre2008-12-261-6/+10
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5778 280ebfd0-de03-0410-8827-d642c229c3f4
* div.c: fixed #ifdef.vlefevre2008-12-261-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5777 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
* div.c: fixed underflow bug that occurs in rounding to nearest whenvlefevre2008-08-121-1/+1
| | | | | | | the rounded result in unbounded exponent range is 2^(emin - 2) and inex > 0: one got a non-zero result instead of +/-0. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5515 280ebfd0-de03-0410-8827-d642c229c3f4
* div.c: added logging support.vlefevre2008-08-121-1/+5
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5513 280ebfd0-de03-0410-8827-d642c229c3f4
* div.c: avoid hiding variable declaration (detected by icc).vlefevre2008-08-071-1/+3
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5486 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 bug in div.c: rnd_mode could be modified (MPFR_INVERT_RND), butvlefevre2007-06-281-22/+22
| | | | | | | the original value was assumed in case of underflow or overflow. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4577 280ebfd0-de03-0410-8827-d642c229c3f4
* div.c: GNU coding style.vlefevre2007-06-041-32/+35
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4531 280ebfd0-de03-0410-8827-d642c229c3f4
* tdiv.c: added missing mpfr_clear's, and spaces before function callszimmerma2007-06-041-13/+31
| | | | | | | div.c: fixed bug found by Carl Witty, and added more comments git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4530 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
* div.c: removed the bad use of MPFR_LIMB_ZERO.vlefevre2006-04-061-2/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4065 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
* div.c: fixed a bug and no longer use mpn_sub_nc.vlefevre2006-03-241-1/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4049 280ebfd0-de03-0410-8827-d642c229c3f4
* Some clean-up in div.c; do not steal GMP's namespace (could lead tovlefevre2006-03-241-22/+29
| | | | | | | clashes if future GMP versions define the corresponding macros). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4048 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 efficiency bug for small divisor (division had same cost than forzimmerma2005-11-241-9/+8
| | | | | | | divisor of the same size than the result) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3963 280ebfd0-de03-0410-8827-d642c229c3f4
* Removed trailing spaces (better for future patches, as such spacesvlefevre2005-08-181-5/+5
| | | | | | | 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-237/+237
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3725 280ebfd0-de03-0410-8827-d642c229c3f4
* Clean up use of stdio.h:pelissip2005-06-081-1/+1
| | | | | | | | it is now included by mpfr-impl iff DEBUG is defined or WANT_ASSERT is defined. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3631 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
* Replace TMP_ALLOC by MPFR_TMP_ALLOCpelissip2005-05-181-8/+8
| | | | | | | | | | 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
* Rename internal functions mpfr_set_overflow in mpfr_overflow andpelissip2005-02-031-2/+2
| | | | | | | | 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
* Updated copyright lines.vlefevre2005-01-281-2/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3231 280ebfd0-de03-0410-8827-d642c229c3f4
* added missing castszimmerma2005-01-271-5/+5
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3219 280ebfd0-de03-0410-8827-d642c229c3f4
* fixed bug (overlap in mpn_divrem)zimmerma2005-01-251-2/+10
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3218 280ebfd0-de03-0410-8827-d642c229c3f4
* Fix bug if not gmp-impl.h (mpn_sub_nc is internal).pelissip2005-01-041-64/+57
| | | | | | | | Move MPFR_SET_EXP after checking the exponent range. Minor change in the way to return the ternary value. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3163 280ebfd0-de03-0410-8827-d642c229c3f4
* new version (completely rewritten)zimmerma2004-12-241-343/+490
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3161 280ebfd0-de03-0410-8827-d642c229c3f4
* Rename this variable again.pelissip2004-09-281-5/+5
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3001 280ebfd0-de03-0410-8827-d642c229c3f4
* Replace variable 'near' to 'the_real_near' since MSVC incorrecltypelissip2004-09-281-5/+5
| | | | | | | | recognize "far" and "near" as obsolete keywords (100% incorrect, and clearly MSVC fault but it doesn't cost many things to change the name). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3000 280ebfd0-de03-0410-8827-d642c229c3f4
* Remove some warnings.pelissip2004-02-241-1/+1
| | | | | | | MPFR can be compiled (but not checked!) with a C++ compiler. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2802 280ebfd0-de03-0410-8827-d642c229c3f4
* further simplification of the code (replaced one in-place shift and copyzimmerma2004-02-241-9/+46
| | | | | | | by out-of-place shift or copy) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2796 280ebfd0-de03-0410-8827-d642c229c3f4
* simplified the code of div.c and improved coveragezimmerma2004-02-231-159/+150
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2794 280ebfd0-de03-0410-8827-d642c229c3f4
* deal with overflow/underflow in mpfr_divzimmerma2004-02-161-1/+13
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2734 280ebfd0-de03-0410-8827-d642c229c3f4
* Optimize add1sp, sub1sp and div.pelissip2004-02-161-24/+27
| | | | | | | Improve coverage test for sub1sp. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2730 280ebfd0-de03-0410-8827-d642c229c3f4
* Remove MPFR_ASSERTN(0) and add MPFR_ASSERTD(last condition) instead.pelissip2004-02-121-4/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2696 280ebfd0-de03-0410-8827-d642c229c3f4
* Add forgotten copyright 2004 line.pelissip2004-02-061-2/+1
| | | | | | | Add a small documentation about mpfr_sum. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2671 280ebfd0-de03-0410-8827-d642c229c3f4