summaryrefslogtreecommitdiff
path: root/fma.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2002-01-18 11:33:22 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2002-01-18 11:33:22 +0000
commit650976ea9dfe0ea39c5a230a8c78772d36cffab9 (patch)
treeb1e365608d105863ba0c2ab9a42c52c0a262b4f3 /fma.c
parent2f9b8429f39285c80c790095d11d662cf93de1ca (diff)
downloadmpfr-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.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/fma.c b/fma.c
index 8ab353d38..5db5989e2 100644
--- a/fma.c
+++ b/fma.c
@@ -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);