diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2002-01-18 11:33:22 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2002-01-18 11:33:22 +0000 |
commit | 650976ea9dfe0ea39c5a230a8c78772d36cffab9 (patch) | |
tree | b1e365608d105863ba0c2ab9a42c52c0a262b4f3 /fma.c | |
parent | 2f9b8429f39285c80c790095d11d662cf93de1ca (diff) | |
download | mpfr-650976ea9dfe0ea39c5a230a8c78772d36cffab9.tar.gz |
Nt: int -> mp_prec_t
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1659 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'fma.c')
-rw-r--r-- | fma.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -110,17 +110,17 @@ mpfr_fma (mpfr_ptr s, mpfr_srcptr x, mpfr_srcptr y, mpfr_srcptr z, mp_prec_t Ny = MPFR_PREC(y); /* Precision of input variable */ mp_prec_t Nz = MPFR_PREC(z); /* Precision of input variable */ mp_prec_t Ns = MPFR_PREC(s); /* Precision of output variable */ - int Nt; /* Precision of the intermediary variable */ + mp_prec_t Nt; /* Precision of the intermediary variable */ long int err; /* Precision of error */ - unsigned int first_pass=0; /* temporary precision */ - + unsigned int first_pass = 0; /* temporary precision */ + /* compute the precision of intermediary variable */ - Nt=MAX(MAX(Nx,Ny),Nz); + Nt = MAX(MAX(Nx,Ny),Nz); /* the optimal number of bits is MPFR_EXP(u)-MPFR_EXP(v)+1 */ /* but u and v are not yet compute, also we take in account */ /* just one bit */ - Nt=Nt+1+_mpfr_ceil_log2(Nt)+20; + Nt += 1 + _mpfr_ceil_log2(Nt) + 20; /* initialise the intermediary variables */ mpfr_init(u); mpfr_init(t); |