diff options
-rw-r--r-- | add_ui.c | 2 | ||||
-rw-r--r-- | add_ulp.c | 2 | ||||
-rw-r--r-- | agm.c | 2 | ||||
-rw-r--r-- | clear.c | 2 | ||||
-rw-r--r-- | cmp.c | 2 | ||||
-rw-r--r-- | cmp_ui.c | 2 | ||||
-rw-r--r-- | div.c | 2 | ||||
-rw-r--r-- | div_2exp.c | 2 | ||||
-rw-r--r-- | div_ui.c | 2 | ||||
-rw-r--r-- | dump.c | 2 | ||||
-rw-r--r-- | eq.c | 2 | ||||
-rw-r--r-- | exp.c | 2 | ||||
-rw-r--r-- | exp2.c | 2 | ||||
-rw-r--r-- | exp3.c | 2 | ||||
-rw-r--r-- | extract.c | 3 | ||||
-rw-r--r-- | get_str.c | 2 | ||||
-rw-r--r-- | init.c | 2 | ||||
-rw-r--r-- | inp_str.c | 2 | ||||
-rw-r--r-- | log.c | 2 | ||||
-rw-r--r-- | log2.c | 2 | ||||
-rw-r--r-- | mpz_set_fr.c | 2 | ||||
-rw-r--r-- | mul.c | 2 | ||||
-rw-r--r-- | mul_2exp.c | 2 | ||||
-rw-r--r-- | mul_ui.c | 2 | ||||
-rw-r--r-- | neg.c | 2 | ||||
-rw-r--r-- | out_str.c | 2 | ||||
-rw-r--r-- | pi.c | 3 | ||||
-rw-r--r-- | print_raw.c | 2 | ||||
-rw-r--r-- | print_rnd_mode.c | 2 | ||||
-rw-r--r-- | random.c | 3 | ||||
-rw-r--r-- | random2.c | 3 | ||||
-rw-r--r-- | reldiff.c | 2 | ||||
-rw-r--r-- | round.c | 2 | ||||
-rw-r--r-- | set.c | 2 | ||||
-rw-r--r-- | set_d.c | 2 | ||||
-rw-r--r-- | set_dfl_prec.c | 2 | ||||
-rw-r--r-- | set_f.c | 2 | ||||
-rw-r--r-- | set_prc_raw.c | 2 | ||||
-rw-r--r-- | set_prec.c | 2 | ||||
-rw-r--r-- | set_q.c | 2 | ||||
-rw-r--r-- | set_rnd.c | 2 | ||||
-rw-r--r-- | set_si.c | 2 | ||||
-rw-r--r-- | set_str.c | 2 | ||||
-rw-r--r-- | set_str_raw.c | 2 | ||||
-rw-r--r-- | set_z.c | 2 | ||||
-rw-r--r-- | sin_cos.c | 2 | ||||
-rw-r--r-- | sqrt.c | 2 | ||||
-rw-r--r-- | sub.c | 2 | ||||
-rw-r--r-- | sub_ui.c | 2 | ||||
-rw-r--r-- | swap.c | 2 | ||||
-rw-r--r-- | trunc.c | 2 | ||||
-rw-r--r-- | ui_div.c | 2 | ||||
-rw-r--r-- | ui_sub.c | 2 | ||||
-rw-r--r-- | urandomb.c | 2 | ||||
-rw-r--r-- | zeta.c | 2 |
55 files changed, 59 insertions, 55 deletions
@@ -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; @@ -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 @@ -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; @@ -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__ @@ -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 @@ -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, @@ -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__ @@ -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 */ @@ -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__ @@ -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__ @@ -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 */ @@ -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*); @@ -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 */ @@ -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 @@ -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 @@ -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__ @@ -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__ @@ -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 : @@ -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 */ @@ -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__ @@ -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__ @@ -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__ @@ -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__ @@ -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__ @@ -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 */ @@ -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. */ @@ -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 @@ -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" @@ -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__ @@ -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; @@ -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__ @@ -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 @@ -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; @@ -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__ @@ -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 @@ -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 @@ -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 @@ -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 */ @@ -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 */ @@ -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; @@ -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__ @@ -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 @@ -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; @@ -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__ @@ -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__ |