summaryrefslogtreecommitdiff
path: root/src/mpfr-impl.h
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merged the latest changes from the trunk.vlefevre2016-12-151-1/+11
| | | | | | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/faithful@11049 280ebfd0-de03-0410-8827-d642c229c3f4
* | Merged the latest changes from the trunk except those related tovlefevre2016-12-061-20/+44
| | | | | | | | | | | | | | mpfr_zeta (it is buggy and not fixed yet in the trunk, but the bug will not be triggered here, allowing the tests to pass). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/faithful@10971 280ebfd0-de03-0410-8827-d642c229c3f4
* | Merged the following changesets from the trunk:vlefevre2016-09-021-5/+3
| | | | | | | | | | | | | | | | | | r10664-10686,10689-10690,10692,10695-10696,10699-10775 i.e. all the latest changes except for src/{add1sp.c,sub1sp.c} to avoid build failures (to be solved later). Currently only tcan_round fails, due to MPFR_RNDF. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/faithful@10776 280ebfd0-de03-0410-8827-d642c229c3f4
* | Merged r10599 through r10628 from the trunk, resolving the conflictvlefevre2016-07-221-3/+14
|\ \ | |/ | | | | | | | | | | | | | | in tests/tmul.c (i.e. keep code from both the branch and the trunk, corresponding to two independent tests). Some of the later changes in the trunk (src/sqrt.c) are broken with a 32-bit ABI, so let's not merge them for now. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/faithful@10655 280ebfd0-de03-0410-8827-d642c229c3f4
| * [src/mpfr-impl.h] Require <float.h> to be included in order to bevlefevre2016-07-141-3/+14
| | | | | | | | | | | | | | | | able to use the "long double macros and typedef" part. Moved the IEEE_FLOAT128_MANT_DIG macro definition out of this part. [tests/tcmp_ld.c] Added missing #include <float.h>. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10618 280ebfd0-de03-0410-8827-d642c229c3f4
* | Merged r10556 through r10564 from the trunk (no conflicts).vlefevre2016-07-221-2/+0
|\ \ | |/ | | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/faithful@10649 280ebfd0-de03-0410-8827-d642c229c3f4
| * Functions mpfr_add1sp1 and mpfr_sub1sp1 are called only from the filesvlefevre2016-07-051-2/+0
| | | | | | | | | | | | where they are defined, thus can be static. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10562 280ebfd0-de03-0410-8827-d642c229c3f4
| * speedup of mpfr_sub for same precision < GMP_NUMB_BITSzimmerma2016-07-041-0/+2
| | | | | | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10539 280ebfd0-de03-0410-8827-d642c229c3f4
| * Renamed macro MPFR_EXP_LESS_P to MPFR_UBF_EXP_LESS_P.vlefevre2016-06-291-1/+1
| | | | | | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10534 280ebfd0-de03-0410-8827-d642c229c3f4
* | Merged r10529 through r10554 from the trunk (no conflicts).vlefevre2016-07-221-1/+3
| | | | | | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/faithful@10647 280ebfd0-de03-0410-8827-d642c229c3f4
* | Merged the latest changes from the trunk.vlefevre2016-06-241-0/+4
|\ \ | |/ | | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/faithful@10508 280ebfd0-de03-0410-8827-d642c229c3f4
| * [src/mpfr-impl.h] Added a comment for MPFR_RNDRAW_GEN about the usevlefevre2016-06-231-0/+4
| | | | | | | | | | | | of the exponent field of the destination. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10493 280ebfd0-de03-0410-8827-d642c229c3f4
* | merged changed from trunk withzimmerma2016-06-231-7/+75
|\ \ | |/ | | | | | | | | | | | | | | | | svn merge '^/trunk' (resolved conflict for sub1.c; copied tests/tsum.c from trunk and re-incorporated changes from faithful branch) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/faithful@10484 280ebfd0-de03-0410-8827-d642c229c3f4
| * [src/mpfr-impl.h] Define mpfr_ueexp_t (needed for r10462).vlefevre2016-06-091-0/+2
| | | | | | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10463 280ebfd0-de03-0410-8827-d642c229c3f4
| * [src/mpfr-impl.h] Updated a comment (removing a FIXME).vlefevre2016-06-071-1/+3
| | | | | | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/ubf@10451 280ebfd0-de03-0410-8827-d642c229c3f4
| * [src/mpfr-impl.h] UBF support: added MPFR_IS_SINGULAR_OR_UBF andvlefevre2016-06-031-0/+5
| | | | | | | | | | | | MPFR_ARE_SINGULAR_OR_UBF macros. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/ubf@10415 280ebfd0-de03-0410-8827-d642c229c3f4
| * Merged the latest changes (in particular the fix in sub1.c) from thevlefevre2016-05-301-1/+1
| |\ | | | | | | | | | | | | | | | trunk. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/ubf@10388 280ebfd0-de03-0410-8827-d642c229c3f4
| * \ Merged the latest changes from the trunk and removed the remainingvlefevre2016-05-241-110/+104
| |\ \ | | | | | | | | | | | | | | | | | | | | _MPFR_PROTO of UBF functions. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/ubf@10357 280ebfd0-de03-0410-8827-d642c229c3f4
| * \ \ Merged the latest changes from the trunk.vlefevre2016-05-241-14/+49
| |\ \ \ | | | | | | | | | | | | | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/ubf@10337 280ebfd0-de03-0410-8827-d642c229c3f4
| * | | | More UBF support:vlefevre2016-05-231-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * mpfr-impl.h, ubf.c: added mpfr_ubf_zexp2exp function. * add1.c: support the case where b (the first input) is an UBF. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/ubf@10325 280ebfd0-de03-0410-8827-d642c229c3f4
| * | | | Added UBF support for mpfr_cmp2.vlefevre2016-05-231-0/+2
| | | | | | | | | | | | | | | | | | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/ubf@10322 280ebfd0-de03-0410-8827-d642c229c3f4
| * | | | Started to implement unbounded floats (UBF) and added support in somevlefevre2016-05-231-0/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | existing functions. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/ubf@10318 280ebfd0-de03-0410-8827-d642c229c3f4
| * | | | First, reverse-merge r9975 and r9957 (whose only purpose was for fmma,vlefevre2016-05-231-7/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | but changed the exponent range and still had various issues). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/ubf@10315 280ebfd0-de03-0410-8827-d642c229c3f4
* | | | | RNDF: fixed the fits functionszimmerma2016-06-031-1/+1
| | | | | | | | | | | | | | | | | | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/faithful@10428 280ebfd0-de03-0410-8827-d642c229c3f4
* | | | | start implementing RNDF (work in progress)zimmerma2016-05-281-5/+8
| |_|_|/ |/| | | | | | | | | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/faithful@10380 280ebfd0-de03-0410-8827-d642c229c3f4
* | | | [src/mpfr-impl.h] Fixed bug introduced in r10327, giving:vlefevre2016-05-251-1/+1
| |_|/ |/| | | | | | | | | | | | | | error: ISO C does not allow extra ';' outside of a function [-Wpedantic] git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10375 280ebfd0-de03-0410-8827-d642c229c3f4
* | | Removed _MPFR_PROTO with the following Perl script on the .h files.vlefevre2016-05-241-88/+88
| | | | | | | | | | | | | | | | | | | | | | | | while (<>) { if ($c) { die if /_MPFR_PROTO/; s/^( {$c}) */$1/; s/\) *\)/)/ and undef $c } elsif (s/^(.*)(_MPFR_PROTO *\()\(/$1(/) { s/\) *\)/)/ or $c = 1 + length $1 } print } git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10356 280ebfd0-de03-0410-8827-d642c229c3f4
* | | Avoid some warnings with "gcc -Wundef".vlefevre2016-05-241-1/+1
| | | | | | | | | | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10352 280ebfd0-de03-0410-8827-d642c229c3f4
* | | removed too aggressive MPFR_LIKELY/MPFR_UNLIKELY (see README.dev)zimmerma2016-05-241-13/+10
| |/ |/| | | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10346 280ebfd0-de03-0410-8827-d642c229c3f4
* | [src/mpfr-impl.h] About the MPFR_DECL_INIT_CACHE macro:vlefevre2016-05-231-5/+17
| | | | | | | | | | | | | | | | * Added a FIXME comment about a possible warning due to a missing field initializer; suggest 2 possible solutions. * Improved code readability. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10333 280ebfd0-de03-0410-8827-d642c229c3f4
* | Added shared cache support (from a patch by Patrick PĂ©lissier).vlefevre2016-05-231-14/+33
| | | | | | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10327 280ebfd0-de03-0410-8827-d642c229c3f4
* | redefine mpfr_init_set_xxx with mpz_t pool, otherwise the pool is notzimmerma2016-05-231-0/+4
|/ | | | | | | used for those calls git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10319 280ebfd0-de03-0410-8827-d642c229c3f4
* added comment about MPFR_MY_MPZ_INITzimmerma2016-05-231-0/+4
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10313 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/mpfr-impl.h] Added IS_SIGNED macro to check whether an integer typevlefevre2016-05-221-2/+9
| | | | | | (after integer promotion) is signed; and use it for MPFR_EXP_IN_RANGE. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10302 280ebfd0-de03-0410-8827-d642c229c3f4
* Added MPFR_EXP_IN_RANGE macro, and replaced some tests to use it.vlefevre2016-05-181-7/+8
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10296 280ebfd0-de03-0410-8827-d642c229c3f4
* Improved code related to mpfr_set_exp_t:vlefevre2016-05-171-0/+4
| | | | | | | | * Define MPFR_EXP_LIMB_SIZE macro (size of mpfr_exp_t in limbs) and use it. * src/pow.c: replaced a mpfr_init2 by MPFR_TMP_INIT1. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10294 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/mpfr-impl.h] Minor improvements.vlefevre2016-05-131-5/+16
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10292 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/mpfr-impl.h] Clean-up.vlefevre2016-04-251-56/+64
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10278 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/mpfr-impl.h] Removed the detection of possible inconsistenciesvlefevre2016-04-081-13/+0
| | | | | | | | | | | | under Unix because the tests could yield spurious errors with Cygwin or other similar implementations. Moreover, such tests were used for debugging purpose or to detect potential problems in the environment, thus were not really useful for the end user. They were initially added in the win-thread-safe-dll branch (r9682, following a problem found in r9680). One alternative for checking by the MPFR developers would be to output the status of some internal macros in tversion. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10260 280ebfd0-de03-0410-8827-d642c229c3f4
* revert changeset 10255zimmerma2016-04-081-10/+10
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10257 280ebfd0-de03-0410-8827-d642c229c3f4
* patch for Cygwin (cf http://trac.sagemath.org/ticket/20380)zimmerma2016-04-081-10/+10
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10255 280ebfd0-de03-0410-8827-d642c229c3f4
* Updated comments about DBL_NAN, dbl_nan.d and qNaN / sNaN encoding.vlefevre2016-03-021-0/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10178 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/mpfr-impl.h] Added a comment about non-IEEE-754 environment.vlefevre2016-03-011-1/+6
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10169 280ebfd0-de03-0410-8827-d642c229c3f4
* removed leftover debug statementzimmerma2016-03-011-1/+0
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10156 280ebfd0-de03-0410-8827-d642c229c3f4
* improved detection of decimal floatszimmerma2016-03-011-4/+5
| | | | | | | removed (obsolete?) #define XDEBUG in mpfr-gmp.h git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10153 280ebfd0-de03-0410-8827-d642c229c3f4
* get rid of dependency from GMP for _GMP_IEEE_FLOATS and ieee_double_extractzimmerma2016-02-291-4/+4
| | | | | | | enable decimal float by default git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10150 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/mpfr-impl.h] Removed mpfr_sum_sort declaration, as this internalvlefevre2016-02-171-4/+0
| | | | | | function had been removed in r9370. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10055 280ebfd0-de03-0410-8827-d642c229c3f4
* now mpfr_eint(x) returns E1(x) for negative xzimmerma2016-02-081-0/+6
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9990 280ebfd0-de03-0410-8827-d642c229c3f4
* Value coverage for tsum: differentiate sq > MPFR_PREC_MIN and not.vlefevre2016-02-081-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9984 280ebfd0-de03-0410-8827-d642c229c3f4
* added a test for exact powers for mpfr_rootzimmerma2016-02-051-1/+1
| | | | | | | and fixed mpfr_root for negative x (and odd k) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9970 280ebfd0-de03-0410-8827-d642c229c3f4