[Gmp-commit] /home/hgfiles/gmp: Avoid C99 declarations.

mercurial at gmplib.org mercurial at gmplib.org
Thu Jan 28 08:10:31 CET 2010


details:   /home/hgfiles/gmp/rev/e1f73c9da681
changeset: 13404:e1f73c9da681
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Thu Jan 28 08:09:31 2010 +0100
description:
Avoid C99 declarations.

diffstat:

 mpn/generic/mu_divappr_q.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r c9c6eeb3fcb3 -r e1f73c9da681 mpn/generic/mu_divappr_q.c
--- a/mpn/generic/mu_divappr_q.c	Wed Jan 27 19:11:28 2010 +0100
+++ b/mpn/generic/mu_divappr_q.c	Thu Jan 28 08:09:31 2010 +0100
@@ -355,8 +355,7 @@
 mp_size_t
 mpn_mu_divappr_q_itch (mp_size_t nn, mp_size_t dn, int mua_k)
 {
-  mp_size_t itch_local = mpn_mulmod_bnm1_next_size (dn + 1);
-  mp_size_t qn, in;
+  mp_size_t qn, in, itch_local, itch_out;
 
   qn = nn - dn;
   if (qn + 1 < dn)
@@ -365,11 +364,13 @@
     }
   in = mpn_mu_divappr_q_choose_in (qn, dn, mua_k);
 
+  itch_local = mpn_mulmod_bnm1_next_size (dn + 1);
+
   /* FIXME: check for the correct estimate and remove #if */
 #if 1
-  mp_size_t itch_out = mpn_mulmod_bnm1_itch (itch_local, dn, in);
+  itch_out = mpn_mulmod_bnm1_itch (itch_local, dn, in);
 #else
-  mp_size_t itch_out = mpn_mulmod_bnm1_itch (itch_local, itch_local, itch_local);
+  itch_out = mpn_mulmod_bnm1_itch (itch_local, itch_local, itch_local);
 #endif
 
   return in + dn + itch_local + itch_out;


More information about the gmp-commit mailing list