diff options
author | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-04-07 14:40:47 +0000 |
---|---|---|
committer | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-04-07 14:40:47 +0000 |
commit | 2bc26fb8ca6e4e783f0ecc1a01430815bf9c50b2 (patch) | |
tree | 0f024e6c674a1f626e5a8231e7cda2d08e7ab120 /init2.c | |
parent | c44bde008cebc99a76205f1329ac86fef8cf65c3 (diff) | |
download | mpfr-2bc26fb8ca6e4e783f0ecc1a01430815bf9c50b2.tar.gz |
Modify a few the allocation scheme without gmp-impl.h
Add pseudo-constants __MPFR_EXP_NAN, __MPFR_EXP_ZERO and __MPFR_EXP_INF
for future (?) inlining of some functions.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2863 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'init2.c')
-rw-r--r-- | init2.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -37,8 +37,10 @@ mpfr_init2 (mpfr_ptr x, mp_prec_t p) MPFR_ASSERTN( BITS_PER_MP_LIMB == BYTES_PER_MP_LIMB * CHAR_BIT && sizeof(mp_limb_t) == BYTES_PER_MP_LIMB ); - /* Check for correct EXP NAN in both mpfr.h and in mpfr-impl.h */ - MPFR_ASSERTN( __MPFR_EXP_NAN == MPFR_EXP_NAN ); + /* Check for correct EXP NAN, ZERO & INF in both mpfr.h and in mpfr-impl.h */ + MPFR_ASSERTN( __MPFR_EXP_NAN == MPFR_EXP_NAN ); + MPFR_ASSERTN( __MPFR_EXP_ZERO == MPFR_EXP_ZERO ); + MPFR_ASSERTN( __MPFR_EXP_INF == MPFR_EXP_INF ); /* p=1 is not allowed since the rounding to nearest even rule requires at least two bits of mantissa: the neighbours of 3/2 are 1*2^0 and 1*2^1, |