diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2002-10-18 12:06:17 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2002-10-18 12:06:17 +0000 |
commit | f926c0b3791ecf966c9d538df38b5142c070e37a (patch) | |
tree | 204ca04261a144bc4e26e93666fe608734bddd47 /hypot.c | |
parent | eb521afa84f47be16e2259f9bccd7dcb4834be68 (diff) | |
download | mpfr-f926c0b3791ecf966c9d538df38b5142c070e37a.tar.gz |
Precision Nt: int -> mp_prec_t.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2062 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'hypot.c')
-rw-r--r-- | hypot.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -39,7 +39,7 @@ mpfr_hypot (mpfr_ptr z, mpfr_srcptr x , mpfr_srcptr y , mp_rnd_t rnd_mode) int not_exact; mpfr_t t, te, ti; /* auxiliary variables */ mp_prec_t Nx, Ny, Nz; /* size variables */ - int Nt; /* precision of the intermediary variable */ + mp_prec_t Nt; /* precision of the intermediary variable */ /* particular cases */ @@ -73,7 +73,7 @@ mpfr_hypot (mpfr_ptr z, mpfr_srcptr x , mpfr_srcptr y , mp_rnd_t rnd_mode) Nz = MPFR_PREC(z); /* Precision of output variable */ /* compute the working precision -- see algorithms.ps */ - Nt = MAX(MAX(Nx, Ny), Nz); + Nt = MAX(MAX(MAX(Nx, Ny), Nz), 8); Nt = Nt - 8 + _mpfr_ceil_log2 (Nt); /* initialise the intermediary variables */ @@ -88,7 +88,7 @@ mpfr_hypot (mpfr_ptr z, mpfr_srcptr x , mpfr_srcptr y , mp_rnd_t rnd_mode) Nt += 10; not_exact = 0; - /* reactualisation of the precision */ + /* reactualization of the precision */ mpfr_set_prec (t, Nt); mpfr_set_prec (te, Nt); mpfr_set_prec (ti, Nt); |