summaryrefslogtreecommitdiff
path: root/get_str.c
Commit message (Collapse)AuthorAgeFilesLines
* Add generic ZivLoop controller.pelissip2005-02-141-5/+8
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3307 280ebfd0-de03-0410-8827-d642c229c3f4
* FIx a warning (Wrong proto between declaration and implementation :pelissip2005-01-281-1/+1
| | | | | | | forget some const). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3233 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
* fixed problems in get_str for huge exponentzimmerma2005-01-201-4/+12
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3194 280ebfd0-de03-0410-8827-d642c229c3f4
* Remove _MPFR_PROTO for static functions.pelissip2005-01-041-4/+4
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3169 280ebfd0-de03-0410-8827-d642c229c3f4
* Add 'const' attribute to table.pelissip2004-12-151-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3139 280ebfd0-de03-0410-8827-d642c229c3f4
* Replace __gmpfr_ceil_log2 by MPFR_INT_CEIL_LOG2 when possible.pelissip2004-11-101-2/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3076 280ebfd0-de03-0410-8827-d642c229c3f4
* fixed bug in get_str_aux when one extra digitzimmerma2004-09-301-18/+44
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3017 280ebfd0-de03-0410-8827-d642c229c3f4
* Add mpfr_free_str function.pelissip2004-02-231-0/+5
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2787 280ebfd0-de03-0410-8827-d642c229c3f4
* Fix bug if you build MPFR with ASSERT.pelissip2004-02-181-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2760 280ebfd0-de03-0410-8827-d642c229c3f4
* simplified roundingzimmerma2004-02-171-10/+10
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2757 280ebfd0-de03-0410-8827-d642c229c3f4
* improved test coveragezimmerma2004-02-131-2/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2711 280ebfd0-de03-0410-8827-d642c229c3f4
* + Better support of non IEEE doubles.pelissip2004-02-061-9/+7
| | | | | | | + 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
* fixed bug in get_str (case pow2, rnd=up or down)zimmerma2004-02-031-16/+6
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2655 280ebfd0-de03-0410-8827-d642c229c3f4
* _mpfr_ceil -> mpfr_ceil_double + check for overflow.vlefevre2004-01-191-26/+31
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2632 280ebfd0-de03-0410-8827-d642c229c3f4
* Moved the mpfr_mpn_exp function to a new file "mpn_exp.c" as it isvlefevre2004-01-191-132/+0
| | | | | | | used by both "get_str.c" and "set_str.c". git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2631 280ebfd0-de03-0410-8827-d642c229c3f4
* Add a new check in tget_str.c.pelissip2004-01-151-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2629 280ebfd0-de03-0410-8827-d642c229c3f4
* fixed problem in case m=0 and b=2^k (lost bits from 1st digit were not takenzimmerma2004-01-151-2/+19
| | | | | | | into account) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2625 280ebfd0-de03-0410-8827-d642c229c3f4
* mpn_exp -> mpfr_mpn_expzimmerma2004-01-151-3/+3
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2624 280ebfd0-de03-0410-8827-d642c229c3f4
* * Optimize a few div.c and mul.c.pelissip2003-11-171-5/+5
| | | | | | | | | | | | | * Reorder the tests. * Remove mpfr_round_raw_generic and create 4 new functions which replace it, for efficiency reasons. * Add round_raw_generic.c which is the generic file to create the 4 new functions. * Add new MACRO: MPFR_RNDUTEST_OR_RNDDNOTTEST which is a faster way to check if (rnd_mode==GMP_RNDU && test) || (rnd_mode==GMP_RNDD && !test). * Add new MACRO: MPFR_UNSIGNED_MINUS_MODULO. * Optimize mpfr_can_round_raw. * Some new defines in mpfr.h to increase compatibility with MPFR v2.0.1 and above. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2550 280ebfd0-de03-0410-8827-d642c229c3f4
* Some minor optimizations.pelissip2003-11-071-1/+2
| | | | | | | | Optimization of mul.c / sub1.c. Some clean up in the header files. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2537 280ebfd0-de03-0410-8827-d642c229c3f4
* + Remove MPFR_CLEAR_NAN and MPFR_CLEAR_INF. Only use MPFR_CLEAR_FLAGS.pelissip2003-11-041-3/+3
| | | | | | | | | | | | | | 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 the internal format of MPFR: ZERO, INF and NAN have special values of ↵pelissip2003-10-271-2/+6
| | | | | | | | | | | | | | exp. Rename MPFR_ESIZE in MPFR_LIMB_SIZE. Rename MPFR_ABSZISE in MPFR_ALLOC_SIZE. Rename MPFR_INIT in MPFR_TMP_INIT (INIT1 too). "mpfr.h" includes <gmp.h> if GMP isn't detected. Change the way of detecting stdio.h (To check). Use mpfr namespace for new definitions in "mpfr.h". git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2524 280ebfd0-de03-0410-8827-d642c229c3f4
* mpfr_round_prec is now obsoletezimmerma2003-09-191-1/+1
| | | | | | | new function mpfr_prec_round replaces it git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2419 280ebfd0-de03-0410-8827-d642c229c3f4
* Macros MPFR_EXP_INVALID (invalid exponent value) and MPFR_EXP_CHECKvlefevre2003-05-221-6/+6
| | | | | | | | | | | | added. Code update to use MPFR_GET_EXP and MPFR_SET_EXP instead of MPFR_EXP to allow more bug detection related to special values. Macros MPFR_SET_NAN, MPFR_SET_INF, MPFR_SET_ZERO and MPFR_INIT set the exponent of the number to MPFR_EXP_INVALID if MPFR_EXP_CHECK is defined. Compile with -DMPFR_EXP_CHECK and make check to see the potential problems; currently, 40 of 76 tests fail. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2301 280ebfd0-de03-0410-8827-d642c229c3f4
* Replaced NaN, Inf by @NaN@, @Inf@ [for bases > 24].hanrot2003-02-241-4/+4
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2249 280ebfd0-de03-0410-8827-d642c229c3f4
* moved common prototype for mpn_exp in mpfr-impl.hzimmerma2003-01-151-2/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2175 280ebfd0-de03-0410-8827-d642c229c3f4
* #Add a copyright year.ryde2003-01-081-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2151 280ebfd0-de03-0410-8827-d642c229c3f4
* (mpn_exp): Don't store -1 in a uint then return it as a long.ryde2003-01-081-1/+1
| | | | | | | Fixes systems such as alpha where sizeof(uint)!=sizeof(long). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2150 280ebfd0-de03-0410-8827-d642c229c3f4
* Suppress some #define and fix symbol names (makes code cleaner):vlefevre2002-12-161-2/+2
| | | | | | | | | | | | | | | | | | | perl -pi -e 's/__mpfr_flags/__gmpfr_flags/g' **/*.{c,h} perl -pi -e 's/__mpfr_emin/__gmpfr_emin/g' **/*.{c,h} perl -pi -e 's/__mpfr_emax/__gmpfr_emax/g' **/*.{c,h} perl -pi -e 's/__mpfr_default_fp_bit_precision/__gmpfr_default_fp_bit_precision/g' **/*.{c,h} perl -pi -e 's/__gmp_default_rounding_mode/__gmpfr_default_rounding_mode/g' **/*.{c,h} perl -pi -e 's/__mpfr_const_log2_prec/__gmpfr_const_log2_prec/g' **/*.{c,h} perl -pi -e 's/__mpfr_const_pi_prec/__gmpfr_const_pi_prec/g' **/*.{c,h} perl -pi -e 's/_mpfr_ceil_log2/__gmpfr_ceil_log2/g' **/*.{c,h} perl -pi -e 's/_mpfr_floor_log2/__gmpfr_floor_log2/g' **/*.{c,h} perl -pi -e 's/_mpfr_ceil_exp2/__gmpfr_ceil_exp2/g' **/*.{c,h} perl -pi -e 's/_mpfr_isqrt/__gmpfr_isqrt/g' **/*.{c,h} perl -pi -e 's/_mpfr_cuberoot/__gmpfr_cuberoot/g' **/*.{c,h} perl -pi -e 's/^#define __gmpfr_.*\n//' *.h git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2125 280ebfd0-de03-0410-8827-d642c229c3f4
* Code clean-up.vlefevre2002-11-201-9/+11
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2081 280ebfd0-de03-0410-8827-d642c229c3f4
* fixed non-ansi featureszimmerma2002-11-191-16/+16
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2077 280ebfd0-de03-0410-8827-d642c229c3f4
* TMP_MARK missing (patch by Kevin Ryde).vlefevre2002-07-281-0/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2005 280ebfd0-de03-0410-8827-d642c229c3f4
* improved the computation of g = ceil((e-1)/log_2(beta)), using two tableszimmerma2002-07-261-38/+140
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2000 280ebfd0-de03-0410-8827-d642c229c3f4
* completely new version, written by Alain Delplanque and Paul Zimmermann.zimmerma2002-07-241-275/+623
| | | | | | | | It now directly uses mpn_get_str, with subquadratic complexity. About 3 times faster than previous version in most cases. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1993 280ebfd0-de03-0410-8827-d642c229c3f4
* COPYING -> COPYING.LIB and GPL re-added.vlefevre2002-04-151-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1877 280ebfd0-de03-0410-8827-d642c229c3f4
* COPYING.LIB -> COPYING.vlefevre2002-04-051-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1820 280ebfd0-de03-0410-8827-d642c229c3f4
* New mpfr_get_d, mpfr_get_d2, mpfr_get_d3.vlefevre2002-03-111-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1726 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright line changed.vlefevre2002-03-041-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1713 280ebfd0-de03-0410-8827-d642c229c3f4
* Minor update.vlefevre2002-02-271-1/+3
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1703 280ebfd0-de03-0410-8827-d642c229c3f4
* Fixes, code clean-up and some asserts against integer overflows.vlefevre2002-02-191-78/+90
| | | | | | | Code need to be checked. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1700 280ebfd0-de03-0410-8827-d642c229c3f4
* mpfr_{div,mul}_2exp -> mpfr_{div,mul}_2ui.vlefevre2002-02-141-2/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1699 280ebfd0-de03-0410-8827-d642c229c3f4
* Partial code clean-up and some asserts against integer overflows (2).vlefevre2002-02-141-24/+43
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1698 280ebfd0-de03-0410-8827-d642c229c3f4
* Partial code clean-up and some asserts against integer overflows.vlefevre2002-02-131-83/+125
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1697 280ebfd0-de03-0410-8827-d642c229c3f4
* mpfr_get_str: the returned exponent for 0 is 0 (like in frexp()).vlefevre2002-02-121-1/+1
| | | | | | | | mpz_set_fr.c: comment added. out_str.c: minor changes. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1692 280ebfd0-de03-0410-8827-d642c229c3f4
* mpfr_get_str: null pointer returned in case of error, NaN taken into account.vlefevre2002-02-121-14/+23
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1688 280ebfd0-de03-0410-8827-d642c229c3f4
* mpfr_round -> mpfr_round_prec.vlefevre2002-01-251-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1671 280ebfd0-de03-0410-8827-d642c229c3f4
* big rewrite to fix problems when the estimate base exponent is too smallzimmerma2001-11-301-95/+149
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1604 280ebfd0-de03-0410-8827-d642c229c3f4
* changed Library GPL to Lesser GPLzimmerma2001-11-161-4/+4
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1536 280ebfd0-de03-0410-8827-d642c229c3f4
* added year 2001 in copyright linezimmerma2001-11-161-26/+1
| | | | | | | removed #if __STDC__ git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1526 280ebfd0-de03-0410-8827-d642c229c3f4