summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--add_ui.c2
-rw-r--r--add_ulp.c2
-rw-r--r--agm.c2
-rw-r--r--clear.c2
-rw-r--r--cmp.c2
-rw-r--r--cmp_ui.c2
-rw-r--r--div.c2
-rw-r--r--div_2exp.c2
-rw-r--r--div_ui.c2
-rw-r--r--dump.c2
-rw-r--r--eq.c2
-rw-r--r--exp.c2
-rw-r--r--exp2.c2
-rw-r--r--exp3.c2
-rw-r--r--extract.c3
-rw-r--r--get_str.c2
-rw-r--r--init.c2
-rw-r--r--inp_str.c2
-rw-r--r--log.c2
-rw-r--r--log2.c2
-rw-r--r--mpz_set_fr.c2
-rw-r--r--mul.c2
-rw-r--r--mul_2exp.c2
-rw-r--r--mul_ui.c2
-rw-r--r--neg.c2
-rw-r--r--out_str.c2
-rw-r--r--pi.c3
-rw-r--r--print_raw.c2
-rw-r--r--print_rnd_mode.c2
-rw-r--r--random.c3
-rw-r--r--random2.c3
-rw-r--r--reldiff.c2
-rw-r--r--round.c2
-rw-r--r--set.c2
-rw-r--r--set_d.c2
-rw-r--r--set_dfl_prec.c2
-rw-r--r--set_f.c2
-rw-r--r--set_prc_raw.c2
-rw-r--r--set_prec.c2
-rw-r--r--set_q.c2
-rw-r--r--set_rnd.c2
-rw-r--r--set_si.c2
-rw-r--r--set_str.c2
-rw-r--r--set_str_raw.c2
-rw-r--r--set_z.c2
-rw-r--r--sin_cos.c2
-rw-r--r--sqrt.c2
-rw-r--r--sub.c2
-rw-r--r--sub_ui.c2
-rw-r--r--swap.c2
-rw-r--r--trunc.c2
-rw-r--r--ui_div.c2
-rw-r--r--ui_sub.c2
-rw-r--r--urandomb.c2
-rw-r--r--zeta.c2
55 files changed, 59 insertions, 55 deletions
diff --git a/add_ui.c b/add_ui.c
index 3cc40eff6..3887d1efc 100644
--- a/add_ui.c
+++ b/add_ui.c
@@ -21,9 +21,9 @@ MA 02111-1307, USA. */
#include <stdio.h>
#include "gmp.h"
-#include "gmp-impl.h"
#include "longlong.h"
#include "mpfr.h"
+#include "gmp-impl.h"
#define MON_INIT(xp, x, p, s) MPFR_PREC(x)=p; MPFR_MANT(x)=xp; MPFR_SIZE(x)=s;
diff --git a/add_ulp.c b/add_ulp.c
index 6f713677b..c5663c53c 100644
--- a/add_ulp.c
+++ b/add_ulp.c
@@ -20,8 +20,8 @@ the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
#include "gmp.h"
-#include "gmp-impl.h"
#include "mpfr.h"
+#include "gmp-impl.h"
/* sets x to x+sign(x)*2^(MPFR_EXP(x)-MPFR_PREC(x)) */
int
diff --git a/agm.c b/agm.c
index 54b9c311f..ae1fddfad 100644
--- a/agm.c
+++ b/agm.c
@@ -22,8 +22,8 @@ MA 02111-1307, USA. */
#include <stdio.h>
#include <math.h>
#include "gmp.h"
-#include "gmp-impl.h"
#include "mpfr.h"
+#include "gmp-impl.h"
/*Memory gestion */
#define MON_INIT(xp, x, p, s) xp = (mp_ptr) TMP_ALLOC(s*BYTES_PER_MP_LIMB); x -> _mp_prec = p; x -> _mp_d = xp; x -> _mp_size = s; x -> _mp_exp = 0;
diff --git a/clear.c b/clear.c
index a2eaf9256..0c7c07db4 100644
--- a/clear.c
+++ b/clear.c
@@ -21,8 +21,8 @@ MA 02111-1307, USA. */
#include <stdio.h>
#include "gmp.h"
-#include "gmp-impl.h"
#include "mpfr.h"
+#include "gmp-impl.h"
void
#if __STDC__
diff --git a/cmp.c b/cmp.c
index 970ecd542..2c5ea2be6 100644
--- a/cmp.c
+++ b/cmp.c
@@ -21,9 +21,9 @@ MA 02111-1307, USA. */
#include <stdio.h>
#include "gmp.h"
-#include "gmp-impl.h"
#include "longlong.h"
#include "mpfr.h"
+#include "gmp-impl.h"
/* returns 0 iff b = c
a positive value iff b > c
diff --git a/cmp_ui.c b/cmp_ui.c
index 0cf0a2e4d..3e3331d01 100644
--- a/cmp_ui.c
+++ b/cmp_ui.c
@@ -21,9 +21,9 @@ MA 02111-1307, USA. */
#include <stdio.h>
#include "gmp.h"
-#include "gmp-impl.h"
#include "longlong.h"
#include "mpfr.h"
+#include "gmp-impl.h"
/* returns a positive value if b>i*2^f,
a negative value if b<i*2^f,
diff --git a/div.c b/div.c
index 3e0c3685c..f48d47faf 100644
--- a/div.c
+++ b/div.c
@@ -23,9 +23,9 @@ MA 02111-1307, USA. */
#include <stdio.h>
#include <stdlib.h>
#include "gmp.h"
-#include "gmp-impl.h"
#include "mpfr.h"
#include "longlong.h"
+#include "gmp-impl.h"
/* #define DEBUG */
diff --git a/div_2exp.c b/div_2exp.c
index 92aa33cc5..3749706cd 100644
--- a/div_2exp.c
+++ b/div_2exp.c
@@ -21,8 +21,8 @@ MA 02111-1307, USA. */
#include <stdio.h>
#include "gmp.h"
-#include "gmp-impl.h"
#include "mpfr.h"
+#include "gmp-impl.h"
void
#if __STDC__
diff --git a/div_ui.c b/div_ui.c
index 08622b855..2817b4776 100644
--- a/div_ui.c
+++ b/div_ui.c
@@ -21,6 +21,7 @@ MA 02111-1307, USA. */
#include <stdio.h>
#include "gmp.h"
+#include "mpfr.h"
#if (__GNU_MP_VERSION < 3)
/* longlong.h has to come before gmp-impl.h,
otherwise UDIV_NEEDS_NORMALIZATION is wrongly defined */
@@ -30,7 +31,6 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
#include "longlong.h"
#endif
-#include "mpfr.h"
/* #define DEBUG */
diff --git a/dump.c b/dump.c
index 6fdff81ff..892f5eac8 100644
--- a/dump.c
+++ b/dump.c
@@ -27,8 +27,8 @@ MA 02111-1307, USA. */
#include <stdio.h>
#include <strings.h>
#include "gmp.h"
-#include "gmp-impl.h"
#include "mpfr.h"
+#include "gmp-impl.h"
void
#if __STDC__
diff --git a/eq.c b/eq.c
index 004cf0667..cd2b864e9 100644
--- a/eq.c
+++ b/eq.c
@@ -23,8 +23,8 @@ MA 02111-1307, USA. */
#include <stdio.h>
#include "gmp.h"
-#include "gmp-impl.h"
#include "mpfr.h"
+#include "gmp-impl.h"
int
#if __STDC__
diff --git a/exp.c b/exp.c
index 8f7957d04..5f4590028 100644
--- a/exp.c
+++ b/exp.c
@@ -22,8 +22,8 @@ MA 02111-1307, USA. */
#include <stdio.h>
#include <math.h>
#include "gmp.h"
-#include "gmp-impl.h"
#include "mpfr.h"
+#include "gmp-impl.h"
/* #define DEBUG */
diff --git a/exp2.c b/exp2.c
index 3f59479da..2ae5bee51 100644
--- a/exp2.c
+++ b/exp2.c
@@ -23,8 +23,8 @@ MA 02111-1307, USA. */
#include <stdio.h>
#include <math.h>
#include "gmp.h"
-#include "gmp-impl.h"
#include "mpfr.h"
+#include "gmp-impl.h"
int mpfr_exp2_aux (mpz_t, mpfr_srcptr, int, int*);
int mpfr_exp2_aux2 (mpz_t, mpfr_srcptr, int, int*);
diff --git a/exp3.c b/exp3.c
index c7d2bdde3..bcdae3a17 100644
--- a/exp3.c
+++ b/exp3.c
@@ -22,8 +22,8 @@ MA 02111-1307, USA. */
#include <stdio.h>
#include <math.h>
#include "gmp.h"
-#include "gmp-impl.h"
#include "mpfr.h"
+#include "gmp-impl.h"
/* #define DEBUG */
diff --git a/extract.c b/extract.c
index 944922f37..8ef188ee0 100644
--- a/extract.c
+++ b/extract.c
@@ -20,8 +20,9 @@ the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
#include "gmp.h"
-#include "gmp-impl.h"
#include "mpfr.h"
+#include "gmp-impl.h"
+
/* given 0 <= |p| < 1, this function extracts limbs of p and puts them in y.
It is mainly designed for the "binary splitting" algorithm together with
diff --git a/get_str.c b/get_str.c
index 8e056cd31..d621fa18d 100644
--- a/get_str.c
+++ b/get_str.c
@@ -26,9 +26,9 @@ MA 02111-1307, USA. */
#include <stdlib.h>
#include <string.h>
#include "gmp.h"
-#include "gmp-impl.h"
#include "longlong.h"
#include "mpfr.h"
+#include "gmp-impl.h"
/*
Convert op to a string in base 'base' with 'n' digits and writes the
diff --git a/init.c b/init.c
index 2dc463222..7f32a64b0 100644
--- a/init.c
+++ b/init.c
@@ -21,8 +21,8 @@ MA 02111-1307, USA. */
#include <stdio.h>
#include "gmp.h"
-#include "gmp-impl.h"
#include "mpfr.h"
+#include "gmp-impl.h"
void
#if __STDC__
diff --git a/inp_str.c b/inp_str.c
index 9bcbccf1a..af636e573 100644
--- a/inp_str.c
+++ b/inp_str.c
@@ -23,8 +23,8 @@ MA 02111-1307, USA. */
#include <stdio.h>
#include <ctype.h>
#include "gmp.h"
-#include "gmp-impl.h"
#include "mpfr.h"
+#include "gmp-impl.h"
size_t
#if __STDC__
diff --git a/log.c b/log.c
index 419ad5e0b..4238b4048 100644
--- a/log.c
+++ b/log.c
@@ -22,8 +22,8 @@ MA 02111-1307, USA. */
#include <stdio.h>
#include <math.h>
#include "gmp.h"
-#include "gmp-impl.h"
#include "mpfr.h"
+#include "gmp-impl.h"
/* The computation of log(a) is done using the formula :
diff --git a/log2.c b/log2.c
index a02484703..e2ef1ce6a 100644
--- a/log2.c
+++ b/log2.c
@@ -22,9 +22,9 @@ MA 02111-1307, USA. */
#include <stdio.h>
#include <math.h>
#include "gmp.h"
-#include "gmp-impl.h"
#include "longlong.h"
#include "mpfr.h"
+#include "gmp-impl.h"
mpfr_t __mpfr_const_log2; /* stored value of log(2) */
int __mpfr_const_log2_prec=0; /* precision of stored value */
diff --git a/mpz_set_fr.c b/mpz_set_fr.c
index 0b479e2fc..d554d7f56 100644
--- a/mpz_set_fr.c
+++ b/mpz_set_fr.c
@@ -20,9 +20,9 @@ the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
#include "gmp.h"
-#include "gmp-impl.h"
#include "longlong.h"
#include "mpfr.h"
+#include "gmp-impl.h"
/* puts the mantissa of f into z, and returns 'exp' such that f = z * 2^exp
*/
diff --git a/mul.c b/mul.c
index f2d32fb86..bf89576c5 100644
--- a/mul.c
+++ b/mul.c
@@ -21,8 +21,8 @@ MA 02111-1307, USA. */
#include <stdio.h>
#include "gmp.h"
-#include "gmp-impl.h"
#include "mpfr.h"
+#include "gmp-impl.h"
/* Remains to do:
- do not use all bits of b and c when MPFR_PREC(b)>MPFR_PREC(a) or MPFR_PREC(c)>MPFR_PREC(a)
diff --git a/mul_2exp.c b/mul_2exp.c
index fafc7d532..6f62cde01 100644
--- a/mul_2exp.c
+++ b/mul_2exp.c
@@ -21,8 +21,8 @@ MA 02111-1307, USA. */
#include <stdio.h>
#include "gmp.h"
-#include "gmp-impl.h"
#include "mpfr.h"
+#include "gmp-impl.h"
void
#if __STDC__
diff --git a/mul_ui.c b/mul_ui.c
index 3f1c3ecd7..31c0c09e4 100644
--- a/mul_ui.c
+++ b/mul_ui.c
@@ -21,9 +21,9 @@ MA 02111-1307, USA. */
#include <stdio.h>
#include "gmp.h"
-#include "gmp-impl.h"
#include "longlong.h"
#include "mpfr.h"
+#include "gmp-impl.h"
void
#if __STDC__
diff --git a/neg.c b/neg.c
index 1373b033c..f13e65541 100644
--- a/neg.c
+++ b/neg.c
@@ -21,8 +21,8 @@ MA 02111-1307, USA. */
#include <stdio.h>
#include "gmp.h"
-#include "gmp-impl.h"
#include "mpfr.h"
+#include "gmp-impl.h"
void
#if __STDC__
diff --git a/out_str.c b/out_str.c
index 9134f4f41..429b93556 100644
--- a/out_str.c
+++ b/out_str.c
@@ -23,8 +23,8 @@ MA 02111-1307, USA. */
#include <math.h>
#include <string.h>
#include "gmp.h"
-#include "gmp-impl.h"
#include "mpfr.h"
+#include "gmp-impl.h"
size_t
#if __STDC__
diff --git a/pi.c b/pi.c
index a754c4b92..ea502a7d4 100644
--- a/pi.c
+++ b/pi.c
@@ -22,9 +22,10 @@ MA 02111-1307, USA. */
#include <stdio.h>
#include <math.h>
#include "gmp.h"
-#include "gmp-impl.h"
#include "longlong.h"
#include "mpfr.h"
+#include "gmp-impl.h"
+
#define A
#define A1 1
diff --git a/print_raw.c b/print_raw.c
index 2fca28acf..b4e5385ca 100644
--- a/print_raw.c
+++ b/print_raw.c
@@ -22,8 +22,8 @@ MA 02111-1307, USA. */
#include <stdio.h>
#include "gmp.h"
-#include "gmp-impl.h"
#include "mpfr.h"
+#include "gmp-impl.h"
void
#if __STDC__
diff --git a/print_rnd_mode.c b/print_rnd_mode.c
index af32737eb..e97d74eba 100644
--- a/print_rnd_mode.c
+++ b/print_rnd_mode.c
@@ -21,8 +21,8 @@ MA 02111-1307, USA. */
#include <stdio.h>
#include "gmp.h"
-#include "gmp-impl.h"
#include "mpfr.h"
+#include "gmp-impl.h"
char *
#if __STDC__
diff --git a/random.c b/random.c
index 8b87a6597..5941b3ce1 100644
--- a/random.c
+++ b/random.c
@@ -21,10 +21,11 @@ MA 02111-1307, USA. */
#include <stdio.h>
#include "gmp.h"
-#include "gmp-impl.h"
#include "longlong.h"
#include "urandom.h"
#include "mpfr.h"
+#include "gmp-impl.h"
+
/* Computes a random mpfr in [0, 1[ with precision MPFR_PREC */
diff --git a/random2.c b/random2.c
index 6740ccb41..9a5204dd4 100644
--- a/random2.c
+++ b/random2.c
@@ -23,9 +23,10 @@ MA 02111-1307, USA. */
#include <stdio.h>
#include "gmp.h"
-#include "gmp-impl.h"
#include "longlong.h"
#include "mpfr.h"
+#include "gmp-impl.h"
+
#if defined (__hpux) || defined (__alpha) || defined (__svr4__) || defined (__SVR4)
/* HPUX lacks random(). DEC OSF/1 1.2 random() returns a double. */
diff --git a/reldiff.c b/reldiff.c
index 28d717073..dcc62ee38 100644
--- a/reldiff.c
+++ b/reldiff.c
@@ -21,8 +21,8 @@ MA 02111-1307, USA. */
#include <stdio.h>
#include "gmp.h"
-#include "gmp-impl.h"
#include "mpfr.h"
+#include "gmp-impl.h"
/* reldiff(b, c) = abs(b-c)/b */
void
diff --git a/round.c b/round.c
index 255f8b642..38b3897bb 100644
--- a/round.c
+++ b/round.c
@@ -22,8 +22,8 @@ MA 02111-1307, USA. */
#include <stdio.h>
#include "gmp.h"
-#include "gmp-impl.h"
#include "mpfr.h"
+#include "gmp-impl.h"
#ifdef Exp
#include "longlong.h"
diff --git a/set.c b/set.c
index c82887929..1d45e6a5f 100644
--- a/set.c
+++ b/set.c
@@ -21,8 +21,8 @@ MA 02111-1307, USA. */
#include <stdio.h>
#include "gmp.h"
-#include "gmp-impl.h"
#include "mpfr.h"
+#include "gmp-impl.h"
void
#if __STDC__
diff --git a/set_d.c b/set_d.c
index a56022706..3b132206b 100644
--- a/set_d.c
+++ b/set_d.c
@@ -21,9 +21,9 @@ the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
#include "gmp.h"
-#include "gmp-impl.h"
#include "longlong.h"
#include "mpfr.h"
+#include "gmp-impl.h"
#define NaN (0./0.) /* ensures a machine-independent NaN */
#define Infp (1/0.)
diff --git a/set_dfl_prec.c b/set_dfl_prec.c
index 3a6713a24..f1ff78a08 100644
--- a/set_dfl_prec.c
+++ b/set_dfl_prec.c
@@ -20,8 +20,8 @@ the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
#include "gmp.h"
-#include "gmp-impl.h"
#include "mpfr.h"
+#include "gmp-impl.h"
/* default is 53 bits */
mp_prec_t __gmp_default_fp_bit_precision = 53;
diff --git a/set_f.c b/set_f.c
index 6b82b0b7c..448995b70 100644
--- a/set_f.c
+++ b/set_f.c
@@ -21,9 +21,9 @@ MA 02111-1307, USA. */
#include <stdio.h>
#include "gmp.h"
-#include "gmp-impl.h"
#include "longlong.h"
#include "mpfr.h"
+#include "gmp-impl.h"
void
#if __STDC__
diff --git a/set_prc_raw.c b/set_prc_raw.c
index 77aae7992..eaf4c4723 100644
--- a/set_prc_raw.c
+++ b/set_prc_raw.c
@@ -21,8 +21,8 @@ MA 02111-1307, USA. */
#include <stdio.h>
#include "gmp.h"
-#include "gmp-impl.h"
#include "mpfr.h"
+#include "gmp-impl.h"
void
#if __STDC__
diff --git a/set_prec.c b/set_prec.c
index 7a91af676..8b582e74b 100644
--- a/set_prec.c
+++ b/set_prec.c
@@ -21,8 +21,8 @@ MA 02111-1307, USA. */
#include <stdio.h>
#include "gmp.h"
-#include "gmp-impl.h"
#include "mpfr.h"
+#include "gmp-impl.h"
void
#if __STDC__
diff --git a/set_q.c b/set_q.c
index ad39e702d..5c2081368 100644
--- a/set_q.c
+++ b/set_q.c
@@ -20,9 +20,9 @@ the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
#include "gmp.h"
-#include "gmp-impl.h"
#include "longlong.h"
#include "mpfr.h"
+#include "gmp-impl.h"
/* set f to the rational q */
void
diff --git a/set_rnd.c b/set_rnd.c
index 3a900e3a2..34e728b8e 100644
--- a/set_rnd.c
+++ b/set_rnd.c
@@ -20,8 +20,8 @@ the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
#include "gmp.h"
-#include "gmp-impl.h"
#include "mpfr.h"
+#include "gmp-impl.h"
mp_rnd_t __gmp_default_rounding_mode = 0;
diff --git a/set_si.c b/set_si.c
index 7691f2d31..764c56cf2 100644
--- a/set_si.c
+++ b/set_si.c
@@ -21,9 +21,9 @@ MA 02111-1307, USA. */
#include <stdio.h>
#include "gmp.h"
-#include "gmp-impl.h"
#include "longlong.h"
#include "mpfr.h"
+#include "gmp-impl.h"
void
#if __STDC__
diff --git a/set_str.c b/set_str.c
index c3eefe7cb..c74f4f3f5 100644
--- a/set_str.c
+++ b/set_str.c
@@ -28,9 +28,9 @@ MA 02111-1307, USA. */
#include <strings.h>
#endif
#include "gmp.h"
-#include "gmp-impl.h"
#include "longlong.h"
#include "mpfr.h"
+#include "gmp-impl.h"
int
#if __STDC__
diff --git a/set_str_raw.c b/set_str_raw.c
index e51e15e10..e1114ea8c 100644
--- a/set_str_raw.c
+++ b/set_str_raw.c
@@ -27,9 +27,9 @@ MA 02111-1307, USA. */
#include <strings.h>
#endif
#include "gmp.h"
-#include "gmp-impl.h"
#include "longlong.h"
#include "mpfr.h"
+#include "gmp-impl.h"
/* Currently the number should be of the form +/- xxxx.xxxxxxEyy, with
decimal exponent. The mantissa of x is supposed to be large enough
diff --git a/set_z.c b/set_z.c
index 7dbc6ff62..b3bbe1013 100644
--- a/set_z.c
+++ b/set_z.c
@@ -20,9 +20,9 @@ the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
#include "gmp.h"
-#include "gmp-impl.h"
#include "longlong.h"
#include "mpfr.h"
+#include "gmp-impl.h"
/* set f to the integer z */
int
diff --git a/sin_cos.c b/sin_cos.c
index b6f630d7b..5c041bd52 100644
--- a/sin_cos.c
+++ b/sin_cos.c
@@ -23,8 +23,8 @@ MA 02111-1307, USA. */
#include <stdio.h>
#include <stdlib.h>
#include "gmp.h"
-#include "gmp-impl.h"
#include "mpfr.h"
+#include "gmp-impl.h"
#undef A
#undef B
diff --git a/sqrt.c b/sqrt.c
index ebee72745..477037b32 100644
--- a/sqrt.c
+++ b/sqrt.c
@@ -23,8 +23,8 @@ MA 02111-1307, USA. */
#include <stdio.h>
#include <stdlib.h>
#include "gmp.h"
-#include "gmp-impl.h"
#include "mpfr.h"
+#include "gmp-impl.h"
/* #define DEBUG */
diff --git a/sub.c b/sub.c
index 8a90712a3..89e9f4072 100644
--- a/sub.c
+++ b/sub.c
@@ -21,8 +21,8 @@ MA 02111-1307, USA. */
#include <stdio.h>
#include "gmp.h"
-#include "gmp-impl.h"
#include "mpfr.h"
+#include "gmp-impl.h"
/* #define DEBUG */
diff --git a/sub_ui.c b/sub_ui.c
index 845858cb8..194d99985 100644
--- a/sub_ui.c
+++ b/sub_ui.c
@@ -21,9 +21,9 @@ MA 02111-1307, USA. */
#include <stdio.h>
#include "gmp.h"
-#include "gmp-impl.h"
#include "longlong.h"
#include "mpfr.h"
+#include "gmp-impl.h"
#define MON_INIT(xp, x, p, s) xp = (mp_ptr) TMP_ALLOC(s*BYTES_PER_MP_LIMB); x -> _mp_prec = p; x -> _mp_d = xp; x -> _mp_size = s;
diff --git a/swap.c b/swap.c
index d3e715d49..1e1eb3cf8 100644
--- a/swap.c
+++ b/swap.c
@@ -20,8 +20,8 @@ the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
#include "gmp.h"
-#include "gmp-impl.h"
#include "mpfr.h"
+#include "gmp-impl.h"
void
#if __STDC__
diff --git a/trunc.c b/trunc.c
index 70f252ef2..bebe61b05 100644
--- a/trunc.c
+++ b/trunc.c
@@ -22,8 +22,8 @@ MA 02111-1307, USA. */
#include <stdio.h>
#include "gmp.h"
-#include "gmp-impl.h"
#include "mpfr.h"
+#include "gmp-impl.h"
#if MPFR_FLOOR
#define _MPFR_FLOOR_OR_CEIL
diff --git a/ui_div.c b/ui_div.c
index 3cdb29acf..14ccfbd9f 100644
--- a/ui_div.c
+++ b/ui_div.c
@@ -21,9 +21,9 @@ MA 02111-1307, USA. */
#include <stdio.h>
#include "gmp.h"
-#include "gmp-impl.h"
#include "longlong.h"
#include "mpfr.h"
+#include "gmp-impl.h"
#define MON_INIT(xp, x, p, s) xp = (mp_ptr) TMP_ALLOC(s*BYTES_PER_MP_LIMB); x -> _mp_prec = p; x -> _mp_d = xp; x -> _mp_size = s;
diff --git a/ui_sub.c b/ui_sub.c
index c8c377c3e..75fb66027 100644
--- a/ui_sub.c
+++ b/ui_sub.c
@@ -21,9 +21,9 @@ MA 02111-1307, USA. */
#include <stdio.h>
#include "gmp.h"
-#include "gmp-impl.h"
#include "longlong.h"
#include "mpfr.h"
+#include "gmp-impl.h"
#define MON_INIT(xp, x, p, s) xp = (mp_ptr) TMP_ALLOC(s*BYTES_PER_MP_LIMB); x -> _mp_prec = p; x -> _mp_d = xp; x -> _mp_size = s;
diff --git a/urandomb.c b/urandomb.c
index cd986c1ab..e324b4905 100644
--- a/urandomb.c
+++ b/urandomb.c
@@ -24,9 +24,9 @@ MA 02111-1307, USA. */
#include <stdio.h>
#include "gmp.h"
-#include "gmp-impl.h"
#include "longlong.h"
#include "mpfr.h"
+#include "gmp-impl.h"
void
#if __STDC__
diff --git a/zeta.c b/zeta.c
index b568089cb..360f33d68 100644
--- a/zeta.c
+++ b/zeta.c
@@ -22,9 +22,9 @@ MA 02111-1307, USA. */
#include <stdio.h>
#include <math.h>
#include "gmp.h"
-#include "gmp-impl.h"
#include "longlong.h"
#include "mpfr.h"
+#include "gmp-impl.h"
int
#if __STDC__