diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2001-11-28 17:12:35 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2001-11-28 17:12:35 +0000 |
commit | 775b838f196a48df901daf89bafc3d7aeae4f539 (patch) | |
tree | ec9ad712e60c3c126d32186e8dcdf6cbb9964bfe /init2.c | |
parent | a35a116fe37f51a96e6a0fa6abe32f716c5e7108 (diff) | |
download | mpfr-775b838f196a48df901daf89bafc3d7aeae4f539.tar.gz |
Init variables to NaN instead of 0.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1585 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'init2.c')
-rw-r--r-- | init2.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -37,7 +37,5 @@ mpfr_init2 (mpfr_ptr x, mp_prec_t p) MPFR_MANT(x) = (mp_ptr) (*__gmp_allocate_func) ((size_t) xsize * BYTES_PER_MP_LIMB); MPFR_SIZE(x) = xsize; - MPFR_CLEAR_FLAGS(x); /* though not necessary in our current implementation */ - MPFR_SET_ZERO(x); /* initializes to zero */ - MPFR_EXP(x) = 0; /* avoids uninitialized memory reads for zero */ + MPFR_SET_NAN(x); /* initializes to NaN */ } |