summaryrefslogtreecommitdiff
path: root/init2.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2001-11-28 17:12:35 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2001-11-28 17:12:35 +0000
commit775b838f196a48df901daf89bafc3d7aeae4f539 (patch)
treeec9ad712e60c3c126d32186e8dcdf6cbb9964bfe /init2.c
parenta35a116fe37f51a96e6a0fa6abe32f716c5e7108 (diff)
downloadmpfr-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.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/init2.c b/init2.c
index 722b0ee6d..d64a64703 100644
--- a/init2.c
+++ b/init2.c
@@ -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 */
}