summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortege <tege@gmplib.org>2001-01-02 09:12:08 +0100
committertege <tege@gmplib.org>2001-01-02 09:12:08 +0100
commit60a9f27e51047aa71f2cd7c63ab2fe9a298ca70b (patch)
tree71273e7a23cbfab82e334655eede8b0a7abc4692
parent3cda1e9cd20d980654d20732a3e0c59362e921a2 (diff)
downloadgmp-60a9f27e51047aa71f2cd7c63ab2fe9a298ca70b.tar.gz
Remove K&R function headers.
-rw-r--r--mpz/abs.c8
-rw-r--r--mpz/addmul_ui.c15
-rw-r--r--mpz/and.c9
-rw-r--r--mpz/array_init.c9
-rw-r--r--mpz/bin_ui.c9
-rw-r--r--mpz/bin_uiui.c9
-rw-r--r--mpz/cdiv_q.c9
-rw-r--r--mpz/cdiv_q_ui.c9
-rw-r--r--mpz/cdiv_qr.c10
-rw-r--r--mpz/cdiv_qr_ui.c10
-rw-r--r--mpz/cdiv_r.c9
-rw-r--r--mpz/cdiv_r_ui.c9
-rw-r--r--mpz/cdiv_ui.c8
-rw-r--r--mpz/clear.c7
-rw-r--r--mpz/clrbit.c8
-rw-r--r--mpz/cmp.c17
-rw-r--r--mpz/cmp_si.c8
-rw-r--r--mpz/cmp_ui.c8
-rw-r--r--mpz/cmpabs.c8
-rw-r--r--mpz/cmpabs_ui.c8
-rw-r--r--mpz/com.c8
-rw-r--r--mpz/divexact.c9
-rw-r--r--mpz/dump.c7
-rw-r--r--mpz/fdiv_q.c9
-rw-r--r--mpz/fdiv_q_2exp.c9
-rw-r--r--mpz/fdiv_q_ui.c9
-rw-r--r--mpz/fdiv_qr.c10
-rw-r--r--mpz/fdiv_qr_ui.c10
-rw-r--r--mpz/fdiv_r.c9
-rw-r--r--mpz/fdiv_r_2exp.c9
-rw-r--r--mpz/fdiv_r_ui.c9
-rw-r--r--mpz/fdiv_ui.c8
-rw-r--r--mpz/gcd.c20
-rw-r--r--mpz/gcd_ui.c9
-rw-r--r--mpz/gcdext.c11
-rw-r--r--mpz/get_d.c7
-rw-r--r--mpz/get_si.c7
-rw-r--r--mpz/get_str.c9
-rw-r--r--mpz/get_ui.c7
-rw-r--r--mpz/getlimbn.c8
-rw-r--r--mpz/hamdist.c8
-rw-r--r--mpz/init.c7
-rw-r--r--mpz/inp_raw.c8
-rw-r--r--mpz/inp_str.c16
-rw-r--r--mpz/invert.c8
-rw-r--r--mpz/ior.c9
-rw-r--r--mpz/iset.c8
-rw-r--r--mpz/iset_d.c8
-rw-r--r--mpz/iset_si.c8
-rw-r--r--mpz/iset_str.c9
-rw-r--r--mpz/iset_ui.c8
-rw-r--r--mpz/jacobi.c7
-rw-r--r--mpz/kronsz.c8
-rw-r--r--mpz/kronuz.c8
-rw-r--r--mpz/kronzs.c8
-rw-r--r--mpz/kronzu.c8
-rw-r--r--mpz/lcm.c9
-rw-r--r--mpz/legendre.c7
-rw-r--r--mpz/mod.c9
-rw-r--r--mpz/mul.c19
-rw-r--r--mpz/mul_2exp.c9
-rw-r--r--mpz/mul_siui.c9
-rw-r--r--mpz/neg.c8
-rw-r--r--mpz/nextprime.c14
-rw-r--r--mpz/out_raw.c8
-rw-r--r--mpz/out_str.c9
-rw-r--r--mpz/perfpow.c17
-rw-r--r--mpz/perfsqr.c7
-rw-r--r--mpz/popcount.c7
-rw-r--r--mpz/pow_ui.c20
-rw-r--r--mpz/powm.c23
-rw-r--r--mpz/powm_ui.c10
-rw-r--r--mpz/pprime_p.c29
-rw-r--r--mpz/random.c8
-rw-r--r--mpz/random2.c8
-rw-r--r--mpz/realloc.c8
-rw-r--r--mpz/remove.c9
-rw-r--r--mpz/root.c9
-rw-r--r--mpz/rrandomb.c16
-rw-r--r--mpz/scan0.c8
-rw-r--r--mpz/scan1.c8
-rw-r--r--mpz/set_d.c8
-rw-r--r--mpz/set_f.c8
-rw-r--r--mpz/set_q.c8
-rw-r--r--mpz/set_si.c8
-rw-r--r--mpz/set_str.c15
-rw-r--r--mpz/set_ui.c8
-rw-r--r--mpz/setbit.c8
-rw-r--r--mpz/size.c7
-rw-r--r--mpz/sizeinbase.c8
-rw-r--r--mpz/sqrt.c8
-rw-r--r--mpz/sqrtrem.c19
-rw-r--r--mpz/swap.c8
-rw-r--r--mpz/tdiv_q.c9
-rw-r--r--mpz/tdiv_q_2exp.c9
-rw-r--r--mpz/tdiv_q_ui.c9
-rw-r--r--mpz/tdiv_qr.c26
-rw-r--r--mpz/tdiv_qr_ui.c10
-rw-r--r--mpz/tdiv_r.c9
-rw-r--r--mpz/tdiv_r_2exp.c9
-rw-r--r--mpz/tdiv_r_ui.c9
-rw-r--r--mpz/tdiv_ui.c8
-rw-r--r--mpz/ui_pow_ui.c17
-rw-r--r--mpz/xor.c9
104 files changed, 114 insertions, 918 deletions
diff --git a/mpz/abs.c b/mpz/abs.c
index 3ce24ce93..df1fdd84f 100644
--- a/mpz/abs.c
+++ b/mpz/abs.c
@@ -1,6 +1,6 @@
/* mpz_abs(dst, src) -- Assign the absolute value of SRC to DST.
-Copyright 1991, 1993, 1994, 1995 Free Software Foundation, Inc.
+Copyright 1991, 1993, 1994, 1995, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -23,13 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpz_abs (mpz_ptr w, mpz_srcptr u)
-#else
-mpz_abs (w, u)
- mpz_ptr w;
- mpz_srcptr u;
-#endif
{
mp_ptr wp, up;
mp_size_t size;
diff --git a/mpz/addmul_ui.c b/mpz/addmul_ui.c
index ef145e30e..ad7ba0763 100644
--- a/mpz/addmul_ui.c
+++ b/mpz/addmul_ui.c
@@ -1,7 +1,7 @@
/* mpz_addmul_ui(prodsum, multiplier, small_multiplicand) --
Add MULTIPLICATOR times SMALL_MULTIPLICAND to PRODSUM.
-Copyright 1997, 2000 Free Software Foundation, Inc.
+Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -43,14 +43,7 @@ static mp_limb_t mpn_neg1 _PROTO ((mp_ptr, mp_size_t));
#endif
void
-#if __STDC__
mpz_addmul_ui (mpz_ptr rz, mpz_srcptr az, unsigned long int bu)
-#else
-mpz_addmul_ui (rz, az, bu)
- mpz_ptr rz;
- mpz_srcptr az;
- unsigned long int bu;
-#endif
{
mp_size_t rn, an;
mp_ptr rp, ap;
@@ -190,13 +183,7 @@ mpz_addmul_ui (rz, az, bu)
}
static mp_limb_t
-#if __STDC__
mpn_neg1 (mp_ptr rp, mp_size_t rn)
-#else
-mpn_neg1 (rp, rn)
- mp_ptr rp;
- mp_size_t rn;
-#endif
{
mp_size_t i;
diff --git a/mpz/and.c b/mpz/and.c
index e514f6090..1e911e3a9 100644
--- a/mpz/and.c
+++ b/mpz/and.c
@@ -1,6 +1,6 @@
/* mpz_and -- Logical and.
-Copyright 1991, 1993, 1994, 1996, 1997, 2000 Free Software Foundation,
+Copyright 1991, 1993, 1994, 1996, 1997, 2000, 2001 Free Software Foundation,
Inc.
This file is part of the GNU MP Library.
@@ -24,14 +24,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpz_and (mpz_ptr res, mpz_srcptr op1, mpz_srcptr op2)
-#else
-mpz_and (res, op1, op2)
- mpz_ptr res;
- mpz_srcptr op1;
- mpz_srcptr op2;
-#endif
{
mp_srcptr op1_ptr, op2_ptr;
mp_size_t op1_size, op2_size;
diff --git a/mpz/array_init.c b/mpz/array_init.c
index 2d2311ede..65448f614 100644
--- a/mpz/array_init.c
+++ b/mpz/array_init.c
@@ -1,6 +1,6 @@
/* mpz_array_init (array, array_size, size_per_elem) --
-Copyright 1991, 1993, 1994, 1995, 2000 Free Software Foundation, Inc.
+Copyright 1991, 1993, 1994, 1995, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -23,14 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpz_array_init (mpz_ptr arr, mp_size_t arr_size, mp_size_t nbits)
-#else
-mpz_array_init (arr, arr_size, nbits)
- mpz_ptr arr;
- mp_size_t arr_size;
- mp_size_t nbits;
-#endif
{
register mp_ptr p;
register size_t i;
diff --git a/mpz/bin_ui.c b/mpz/bin_ui.c
index bb591d523..71ab7c5e7 100644
--- a/mpz/bin_ui.c
+++ b/mpz/bin_ui.c
@@ -1,6 +1,6 @@
/* mpz_bin_uiui - compute n over k.
-Copyright 1998, 1999, 2000 Free Software Foundation, Inc.
+Copyright 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -40,14 +40,7 @@ MA 02111-1307, USA. */
SIZ(r) -= (PTR(r)[SIZ(r)-1] == 0);
void
-#if __STDC__
mpz_bin_ui (mpz_ptr r, mpz_srcptr n, unsigned long int k)
-#else
-mpz_bin_ui (r, n, k)
- mpz_ptr r;
- mpz_srcptr n;
- unsigned long int k;
-#endif
{
mpz_t ni;
mp_limb_t i;
diff --git a/mpz/bin_uiui.c b/mpz/bin_uiui.c
index 5cc0e20b3..d6940c167 100644
--- a/mpz/bin_uiui.c
+++ b/mpz/bin_uiui.c
@@ -1,6 +1,6 @@
/* mpz_bin_uiui - compute n over k.
-Copyright 1998, 1999, 2000 Free Software Foundation, Inc.
+Copyright 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -36,14 +36,7 @@ MA 02111-1307, USA. */
SIZ(r) += (PTR(r)[SIZ(r)] != 0);
void
-#if __STDC__
mpz_bin_uiui (mpz_ptr r, unsigned long int n, unsigned long int k)
-#else
-mpz_bin_uiui (r, n, k)
- mpz_ptr r;
- unsigned long int n;
- unsigned long int k;
-#endif
{
unsigned long int i, j;
mp_limb_t nacc, kacc;
diff --git a/mpz/cdiv_q.c b/mpz/cdiv_q.c
index a43d4a5e5..3f71e56bb 100644
--- a/mpz/cdiv_q.c
+++ b/mpz/cdiv_q.c
@@ -1,7 +1,7 @@
/* mpz_cdiv_q -- Division rounding the quotient towards +infinity. The
remainder gets the opposite sign as the denominator.
-Copyright 1994, 1995, 1996, 2000 Free Software Foundation, Inc.
+Copyright 1994, 1995, 1996, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -24,14 +24,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpz_cdiv_q (mpz_ptr quot, mpz_srcptr dividend, mpz_srcptr divisor)
-#else
-mpz_cdiv_q (quot, dividend, divisor)
- mpz_ptr quot;
- mpz_srcptr dividend;
- mpz_srcptr divisor;
-#endif
{
mp_size_t dividend_size = dividend->_mp_size;
mp_size_t divisor_size = divisor->_mp_size;
diff --git a/mpz/cdiv_q_ui.c b/mpz/cdiv_q_ui.c
index 42a6b21f3..695e341ca 100644
--- a/mpz/cdiv_q_ui.c
+++ b/mpz/cdiv_q_ui.c
@@ -3,7 +3,7 @@
always fit into the return type, the negative of the true remainder is
returned.
-Copyright 1994, 1996, 1999 Free Software Foundation, Inc.
+Copyright 1994, 1996, 1999, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -26,14 +26,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
unsigned long int
-#if __STDC__
mpz_cdiv_q_ui (mpz_ptr quot, mpz_srcptr dividend, unsigned long int divisor)
-#else
-mpz_cdiv_q_ui (quot, dividend, divisor)
- mpz_ptr quot;
- mpz_srcptr dividend;
- unsigned long int divisor;
-#endif
{
mp_size_t dividend_size;
mp_size_t size;
diff --git a/mpz/cdiv_qr.c b/mpz/cdiv_qr.c
index 803ea7abd..eacd75480 100644
--- a/mpz/cdiv_qr.c
+++ b/mpz/cdiv_qr.c
@@ -1,7 +1,7 @@
/* mpz_cdiv_qr -- Division rounding the quotient towards +infinity. The
remainder gets the opposite sign as the denominator.
-Copyright 1994, 1995, 1996, 2000 Free Software Foundation, Inc.
+Copyright 1994, 1995, 1996, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -24,15 +24,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpz_cdiv_qr (mpz_ptr quot, mpz_ptr rem, mpz_srcptr dividend, mpz_srcptr divisor)
-#else
-mpz_cdiv_qr (quot, rem, dividend, divisor)
- mpz_ptr quot;
- mpz_ptr rem;
- mpz_srcptr dividend;
- mpz_srcptr divisor;
-#endif
{
mp_size_t divisor_size = divisor->_mp_size;
mp_size_t xsize;
diff --git a/mpz/cdiv_qr_ui.c b/mpz/cdiv_qr_ui.c
index 06149b75e..108614ddf 100644
--- a/mpz/cdiv_qr_ui.c
+++ b/mpz/cdiv_qr_ui.c
@@ -3,7 +3,7 @@
always fit into the return type, the negative of the true remainder is
returned.
-Copyright 1994, 1995, 1996, 1999 Free Software Foundation, Inc.
+Copyright 1994, 1995, 1996, 1999, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -26,15 +26,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
unsigned long int
-#if __STDC__
mpz_cdiv_qr_ui (mpz_ptr quot, mpz_ptr rem, mpz_srcptr dividend, unsigned long int divisor)
-#else
-mpz_cdiv_qr_ui (quot, rem, dividend, divisor)
- mpz_ptr quot;
- mpz_ptr rem;
- mpz_srcptr dividend;
- unsigned long int divisor;
-#endif
{
mp_size_t dividend_size;
mp_size_t size;
diff --git a/mpz/cdiv_r.c b/mpz/cdiv_r.c
index f9d416499..37e974a5a 100644
--- a/mpz/cdiv_r.c
+++ b/mpz/cdiv_r.c
@@ -1,7 +1,7 @@
/* mpz_cdiv_r -- Division rounding the quotient towards +infinity. The
remainder gets the opposite sign as the denominator.
-Copyright 1994, 1995, 1996 Free Software Foundation, Inc.
+Copyright 1994, 1995, 1996, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -24,14 +24,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpz_cdiv_r (mpz_ptr rem, mpz_srcptr dividend, mpz_srcptr divisor)
-#else
-mpz_cdiv_r (rem, dividend, divisor)
- mpz_ptr rem;
- mpz_srcptr dividend;
- mpz_srcptr divisor;
-#endif
{
mp_size_t divisor_size = divisor->_mp_size;
mpz_t temp_divisor; /* N.B.: lives until function returns! */
diff --git a/mpz/cdiv_r_ui.c b/mpz/cdiv_r_ui.c
index 53a79be58..9b6ee14c3 100644
--- a/mpz/cdiv_r_ui.c
+++ b/mpz/cdiv_r_ui.c
@@ -3,7 +3,7 @@
always fit into the return type, the negative of the true remainder is
returned.
-Copyright 1994, 1995, 1996 Free Software Foundation, Inc.
+Copyright 1994, 1995, 1996, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -26,14 +26,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
unsigned long int
-#if __STDC__
mpz_cdiv_r_ui (mpz_ptr rem, mpz_srcptr dividend, unsigned long int divisor)
-#else
-mpz_cdiv_r_ui (rem, dividend, divisor)
- mpz_ptr rem;
- mpz_srcptr dividend;
- unsigned long int divisor;
-#endif
{
mp_size_t dividend_size;
mp_size_t size;
diff --git a/mpz/cdiv_ui.c b/mpz/cdiv_ui.c
index 788f62935..41b149501 100644
--- a/mpz/cdiv_ui.c
+++ b/mpz/cdiv_ui.c
@@ -3,7 +3,7 @@
always fit into the return type, the negative of the true remainder is
returned.
-Copyright 1994, 1995, 1996 Free Software Foundation, Inc.
+Copyright 1994, 1995, 1996, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -26,13 +26,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
unsigned long int
-#if __STDC__
mpz_cdiv_ui (mpz_srcptr dividend, unsigned long int divisor)
-#else
-mpz_cdiv_ui (dividend, divisor)
- mpz_srcptr dividend;
- unsigned long int divisor;
-#endif
{
mp_size_t dividend_size;
mp_size_t size;
diff --git a/mpz/clear.c b/mpz/clear.c
index 7be27917d..2f40ddd79 100644
--- a/mpz/clear.c
+++ b/mpz/clear.c
@@ -1,7 +1,7 @@
/* mpz_clear -- de-allocate the space occupied by the dynamic digit space of
an integer.
-Copyright 1991, 1993, 1994, 1995, 2000 Free Software Foundation, Inc.
+Copyright 1991, 1993, 1994, 1995, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -24,12 +24,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpz_clear (mpz_ptr m)
-#else
-mpz_clear (m)
- mpz_ptr m;
-#endif
{
(*__gmp_free_func) (m->_mp_d, m->_mp_alloc * BYTES_PER_MP_LIMB);
}
diff --git a/mpz/clrbit.c b/mpz/clrbit.c
index c63664116..9e901ce14 100644
--- a/mpz/clrbit.c
+++ b/mpz/clrbit.c
@@ -1,6 +1,6 @@
/* mpz_clrbit -- clear a specified bit.
-Copyright 1991, 1993, 1994, 1995 Free Software Foundation, Inc.
+Copyright 1991, 1993, 1994, 1995, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -23,13 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpz_clrbit (mpz_ptr d, unsigned long int bit_index)
-#else
-mpz_clrbit (d, bit_index)
- mpz_ptr d;
- unsigned long int bit_index;
-#endif
{
mp_size_t dsize = d->_mp_size;
mp_ptr dp = d->_mp_d;
diff --git a/mpz/cmp.c b/mpz/cmp.c
index 7c5a64fe6..eaddb36b5 100644
--- a/mpz/cmp.c
+++ b/mpz/cmp.c
@@ -1,7 +1,7 @@
/* mpz_cmp(u,v) -- Compare U, V. Return postive, zero, or negative
based on if U > V, U == V, or U < V.
-Copyright 1991, 1993, 1994, 1996 Free Software Foundation, Inc.
+Copyright 1991, 1993, 1994, 1996, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -26,24 +26,11 @@ MA 02111-1307, USA. */
#include "gmp.h"
#include "gmp-impl.h"
-#ifndef BERKELEY_MP
int
-#if __STDC__
+#ifndef BERKELEY_MP
mpz_cmp (mpz_srcptr u, mpz_srcptr v)
-#else
-mpz_cmp (u, v)
- mpz_srcptr u;
- mpz_srcptr v;
-#endif
#else /* BERKELEY_MP */
-int
-#if __STDC__
mcmp (mpz_srcptr u, mpz_srcptr v)
-#else
-mcmp (u, v)
- mpz_srcptr u;
- mpz_srcptr v;
-#endif
#endif /* BERKELEY_MP */
{
mp_size_t usize = u->_mp_size;
diff --git a/mpz/cmp_si.c b/mpz/cmp_si.c
index 9cedd3822..8d1728bc0 100644
--- a/mpz/cmp_si.c
+++ b/mpz/cmp_si.c
@@ -1,7 +1,7 @@
/* mpz_cmp_si(u,v) -- Compare an integer U with a single-word int V.
Return positive, zero, or negative based on if U > V, U == V, or U < V.
-Copyright 1991, 1993, 1994, 1995, 1996, 2000 Free Software Foundation,
+Copyright 1991, 1993, 1994, 1995, 1996, 2000, 2001 Free Software Foundation,
Inc.
This file is part of the GNU MP Library.
@@ -25,13 +25,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
int
-#if __STDC__
_mpz_cmp_si (mpz_srcptr u, signed long int v_digit)
-#else
-_mpz_cmp_si (u, v_digit)
- mpz_srcptr u;
- signed long int v_digit;
-#endif
{
mp_size_t usize = u->_mp_size;
mp_size_t vsize;
diff --git a/mpz/cmp_ui.c b/mpz/cmp_ui.c
index e8703a2aa..2c289a319 100644
--- a/mpz/cmp_ui.c
+++ b/mpz/cmp_ui.c
@@ -1,7 +1,7 @@
/* mpz_cmp_ui.c -- Compare a mpz_t a with an mp_limb_t b. Return positive,
zero, or negative based on if a > b, a == b, or a < b.
-Copyright 1991, 1993, 1994, 1995, 1996 Free Software Foundation, Inc.
+Copyright 1991, 1993, 1994, 1995, 1996, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -24,13 +24,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
int
-#if __STDC__
_mpz_cmp_ui (mpz_srcptr u, unsigned long int v_digit)
-#else
-_mpz_cmp_ui (u, v_digit)
- mpz_srcptr u;
- unsigned long int v_digit;
-#endif
{
mp_size_t usize = u->_mp_size;
diff --git a/mpz/cmpabs.c b/mpz/cmpabs.c
index fcdbbf1fe..03b3be9f2 100644
--- a/mpz/cmpabs.c
+++ b/mpz/cmpabs.c
@@ -1,7 +1,7 @@
/* mpz_cmpabs(u,v) -- Compare U, V. Return postive, zero, or negative
based on if U > V, U == V, or U < V.
-Copyright 1991, 1993, 1994, 1996, 1997, 2000 Free Software Foundation,
+Copyright 1991, 1993, 1994, 1996, 1997, 2000, 2001 Free Software Foundation,
Inc.
This file is part of the GNU MP Library.
@@ -25,13 +25,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
int
-#if __STDC__
mpz_cmpabs (mpz_srcptr u, mpz_srcptr v)
-#else
-mpz_cmpabs (u, v)
- mpz_srcptr u;
- mpz_srcptr v;
-#endif
{
mp_size_t usize = u->_mp_size;
mp_size_t vsize = v->_mp_size;
diff --git a/mpz/cmpabs_ui.c b/mpz/cmpabs_ui.c
index b4b0fabda..44316d455 100644
--- a/mpz/cmpabs_ui.c
+++ b/mpz/cmpabs_ui.c
@@ -1,7 +1,7 @@
/* mpz_cmpabs_ui.c -- Compare a mpz_t a with an mp_limb_t b. Return positive,
zero, or negative based on if a > b, a == b, or a < b.
-Copyright 1991, 1993, 1994, 1995, 1997, 2000 Free Software Foundation,
+Copyright 1991, 1993, 1994, 1995, 1997, 2000, 2001 Free Software Foundation,
Inc.
This file is part of the GNU MP Library.
@@ -25,13 +25,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
int
-#if __STDC__
mpz_cmpabs_ui (mpz_srcptr u, unsigned long int v_digit)
-#else
-mpz_cmpabs_ui (u, v_digit)
- mpz_srcptr u;
- unsigned long int v_digit;
-#endif
{
mp_size_t usize = u->_mp_size;
diff --git a/mpz/com.c b/mpz/com.c
index c179f5316..8534303e6 100644
--- a/mpz/com.c
+++ b/mpz/com.c
@@ -1,7 +1,7 @@
/* mpz_com(mpz_ptr dst, mpz_ptr src) -- Assign the bit-complemented value of
SRC to DST.
-Copyright 1991, 1993, 1994, 1996 Free Software Foundation, Inc.
+Copyright 1991, 1993, 1994, 1996, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -24,13 +24,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpz_com (mpz_ptr dst, mpz_srcptr src)
-#else
-mpz_com (dst, src)
- mpz_ptr dst;
- mpz_srcptr src;
-#endif
{
mp_size_t size = src->_mp_size;
mp_srcptr src_ptr;
diff --git a/mpz/divexact.c b/mpz/divexact.c
index 953811b85..a586b6d79 100644
--- a/mpz/divexact.c
+++ b/mpz/divexact.c
@@ -1,6 +1,6 @@
/* mpz_divexact -- finds quotient when known that quot * den == num && den != 0.
-Copyright 1991, 1993, 1994, 1995, 1996, 1997, 1998, 2000 Free Software
+Copyright 1991, 1993, 1994, 1995, 1996, 1997, 1998, 2000, 2001 Free Software
Foundation, Inc.
This file is part of the GNU MP Library.
@@ -36,14 +36,7 @@ MA 02111-1307, USA. */
#include "longlong.h"
void
-#if __STDC__
mpz_divexact (mpz_ptr quot, mpz_srcptr num, mpz_srcptr den)
-#else
-mpz_divexact (quot, num, den)
- mpz_ptr quot;
- mpz_srcptr num;
- mpz_srcptr den;
-#endif
{
mp_ptr qp, tp;
mp_size_t qsize, tsize;
diff --git a/mpz/dump.c b/mpz/dump.c
index 096483a34..2502fa4cf 100644
--- a/mpz/dump.c
+++ b/mpz/dump.c
@@ -5,7 +5,7 @@
FUNCTION WILL CHANGE OR DISAPPEAR IN A FUTURE GNU MP RELEASE.
-Copyright 1999, 2000 Free Software Foundation, Inc.
+Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -29,12 +29,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpz_dump (mpz_srcptr u)
-#else
-mpz_dump (u)
- mpz_srcptr u;
-#endif
{
char *str;
diff --git a/mpz/fdiv_q.c b/mpz/fdiv_q.c
index 4241c19ae..73d2cee56 100644
--- a/mpz/fdiv_q.c
+++ b/mpz/fdiv_q.c
@@ -1,7 +1,7 @@
/* mpz_fdiv_q -- Division rounding the quotient towards -infinity.
The remainder gets the same sign as the denominator.
-Copyright 1994, 1995, 1996, 2000 Free Software Foundation, Inc.
+Copyright 1994, 1995, 1996, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -24,14 +24,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpz_fdiv_q (mpz_ptr quot, mpz_srcptr dividend, mpz_srcptr divisor)
-#else
-mpz_fdiv_q (quot, dividend, divisor)
- mpz_ptr quot;
- mpz_srcptr dividend;
- mpz_srcptr divisor;
-#endif
{
mp_size_t dividend_size = dividend->_mp_size;
mp_size_t divisor_size = divisor->_mp_size;
diff --git a/mpz/fdiv_q_2exp.c b/mpz/fdiv_q_2exp.c
index b2056c179..f97be1c55 100644
--- a/mpz/fdiv_q_2exp.c
+++ b/mpz/fdiv_q_2exp.c
@@ -1,7 +1,7 @@
/* mpz_fdiv_q_2exp -- Divide an integer by 2**CNT. Round the quotient
towards -infinity.
-Copyright 1991, 1993, 1994, 1996, 1998, 1999 Free Software Foundation,
+Copyright 1991, 1993, 1994, 1996, 1998, 1999, 2001 Free Software Foundation,
Inc.
This file is part of the GNU MP Library.
@@ -25,14 +25,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpz_fdiv_q_2exp (mpz_ptr w, mpz_srcptr u, unsigned long int cnt)
-#else
-mpz_fdiv_q_2exp (w, u, cnt)
- mpz_ptr w;
- mpz_srcptr u;
- unsigned long int cnt;
-#endif
{
mp_size_t usize = u->_mp_size;
mp_size_t wsize;
diff --git a/mpz/fdiv_q_ui.c b/mpz/fdiv_q_ui.c
index a2c9e59a2..2ce989b80 100644
--- a/mpz/fdiv_q_ui.c
+++ b/mpz/fdiv_q_ui.c
@@ -1,7 +1,7 @@
/* mpz_fdiv_q_ui -- Division rounding the quotient towards -infinity.
The remainder gets the same sign as the denominator.
-Copyright 1994, 1995, 1996, 1999 Free Software Foundation, Inc.
+Copyright 1994, 1995, 1996, 1999, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -24,14 +24,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
unsigned long int
-#if __STDC__
mpz_fdiv_q_ui (mpz_ptr quot, mpz_srcptr dividend, unsigned long int divisor)
-#else
-mpz_fdiv_q_ui (quot, dividend, divisor)
- mpz_ptr quot;
- mpz_srcptr dividend;
- unsigned long int divisor;
-#endif
{
mp_size_t dividend_size;
mp_size_t size;
diff --git a/mpz/fdiv_qr.c b/mpz/fdiv_qr.c
index a78ef9a70..6cbd65ee8 100644
--- a/mpz/fdiv_qr.c
+++ b/mpz/fdiv_qr.c
@@ -1,7 +1,7 @@
/* mpz_fdiv_qr -- Division rounding the quotient towards -infinity.
The remainder gets the same sign as the denominator.
-Copyright 1994, 1995, 1996, 2000 Free Software Foundation, Inc.
+Copyright 1994, 1995, 1996, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -24,15 +24,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpz_fdiv_qr (mpz_ptr quot, mpz_ptr rem, mpz_srcptr dividend, mpz_srcptr divisor)
-#else
-mpz_fdiv_qr (quot, rem, dividend, divisor)
- mpz_ptr quot;
- mpz_ptr rem;
- mpz_srcptr dividend;
- mpz_srcptr divisor;
-#endif
{
mp_size_t divisor_size = divisor->_mp_size;
mp_size_t xsize;
diff --git a/mpz/fdiv_qr_ui.c b/mpz/fdiv_qr_ui.c
index 9d7d5bfb8..7d26ec6de 100644
--- a/mpz/fdiv_qr_ui.c
+++ b/mpz/fdiv_qr_ui.c
@@ -1,7 +1,7 @@
/* mpz_fdiv_qr_ui -- Division rounding the quotient towards -infinity.
The remainder gets the same sign as the denominator.
-Copyright 1994, 1995, 1996, 1999 Free Software Foundation, Inc.
+Copyright 1994, 1995, 1996, 1999, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -24,15 +24,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
unsigned long int
-#if __STDC__
mpz_fdiv_qr_ui (mpz_ptr quot, mpz_ptr rem, mpz_srcptr dividend, unsigned long int divisor)
-#else
-mpz_fdiv_qr_ui (quot, rem, dividend, divisor)
- mpz_ptr quot;
- mpz_ptr rem;
- mpz_srcptr dividend;
- unsigned long int divisor;
-#endif
{
mp_size_t dividend_size;
mp_size_t size;
diff --git a/mpz/fdiv_r.c b/mpz/fdiv_r.c
index 3f1178202..a1ecc786f 100644
--- a/mpz/fdiv_r.c
+++ b/mpz/fdiv_r.c
@@ -1,7 +1,7 @@
/* mpz_fdiv_r -- Division rounding the quotient towards -infinity.
The remainder gets the same sign as the denominator.
-Copyright 1994, 1995, 1996 Free Software Foundation, Inc.
+Copyright 1994, 1995, 1996, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -24,14 +24,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpz_fdiv_r (mpz_ptr rem, mpz_srcptr dividend, mpz_srcptr divisor)
-#else
-mpz_fdiv_r (rem, dividend, divisor)
- mpz_ptr rem;
- mpz_srcptr dividend;
- mpz_srcptr divisor;
-#endif
{
mp_size_t divisor_size = divisor->_mp_size;
mpz_t temp_divisor; /* N.B.: lives until function returns! */
diff --git a/mpz/fdiv_r_2exp.c b/mpz/fdiv_r_2exp.c
index 249d03299..26b3e05a9 100644
--- a/mpz/fdiv_r_2exp.c
+++ b/mpz/fdiv_r_2exp.c
@@ -1,6 +1,6 @@
/* mpz_fdiv_r_2exp -- Divide a integer by 2**CNT and produce a remainder.
-Copyright 1991, 1993, 1994, 1995, 1998, 1999, 2000 Free Software
+Copyright 1991, 1993, 1994, 1995, 1998, 1999, 2000, 2001 Free Software
Foundation, Inc.
This file is part of the GNU MP Library.
@@ -24,14 +24,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpz_fdiv_r_2exp (mpz_ptr res, mpz_srcptr in, unsigned long int cnt)
-#else
-mpz_fdiv_r_2exp (res, in, cnt)
- mpz_ptr res;
- mpz_srcptr in;
- unsigned long int cnt;
-#endif
{
mp_size_t in_size = ABS (in->_mp_size);
mp_size_t res_size;
diff --git a/mpz/fdiv_r_ui.c b/mpz/fdiv_r_ui.c
index 5b553b0ed..38b60a7c5 100644
--- a/mpz/fdiv_r_ui.c
+++ b/mpz/fdiv_r_ui.c
@@ -1,7 +1,7 @@
/* mpz_fdiv_r_ui -- Division rounding the quotient towards -infinity.
The remainder gets the same sign as the denominator.
-Copyright 1994, 1995, 1996 Free Software Foundation, Inc.
+Copyright 1994, 1995, 1996, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -24,14 +24,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
unsigned long int
-#if __STDC__
mpz_fdiv_r_ui (mpz_ptr rem, mpz_srcptr dividend, unsigned long int divisor)
-#else
-mpz_fdiv_r_ui (rem, dividend, divisor)
- mpz_ptr rem;
- mpz_srcptr dividend;
- unsigned long int divisor;
-#endif
{
mp_size_t dividend_size;
mp_size_t size;
diff --git a/mpz/fdiv_ui.c b/mpz/fdiv_ui.c
index 7b5864e38..e73cd4554 100644
--- a/mpz/fdiv_ui.c
+++ b/mpz/fdiv_ui.c
@@ -1,7 +1,7 @@
/* mpz_fdiv_ui -- Division rounding the quotient towards -infinity.
The remainder gets the same sign as the denominator.
-Copyright 1994, 1995, 1996 Free Software Foundation, Inc.
+Copyright 1994, 1995, 1996, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -24,13 +24,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
unsigned long int
-#if __STDC__
mpz_fdiv_ui (mpz_srcptr dividend, unsigned long int divisor)
-#else
-mpz_fdiv_ui (dividend, divisor)
- mpz_srcptr dividend;
- unsigned long int divisor;
-#endif
{
mp_size_t dividend_size;
mp_size_t size;
diff --git a/mpz/gcd.c b/mpz/gcd.c
index c8be348c5..c0d309773 100644
--- a/mpz/gcd.c
+++ b/mpz/gcd.c
@@ -1,6 +1,6 @@
/* mpz/gcd.c: Calculate the greatest common divisor of two integers.
-Copyright 1991, 1993, 1994, 1996, 2000 Free Software Foundation, Inc.
+Copyright 1991, 1993, 1994, 1996, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -27,28 +27,12 @@ MA 02111-1307, USA. */
#endif
-#ifndef BERKELEY_MP
void
-#if __STDC__
+#ifndef BERKELEY_MP
mpz_gcd (mpz_ptr g, mpz_srcptr u, mpz_srcptr v)
-#else
-mpz_gcd (g, u, v)
- mpz_ptr g;
- mpz_srcptr u;
- mpz_srcptr v;
-#endif
#else /* BERKELEY_MP */
-void
-#if __STDC__
gcd (mpz_srcptr u, mpz_srcptr v, mpz_ptr g)
-#else
-gcd (u, v, g)
- mpz_ptr g;
- mpz_srcptr u;
- mpz_srcptr v;
-#endif
#endif /* BERKELEY_MP */
-
{
unsigned long int g_zero_bits, u_zero_bits, v_zero_bits;
mp_size_t g_zero_limbs, u_zero_limbs, v_zero_limbs;
diff --git a/mpz/gcd_ui.c b/mpz/gcd_ui.c
index c35b7e63a..f8de5a235 100644
--- a/mpz/gcd_ui.c
+++ b/mpz/gcd_ui.c
@@ -1,6 +1,6 @@
/* mpz_gcd_ui -- Calculate the greatest common divisior of two integers.
-Copyright 1994, 1996, 1999, 2000 Free Software Foundation, Inc.
+Copyright 1994, 1996, 1999, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -24,14 +24,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
unsigned long int
-#if __STDC__
mpz_gcd_ui (mpz_ptr w, mpz_srcptr u, unsigned long int v)
-#else
-mpz_gcd_ui (w, u, v)
- mpz_ptr w;
- mpz_srcptr u;
- unsigned long int v;
-#endif
{
mp_size_t size;
mp_limb_t res;
diff --git a/mpz/gcdext.c b/mpz/gcdext.c
index 86f9d0ca9..71f6bfc4e 100644
--- a/mpz/gcdext.c
+++ b/mpz/gcdext.c
@@ -1,7 +1,7 @@
/* mpz_gcdext(g, s, t, a, b) -- Set G to gcd(a, b), and S and T such that
g = as + bt.
-Copyright 1991, 1993, 1994, 1995, 1996, 1997, 2000 Free Software
+Copyright 1991, 1993, 1994, 1995, 1996, 1997, 2000, 2001 Free Software
Foundation, Inc.
This file is part of the GNU MP Library.
@@ -26,16 +26,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpz_gcdext (mpz_ptr g, mpz_ptr s, mpz_ptr t, mpz_srcptr a, mpz_srcptr b)
-#else
-mpz_gcdext (g, s, t, a, b)
- mpz_ptr g;
- mpz_ptr s;
- mpz_ptr t;
- mpz_srcptr a;
- mpz_srcptr b;
-#endif
{
mp_size_t asize, bsize, usize, vsize;
mp_srcptr ap, bp;
diff --git a/mpz/get_d.c b/mpz/get_d.c
index 7a69fa644..78e74c0e1 100644
--- a/mpz/get_d.c
+++ b/mpz/get_d.c
@@ -1,6 +1,6 @@
/* double mpz_get_d (mpz_t src) -- Return the double approximation to SRC.
-Copyright 1996, 1997, 2000 Free Software Foundation, Inc.
+Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -25,12 +25,7 @@ MA 02111-1307, USA. */
double
-#if __STDC__
mpz_get_d (mpz_srcptr src)
-#else
-mpz_get_d (src)
- mpz_srcptr src;
-#endif
{
double res;
mp_size_t size;
diff --git a/mpz/get_si.c b/mpz/get_si.c
index bcefeb816..7783eafb3 100644
--- a/mpz/get_si.c
+++ b/mpz/get_si.c
@@ -1,6 +1,6 @@
/* mpz_get_si(integer) -- Return the least significant digit from INTEGER.
-Copyright 1991, 1993, 1994, 1995, 2000 Free Software Foundation, Inc.
+Copyright 1991, 1993, 1994, 1995, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -23,12 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
signed long int
-#if __STDC__
mpz_get_si (mpz_srcptr op)
-#else
-mpz_get_si (op)
- mpz_srcptr op;
-#endif
{
mp_size_t size = op->_mp_size;
mp_limb_t low_limb = op->_mp_d[0];
diff --git a/mpz/get_str.c b/mpz/get_str.c
index 9b9f4ed3b..0478f9e15 100644
--- a/mpz/get_str.c
+++ b/mpz/get_str.c
@@ -4,7 +4,7 @@
result. If STRING is not NULL, the caller must ensure enough space is
available to store the result.
-Copyright 1991, 1993, 1994, 1996, 2000 Free Software Foundation, Inc.
+Copyright 1991, 1993, 1994, 1996, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -27,14 +27,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
char *
-#if __STDC__
mpz_get_str (char *res_str, int base, mpz_srcptr x)
-#else
-mpz_get_str (res_str, base, x)
- char *res_str;
- int base;
- mpz_srcptr x;
-#endif
{
mp_ptr xp;
mp_size_t x_size = x->_mp_size;
diff --git a/mpz/get_ui.c b/mpz/get_ui.c
index 8e361b536..8afc4d951 100644
--- a/mpz/get_ui.c
+++ b/mpz/get_ui.c
@@ -1,6 +1,6 @@
/* mpz_get_ui(integer) -- Return the least significant digit from INTEGER.
-Copyright 1991, 1993, 1994, 1995 Free Software Foundation, Inc.
+Copyright 1991, 1993, 1994, 1995, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -23,12 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
unsigned long int
-#if __STDC__
mpz_get_ui (mpz_srcptr integer)
-#else
-mpz_get_ui (integer)
- mpz_srcptr integer;
-#endif
{
if (integer->_mp_size == 0)
return 0;
diff --git a/mpz/getlimbn.c b/mpz/getlimbn.c
index 0c847e6b2..74166c233 100644
--- a/mpz/getlimbn.c
+++ b/mpz/getlimbn.c
@@ -1,6 +1,6 @@
/* mpz_getlimbn(integer,n) -- Return the N:th limb from INTEGER.
-Copyright 1993, 1994, 1995, 1996 Free Software Foundation, Inc.
+Copyright 1993, 1994, 1995, 1996, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -23,13 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
mp_limb_t
-#if __STDC__
mpz_getlimbn (mpz_srcptr integer, mp_size_t n)
-#else
-mpz_getlimbn (integer, n)
- mpz_srcptr integer;
- mp_size_t n;
-#endif
{
if (ABS (integer->_mp_size) <= n || n < 0)
return 0;
diff --git a/mpz/hamdist.c b/mpz/hamdist.c
index a4f223145..0227afc4c 100644
--- a/mpz/hamdist.c
+++ b/mpz/hamdist.c
@@ -3,7 +3,7 @@
could make the function well-defined when both operands are negative, but
that would probably not be worth the trouble.
-Copyright 1994, 1996 Free Software Foundation, Inc.
+Copyright 1994, 1996, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -26,13 +26,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
unsigned long int
-#if __STDC__
mpz_hamdist (mpz_srcptr u, mpz_srcptr v)
-#else
-mpz_hamdist (u, v)
- mpz_srcptr u;
- mpz_srcptr v;
-#endif
{
mp_srcptr up, vp;
mp_size_t usize, vsize, size;
diff --git a/mpz/init.c b/mpz/init.c
index 5690b03c8..b991f14a8 100644
--- a/mpz/init.c
+++ b/mpz/init.c
@@ -1,6 +1,6 @@
/* mpz_init() -- Make a new multiple precision number with value 0.
-Copyright 1991, 1993, 1994, 1995, 2000 Free Software Foundation, Inc.
+Copyright 1991, 1993, 1994, 1995, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -23,12 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpz_init (mpz_ptr x)
-#else
-mpz_init (x)
- mpz_ptr x;
-#endif
{
x->_mp_alloc = 1;
x->_mp_d = (mp_ptr) (*__gmp_allocate_func) (BYTES_PER_MP_LIMB);
diff --git a/mpz/inp_raw.c b/mpz/inp_raw.c
index 2fd37c89f..b6493453f 100644
--- a/mpz/inp_raw.c
+++ b/mpz/inp_raw.c
@@ -1,7 +1,7 @@
/* mpz_inp_raw -- Input a mpz_t in raw, but endianess, and wordsize
independent format (as output by mpz_out_raw).
-Copyright 1991, 1993, 1994, 1995 Free Software Foundation, Inc.
+Copyright 1991, 1993, 1994, 1995, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -26,13 +26,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
size_t
-#if __STDC__
mpz_inp_raw (mpz_ptr x, FILE *stream)
-#else
-mpz_inp_raw (x, stream)
- mpz_ptr x;
- FILE *stream;
-#endif
{
int i;
mp_size_t s;
diff --git a/mpz/inp_str.c b/mpz/inp_str.c
index c7eb234e3..fe3bce076 100644
--- a/mpz/inp_str.c
+++ b/mpz/inp_str.c
@@ -1,7 +1,8 @@
/* mpz_inp_str(dest_integer, stream, base) -- Input a number in base
BASE from stdio stream STREAM and store the result in DEST_INTEGER.
-Copyright 1991, 1993, 1994, 1996, 1998, 2000 Free Software Foundation, Inc.
+Copyright 1991, 1993, 1994, 1996, 1998, 2000, 2001 Free Software Foundation,
+Inc.
This file is part of the GNU MP Library.
@@ -26,13 +27,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
static int
-#if __STDC__
digit_value_in_base (int c, int base)
-#else
-digit_value_in_base (c, base)
- int c;
- int base;
-#endif
{
int digit;
@@ -51,14 +46,7 @@ digit_value_in_base (c, base)
}
size_t
-#if __STDC__
mpz_inp_str (mpz_ptr x, FILE *stream, int base)
-#else
-mpz_inp_str (x, stream, base)
- mpz_ptr x;
- FILE *stream;
- int base;
-#endif
{
char *str;
size_t alloc_size, str_size;
diff --git a/mpz/invert.c b/mpz/invert.c
index cacb9ddd7..57d92c0a4 100644
--- a/mpz/invert.c
+++ b/mpz/invert.c
@@ -2,7 +2,7 @@
If X has an inverse, return non-zero and store inverse in INVERSE,
otherwise, return 0 and put garbage in INVERSE.
-Copyright 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
+Copyright 1996, 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -25,13 +25,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
int
-#if __STDC__
mpz_invert (mpz_ptr inverse, mpz_srcptr x, mpz_srcptr n)
-#else
-mpz_invert (inverse, x, n)
- mpz_ptr inverse;
- mpz_srcptr x, n;
-#endif
{
mpz_t gcd, tmp;
mp_size_t xsize, nsize, size;
diff --git a/mpz/ior.c b/mpz/ior.c
index fc0ed6dd7..11e2194c5 100644
--- a/mpz/ior.c
+++ b/mpz/ior.c
@@ -1,6 +1,6 @@
/* mpz_ior -- Logical inclusive or.
-Copyright 1991, 1993, 1994, 1996, 1997, 2000 Free Software Foundation,
+Copyright 1991, 1993, 1994, 1996, 1997, 2000, 2001 Free Software Foundation,
Inc.
This file is part of the GNU MP Library.
@@ -24,14 +24,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpz_ior (mpz_ptr res, mpz_srcptr op1, mpz_srcptr op2)
-#else
-mpz_ior (res, op1, op2)
- mpz_ptr res;
- mpz_srcptr op1;
- mpz_srcptr op2;
-#endif
{
mp_srcptr op1_ptr, op2_ptr;
mp_size_t op1_size, op2_size;
diff --git a/mpz/iset.c b/mpz/iset.c
index 9aac6a387..ce2fcdbf9 100644
--- a/mpz/iset.c
+++ b/mpz/iset.c
@@ -1,7 +1,7 @@
/* mpz_init_set (src_integer) -- Make a new multiple precision number with
a value copied from SRC_INTEGER.
-Copyright 1991, 1993, 1994, 1996, 2000 Free Software Foundation, Inc.
+Copyright 1991, 1993, 1994, 1996, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -24,13 +24,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpz_init_set (mpz_ptr w, mpz_srcptr u)
-#else
-mpz_init_set (w, u)
- mpz_ptr w;
- mpz_srcptr u;
-#endif
{
mp_ptr wp, up;
mp_size_t usize, size;
diff --git a/mpz/iset_d.c b/mpz/iset_d.c
index 766126eff..aae677f11 100644
--- a/mpz/iset_d.c
+++ b/mpz/iset_d.c
@@ -1,7 +1,7 @@
/* mpz_init_set_d(integer, val) -- Initialize and assign INTEGER with a double
value VAL.
-Copyright 1996, 2000 Free Software Foundation, Inc.
+Copyright 1996, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -24,13 +24,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpz_init_set_d (mpz_ptr dest, double val)
-#else
-mpz_init_set_d (dest, val)
- mpz_ptr dest;
- double val;
-#endif
{
dest->_mp_alloc = 1;
dest->_mp_d = (mp_ptr) (*__gmp_allocate_func) (BYTES_PER_MP_LIMB);
diff --git a/mpz/iset_si.c b/mpz/iset_si.c
index 8d503e84e..6d2a73014 100644
--- a/mpz/iset_si.c
+++ b/mpz/iset_si.c
@@ -1,7 +1,7 @@
/* mpz_init_set_si(val) -- Make a new multiple precision number with
value val.
-Copyright 1991, 1993, 1994, 1995, 2000 Free Software Foundation, Inc.
+Copyright 1991, 1993, 1994, 1995, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -24,13 +24,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpz_init_set_si (mpz_ptr x, signed long int val)
-#else
-mpz_init_set_si (x, val)
- mpz_ptr x;
- signed long int val;
-#endif
{
x->_mp_alloc = 1;
x->_mp_d = (mp_ptr) (*__gmp_allocate_func) (BYTES_PER_MP_LIMB);
diff --git a/mpz/iset_str.c b/mpz/iset_str.c
index 399265a67..6be0cccb4 100644
--- a/mpz/iset_str.c
+++ b/mpz/iset_str.c
@@ -5,7 +5,7 @@
i.e. 0xhh...h means base 16, 0oo...o means base 8, otherwise
assume base 10.
-Copyright 1991, 1993, 1994, 1995, 2000 Free Software Foundation, Inc.
+Copyright 1991, 1993, 1994, 1995, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -28,14 +28,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
int
-#if __STDC__
mpz_init_set_str (mpz_ptr x, const char *str, int base)
-#else
-mpz_init_set_str (x, str, base)
- mpz_ptr x;
- const char *str;
- int base;
-#endif
{
x->_mp_alloc = 1;
x->_mp_d = (mp_ptr) (*__gmp_allocate_func) (BYTES_PER_MP_LIMB);
diff --git a/mpz/iset_ui.c b/mpz/iset_ui.c
index ba124c718..e3aa0f21a 100644
--- a/mpz/iset_ui.c
+++ b/mpz/iset_ui.c
@@ -1,7 +1,7 @@
/* mpz_init_set_ui(val) -- Make a new multiple precision number with
value val.
-Copyright 1991, 1993, 1994, 1995, 2000 Free Software Foundation, Inc.
+Copyright 1991, 1993, 1994, 1995, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -24,13 +24,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpz_init_set_ui (mpz_ptr x, unsigned long int val)
-#else
-mpz_init_set_ui (x, val)
- mpz_ptr x;
- unsigned long int val;
-#endif
{
x->_mp_alloc = 1;
x->_mp_d = (mp_ptr) (*__gmp_allocate_func) (BYTES_PER_MP_LIMB);
diff --git a/mpz/jacobi.c b/mpz/jacobi.c
index b418da444..597974f7e 100644
--- a/mpz/jacobi.c
+++ b/mpz/jacobi.c
@@ -1,7 +1,7 @@
/* mpz_jacobi (op1, op2).
Contributed by Bennet Yee (bsy) at Carnegie-Mellon University
-Copyright 1991, 1996 Free Software Foundation, Inc.
+Copyright 1991, 1996, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -25,12 +25,7 @@ MA 02111-1307, USA. */
/* Precondition: both p and q are positive */
int
-#if __STDC__
mpz_jacobi (mpz_srcptr pi, mpz_srcptr qi)
-#else
-mpz_jacobi (pi, qi)
- mpz_srcptr pi, qi;
-#endif
{
#if GCDCHECK
int retval;
diff --git a/mpz/kronsz.c b/mpz/kronsz.c
index 0efbeb97e..cf58a6d60 100644
--- a/mpz/kronsz.c
+++ b/mpz/kronsz.c
@@ -1,7 +1,7 @@
/* mpz_si_kronecker -- Kronecker/Jacobi symbol. */
/*
-Copyright 1999, 2000 Free Software Foundation, Inc.
+Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -27,13 +27,7 @@ MA 02111-1307, USA.
int
-#if __STDC__
mpz_si_kronecker (long a, mpz_srcptr b)
-#else
-mpz_si_kronecker (a, b)
- long a;
- mpz_srcptr b;
-#endif
{
int b_abs_size;
mp_srcptr b_ptr;
diff --git a/mpz/kronuz.c b/mpz/kronuz.c
index c54fce394..7cebed39d 100644
--- a/mpz/kronuz.c
+++ b/mpz/kronuz.c
@@ -1,7 +1,7 @@
/* mpz_ui_kronecker -- Kronecker/Jacobi symbol. */
/*
-Copyright 1999, 2000 Free Software Foundation, Inc.
+Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -27,13 +27,7 @@ MA 02111-1307, USA.
int
-#if __STDC__
mpz_ui_kronecker (unsigned long a, mpz_srcptr b)
-#else
-mpz_ui_kronecker (a, b)
- unsigned long a;
- mpz_srcptr b;
-#endif
{
int b_abs_size;
mp_srcptr b_ptr;
diff --git a/mpz/kronzs.c b/mpz/kronzs.c
index bc625bdd9..6bd7ef441 100644
--- a/mpz/kronzs.c
+++ b/mpz/kronzs.c
@@ -1,7 +1,7 @@
/* mpz_kronecker_si -- Kronecker/Jacobi symbol. */
/*
-Copyright 1999, 2000 Free Software Foundation, Inc.
+Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -33,13 +33,7 @@ MA 02111-1307, USA.
long, because 0x80..00 doesn't fit in a signed long. */
int
-#if __STDC__
mpz_kronecker_si (mpz_srcptr a, long b)
-#else
-mpz_kronecker_si (a, b)
- mpz_srcptr a;
- long b;
-#endif
{
int result_bit1;
int twos;
diff --git a/mpz/kronzu.c b/mpz/kronzu.c
index cd28a8035..b6681fec8 100644
--- a/mpz/kronzu.c
+++ b/mpz/kronzu.c
@@ -1,7 +1,7 @@
/* mpz_kronecker_ui -- Kronecker/Jacobi symbol. */
/*
-Copyright 1999, 2000 Free Software Foundation, Inc.
+Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -30,13 +30,7 @@ MA 02111-1307, USA.
code for odd b is nice and short. */
int
-#if __STDC__
mpz_kronecker_ui (mpz_srcptr a, unsigned long b)
-#else
-mpz_kronecker_ui (a, b)
- mpz_srcptr a;
- unsigned long b;
-#endif
{
int twos;
diff --git a/mpz/lcm.c b/mpz/lcm.c
index 418252440..829021186 100644
--- a/mpz/lcm.c
+++ b/mpz/lcm.c
@@ -1,6 +1,6 @@
/* mpz/lcm.c: Calculate the least common multiple of two integers.
-Copyright 1996, 2000 Free Software Foundation, Inc.
+Copyright 1996, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -26,14 +26,7 @@ MA 02111-1307, USA. */
void *_mpz_realloc ();
void
-#if __STDC__
mpz_lcm (mpz_ptr r, mpz_srcptr u, mpz_srcptr v)
-#else
-mpz_lcm (r, u, v)
- mpz_ptr r;
- mpz_srcptr u;
- mpz_srcptr v;
-#endif
{
mpz_t g;
mp_size_t usize, vsize, size;
diff --git a/mpz/legendre.c b/mpz/legendre.c
index 39679263a..523401924 100644
--- a/mpz/legendre.c
+++ b/mpz/legendre.c
@@ -1,7 +1,7 @@
/* mpz_legendre (op1, op2).
Contributed by Bennet Yee (bsy) at Carnegie-Mellon University
-Copyright 1992, 1996 Free Software Foundation, Inc.
+Copyright 1992, 1996, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -29,12 +29,7 @@ MA 02111-1307, USA. */
/* Precondition: both p and q are positive */
int
-#if __STDC__
mpz_legendre (mpz_srcptr pi, mpz_srcptr qi)
-#else
-mpz_legendre (pi, qi)
-mpz_srcptr pi, qi;
-#endif
{
mpz_t p, q, qdiv2;
#ifdef Q_MINUS_1
diff --git a/mpz/mod.c b/mpz/mod.c
index df16e5b2a..43643101f 100644
--- a/mpz/mod.c
+++ b/mpz/mod.c
@@ -1,6 +1,6 @@
/* mpz_mod -- The mathematical mod function.
-Copyright 1991, 1993, 1994, 1995, 1996 Free Software Foundation, Inc.
+Copyright 1991, 1993, 1994, 1995, 1996, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -23,14 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpz_mod (mpz_ptr rem, mpz_srcptr dividend, mpz_srcptr divisor)
-#else
-mpz_mod (rem, dividend, divisor)
- mpz_ptr rem;
- mpz_srcptr dividend;
- mpz_srcptr divisor;
-#endif
{
mp_size_t divisor_size = divisor->_mp_size;
mpz_t temp_divisor; /* N.B.: lives until function returns! */
diff --git a/mpz/mul.c b/mpz/mul.c
index 7d2574f91..1925a87e9 100644
--- a/mpz/mul.c
+++ b/mpz/mul.c
@@ -1,6 +1,6 @@
/* mpz_mul -- Multiply two integers.
-Copyright 1991, 1993, 1994, 1996, 2000 Free Software Foundation, Inc.
+Copyright 1991, 1993, 1994, 1996, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -26,26 +26,11 @@ MA 02111-1307, USA. */
#include "mp.h"
#endif
-#ifndef BERKELEY_MP
void
-#if __STDC__
+#ifndef BERKELEY_MP
mpz_mul (mpz_ptr w, mpz_srcptr u, mpz_srcptr v)
-#else
-mpz_mul (w, u, v)
- mpz_ptr w;
- mpz_srcptr u;
- mpz_srcptr v;
-#endif
#else /* BERKELEY_MP */
-void
-#if __STDC__
mult (mpz_srcptr u, mpz_srcptr v, mpz_ptr w)
-#else
-mult (u, v, w)
- mpz_srcptr u;
- mpz_srcptr v;
- mpz_ptr w;
-#endif
#endif /* BERKELEY_MP */
{
mp_size_t usize = u->_mp_size;
diff --git a/mpz/mul_2exp.c b/mpz/mul_2exp.c
index 104e9e975..fa1db45c0 100644
--- a/mpz/mul_2exp.c
+++ b/mpz/mul_2exp.c
@@ -1,6 +1,6 @@
/* mpz_mul_2exp -- Multiply a bignum by 2**CNT
-Copyright 1991, 1993, 1994, 1996 Free Software Foundation, Inc.
+Copyright 1991, 1993, 1994, 1996, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -23,14 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpz_mul_2exp (mpz_ptr w, mpz_srcptr u, unsigned long int cnt)
-#else
-mpz_mul_2exp (w, u, cnt)
- mpz_ptr w;
- mpz_srcptr u;
- unsigned long int cnt;
-#endif
{
mp_size_t usize = u->_mp_size;
mp_size_t abs_usize = ABS (usize);
diff --git a/mpz/mul_siui.c b/mpz/mul_siui.c
index 9f24ee140..aa0675315 100644
--- a/mpz/mul_siui.c
+++ b/mpz/mul_siui.c
@@ -1,7 +1,7 @@
/* mpz_mul_ui/si (product, multiplier, small_multiplicand) -- Set PRODUCT to
MULTIPLICATOR times SMALL_MULTIPLICAND.
-Copyright 1991, 1993, 1994, 1996, 2000 Free Software Foundation, Inc.
+Copyright 1991, 1993, 1994, 1996, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -42,15 +42,8 @@ Error, error, unrecognised OPERATION
void
-#if __STDC__
FUNCTION (mpz_ptr prod, mpz_srcptr mult,
MULTIPLICAND_UNSIGNED long int small_mult)
-#else
-FUNCTION (prod, mult, small_mult)
- mpz_ptr prod;
- mpz_srcptr mult;
- MULTIPLICAND_UNSIGNED long int small_mult;
-#endif
{
mp_size_t size = mult->_mp_size;
mp_size_t sign_product = size;
diff --git a/mpz/neg.c b/mpz/neg.c
index 2f1a9f6f2..7dff5582a 100644
--- a/mpz/neg.c
+++ b/mpz/neg.c
@@ -1,6 +1,6 @@
/* mpz_neg(mpz_ptr dst, mpz_ptr src) -- Assign the negated value of SRC to DST.
-Copyright 1991, 1993, 1994, 1995 Free Software Foundation, Inc.
+Copyright 1991, 1993, 1994, 1995, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -23,13 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpz_neg (mpz_ptr w, mpz_srcptr u)
-#else
-mpz_neg (w, u)
- mpz_ptr w;
- mpz_srcptr u;
-#endif
{
mp_ptr wp, up;
mp_size_t usize, size;
diff --git a/mpz/nextprime.c b/mpz/nextprime.c
index 821abaf91..5bd011e51 100644
--- a/mpz/nextprime.c
+++ b/mpz/nextprime.c
@@ -1,6 +1,6 @@
/* mpz_nextprime(p,t) - compute the next prime > t and store that in p.
-Copyright 1999, 2000 Free Software Foundation, Inc.
+Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -23,13 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpz_nextprime (mpz_ptr p, mpz_srcptr t)
-#else
-mpz_nextprime (p, t)
- mpz_ptr p;
- mpz_srcptr t;
-#endif
{
mpz_add_ui (p, t, 1L);
while (! mpz_probab_prime_p (p, 5))
@@ -56,13 +50,7 @@ status unsigned short primes[] =
#define NUMBER_OF_PRIMES 167
void
-#if __STDC__
mpz_nextprime (mpz_ptr p, mpz_srcptr n)
-#else
-mpz_nextprime (p, n)
- mpz_ptr p;
- mpz_srcptr n;
-#endif
{
mpz_t tmp;
unsigned short *moduli;
diff --git a/mpz/out_raw.c b/mpz/out_raw.c
index 80653b7d7..2525d486b 100644
--- a/mpz/out_raw.c
+++ b/mpz/out_raw.c
@@ -1,7 +1,7 @@
/* mpz_out_raw -- Output a mpz_t in binary. Use an endianess and word size
independent format.
-Copyright 1995 Free Software Foundation, Inc.
+Copyright 1995, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -26,13 +26,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
size_t
-#if __STDC__
mpz_out_raw (FILE *stream, mpz_srcptr x)
-#else
-mpz_out_raw (stream, x)
- FILE *stream;
- mpz_srcptr x;
-#endif
{
int i;
mp_size_t s;
diff --git a/mpz/out_str.c b/mpz/out_str.c
index 8f475e1dd..15db0af57 100644
--- a/mpz/out_str.c
+++ b/mpz/out_str.c
@@ -1,7 +1,7 @@
/* mpz_out_str(stream, base, integer) -- Output to STREAM the multi prec.
integer INTEGER in base BASE.
-Copyright 1991, 1993, 1994, 1996 Free Software Foundation, Inc.
+Copyright 1991, 1993, 1994, 1996, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -25,14 +25,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
size_t
-#if __STDC__
mpz_out_str (FILE *stream, int base, mpz_srcptr x)
-#else
-mpz_out_str (stream, base, x)
- FILE *stream;
- int base;
- mpz_srcptr x;
-#endif
{
mp_ptr xp;
mp_size_t x_size = x->_mp_size;
diff --git a/mpz/perfpow.c b/mpz/perfpow.c
index f3b7fcb98..0e41f873f 100644
--- a/mpz/perfpow.c
+++ b/mpz/perfpow.c
@@ -1,7 +1,7 @@
/* mpz_perfect_power_p(arg) -- Return non-zero if ARG is a perfect power,
zero otherwise.
-Copyright 1998, 1999, 2000 Free Software Foundation, Inc.
+Copyright 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -64,12 +64,7 @@ static const unsigned short primes[] =
int
-#if __STDC__
mpz_perfect_power_p (mpz_srcptr u)
-#else
-mpz_perfect_power_p (u)
- mpz_srcptr u;
-#endif
{
unsigned long int prime;
unsigned long int n, n2;
@@ -205,12 +200,7 @@ n2prime:
}
static unsigned long int
-#if __STDC__
gcd (unsigned long int a, unsigned long int b)
-#else
-gcd (a, b)
- unsigned long int a, b;
-#endif
{
int an2, bn2, n2;
@@ -249,12 +239,7 @@ gcd (a, b)
}
static int
-#if __STDC__
isprime (unsigned long int t)
-#else
-isprime (t)
- unsigned long int t;
-#endif
{
unsigned long int q, r, d;
diff --git a/mpz/perfsqr.c b/mpz/perfsqr.c
index cbfd9c1e8..c57d3e793 100644
--- a/mpz/perfsqr.c
+++ b/mpz/perfsqr.c
@@ -1,7 +1,7 @@
/* mpz_perfect_square_p(arg) -- Return non-zero if ARG is a perfect square,
zero otherwise.
-Copyright 1991, 1993, 1994, 1996, 2000 Free Software Foundation, Inc.
+Copyright 1991, 1993, 1994, 1996, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -24,12 +24,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
int
-#if __STDC__
mpz_perfect_square_p (mpz_srcptr a)
-#else
-mpz_perfect_square_p (a)
- mpz_srcptr a;
-#endif
{
mp_size_t asize = a->_mp_size;
diff --git a/mpz/popcount.c b/mpz/popcount.c
index bb1ff6f42..04a213d3a 100644
--- a/mpz/popcount.c
+++ b/mpz/popcount.c
@@ -1,7 +1,7 @@
/* mpz_popcount(mpz_ptr op) -- Population count of OP. If the operand is
negative, return ~0 (a novel representation of infinity).
-Copyright 1994, 1996 Free Software Foundation, Inc.
+Copyright 1994, 1996, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -24,12 +24,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
unsigned long int
-#if __STDC__
mpz_popcount (mpz_srcptr u)
-#else
-mpz_popcount (u)
- mpz_srcptr u;
-#endif
{
mp_size_t usize;
diff --git a/mpz/pow_ui.c b/mpz/pow_ui.c
index ae78b9e39..b462b2f68 100644
--- a/mpz/pow_ui.c
+++ b/mpz/pow_ui.c
@@ -1,6 +1,7 @@
/* mpz_pow_ui(res, base, exp) -- Set RES to BASE**EXP.
-Copyright 1991, 1993, 1994, 1996, 1997, 2000 Free Software Foundation, Inc.
+Copyright 1991, 1993, 1994, 1996, 1997, 2000, 2001 Free Software Foundation,
+Inc.
This file is part of the GNU MP Library.
@@ -26,26 +27,11 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
#include "longlong.h"
-#ifndef BERKELEY_MP
void
-#if __STDC__
+#ifndef BERKELEY_MP
mpz_pow_ui (mpz_ptr r, mpz_srcptr b, unsigned long int e)
-#else
-mpz_pow_ui (r, b, e)
- mpz_ptr r;
- mpz_srcptr b;
- unsigned long int e;
-#endif
#else /* BERKELEY_MP */
-void
-#if __STDC__
rpow (const MINT *b, signed short int e, MINT *r)
-#else
-rpow (b, e, r)
- const MINT *b;
- signed short int e;
- MINT *r;
-#endif
#endif /* BERKELEY_MP */
{
mp_ptr rp, bp, tp, xp;
diff --git a/mpz/powm.c b/mpz/powm.c
index 7f3353b53..024197254 100644
--- a/mpz/powm.c
+++ b/mpz/powm.c
@@ -1,7 +1,7 @@
/* mpz_powm(res,base,exp,mod) -- Set RES to (base**exp) mod MOD.
-Copyright 1991, 1993, 1994, 1996, 1997, 2000 Free Software Foundation, Inc.
-Contributed by Paul Zimmermann.
+Copyright 1991, 1993, 1994, 1996, 1997, 2000, 2001 Free Software Foundation,
+Inc. Contributed by Paul Zimmermann.
This file is part of the GNU MP Library.
@@ -71,28 +71,11 @@ redc (mp_ptr cp, mp_srcptr mp, mp_size_t n, mp_limb_t Nprim, mp_ptr tp)
4096 4918 4787 4707 4665* 4670
*/
-#ifndef BERKELEY_MP
void
-#if __STDC__
+#ifndef BERKELEY_MP
mpz_powm (mpz_ptr res, mpz_srcptr base, mpz_srcptr e, mpz_srcptr mod)
-#else
-mpz_powm (res, base, e, mod)
- mpz_ptr res;
- mpz_srcptr base;
- mpz_srcptr e;
- mpz_srcptr mod;
-#endif
#else /* BERKELEY_MP */
-void
-#if __STDC__
pow (mpz_srcptr base, mpz_srcptr e, mpz_srcptr mod, mpz_ptr res)
-#else
-pow (base, e, mod, res)
- mpz_srcptr base;
- mpz_srcptr e;
- mpz_srcptr mod;
- mpz_ptr res;
-#endif
#endif /* BERKELEY_MP */
{
mp_limb_t invm, *ep, c, mask;
diff --git a/mpz/powm_ui.c b/mpz/powm_ui.c
index e35e18bd4..5ca113bab 100644
--- a/mpz/powm_ui.c
+++ b/mpz/powm_ui.c
@@ -1,6 +1,6 @@
/* mpz_powm_ui(res,base,exp,mod) -- Set RES to (base**exp) mod MOD.
-Copyright 1991, 1993, 1994, 1996, 1997, 2000 Free Software Foundation,
+Copyright 1991, 1993, 1994, 1996, 1997, 2000, 2001 Free Software Foundation,
Inc.
This file is part of the GNU MP Library.
@@ -26,15 +26,7 @@ MA 02111-1307, USA. */
#include "longlong.h"
void
-#if __STDC__
mpz_powm_ui (mpz_ptr res, mpz_srcptr base, unsigned long int exp, mpz_srcptr mod)
-#else
-mpz_powm_ui (res, base, exp, mod)
- mpz_ptr res;
- mpz_srcptr base;
- unsigned long int exp;
- mpz_srcptr mod;
-#endif
{
mp_ptr rp, mp, bp;
mp_size_t msize, bsize, rsize;
diff --git a/mpz/pprime_p.c b/mpz/pprime_p.c
index 38b7fcf72..3626efd77 100644
--- a/mpz/pprime_p.c
+++ b/mpz/pprime_p.c
@@ -6,7 +6,7 @@
positive is (1/4)**reps, where reps is the number of internal passes of the
probabilistic algorithm. Knuth indicates that 25 passes are reasonable.
-Copyright 1991, 1993, 1994, 1996, 1997, 1998, 1999, 2000 Free Software
+Copyright 1991, 1993, 1994, 1996, 1997, 1998, 1999, 2000, 2001 Free Software
Foundation, Inc. Miller-Rabin code contributed by John Amanatides.
This file is part of the GNU MP Library.
@@ -34,13 +34,7 @@ static int isprime _PROTO ((unsigned long int t));
static int mpz_millerrabin _PROTO ((mpz_srcptr n, int reps));
int
-#if __STDC__
mpz_probab_prime_p (mpz_srcptr n, int reps)
-#else
-mpz_probab_prime_p (n, reps)
- mpz_srcptr n;
- int reps;
-#endif
{
mp_limb_t r;
@@ -142,12 +136,7 @@ mpz_probab_prime_p (n, reps)
}
static int
-#if __STDC__
isprime (unsigned long int t)
-#else
-isprime (t)
- unsigned long int t;
-#endif
{
unsigned long int q, r, d;
@@ -169,13 +158,7 @@ static int millerrabin _PROTO ((mpz_srcptr n, mpz_srcptr nm1,
mpz_srcptr q, unsigned long int k));
static int
-#if __STDC__
mpz_millerrabin (mpz_srcptr n, int reps)
-#else
-mpz_millerrabin (n, reps)
- mpz_srcptr n;
- int reps;
-#endif
{
int r;
mpz_t nm1, x, y, q;
@@ -225,18 +208,8 @@ mpz_millerrabin (n, reps)
}
static int
-#if __STDC__
millerrabin (mpz_srcptr n, mpz_srcptr nm1, mpz_ptr x, mpz_ptr y,
mpz_srcptr q, unsigned long int k)
-#else
-millerrabin (n, nm1, x, y, q, k)
- mpz_srcptr n;
- mpz_srcptr nm1;
- mpz_ptr x;
- mpz_ptr y;
- mpz_srcptr q;
- unsigned long int k;
-#endif
{
unsigned long int i;
diff --git a/mpz/random.c b/mpz/random.c
index 8df0392e1..2f56eee07 100644
--- a/mpz/random.c
+++ b/mpz/random.c
@@ -1,7 +1,7 @@
/* mpz_random -- Generate a random mpz_t of specified size.
This function is non-portable and generates poor random numbers.
-Copyright 1991, 1993, 1994, 1995 Free Software Foundation, Inc.
+Copyright 1991, 1993, 1994, 1995, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -25,13 +25,7 @@ MA 02111-1307, USA. */
#include "urandom.h"
void
-#if __STDC__
mpz_random (mpz_ptr x, mp_size_t size)
-#else
-mpz_random (x, size)
- mpz_ptr x;
- mp_size_t size;
-#endif
{
mp_size_t i;
mp_limb_t ran;
diff --git a/mpz/random2.c b/mpz/random2.c
index fac9d77a3..f392444c0 100644
--- a/mpz/random2.c
+++ b/mpz/random2.c
@@ -2,7 +2,7 @@
long runs of consecutive ones and zeros in the binary representation.
Meant for testing of other MP routines.
-Copyright 1991, 1993, 1994, 1996 Free Software Foundation, Inc.
+Copyright 1991, 1993, 1994, 1996, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -25,13 +25,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpz_random2 (mpz_ptr x, mp_size_t size)
-#else
-mpz_random2 (x, size)
- mpz_ptr x;
- mp_size_t size;
-#endif
{
mp_size_t abs_size;
diff --git a/mpz/realloc.c b/mpz/realloc.c
index b9f096bda..94f11fd2c 100644
--- a/mpz/realloc.c
+++ b/mpz/realloc.c
@@ -1,6 +1,6 @@
/* _mpz_realloc -- make the mpz_t have NEW_SIZE digits allocated.
-Copyright 1991, 1993, 1994, 1995, 2000 Free Software Foundation, Inc.
+Copyright 1991, 1993, 1994, 1995, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -23,13 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void *
-#if __STDC__
_mpz_realloc (mpz_ptr m, mp_size_t new_size)
-#else
-_mpz_realloc (m, new_size)
- mpz_ptr m;
- mp_size_t new_size;
-#endif
{
/* Never allocate zero space. */
if (new_size == 0)
diff --git a/mpz/remove.c b/mpz/remove.c
index 18ddfb9e4..6e34b2263 100644
--- a/mpz/remove.c
+++ b/mpz/remove.c
@@ -1,6 +1,6 @@
/* mpz_remove -- divide out a factor and return its multiplicity.
-Copyright 1998, 1999, 2000 Free Software Foundation, Inc.
+Copyright 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -23,14 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
unsigned long int
-#if __STDC__
mpz_remove (mpz_ptr dest, mpz_srcptr src, mpz_srcptr f)
-#else
-mpz_remove (dest, src, f)
- mpz_ptr dest;
- mpz_srcptr src;
- mpz_srcptr f;
-#endif
{
mpz_t fpow[40]; /* inexhaustible...until year 2020 or so */
mpz_t x, rem;
diff --git a/mpz/root.c b/mpz/root.c
index 99c87292a..24199e6a7 100644
--- a/mpz/root.c
+++ b/mpz/root.c
@@ -1,7 +1,7 @@
/* mpz_root(root, u, nth) -- Set ROOT to floor(U^(1/nth)).
Return an indication if the result is exact.
-Copyright 1999, 2000 Free Software Foundation, Inc.
+Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -32,14 +32,7 @@ MA 02111-1307, USA. */
#include "longlong.h"
int
-#if __STDC__
mpz_root (mpz_ptr r, mpz_srcptr c, unsigned long int nth)
-#else
-mpz_root (r, c, nth)
- mpz_ptr r;
- mpz_srcptr c;
- unsigned long int nth;
-#endif
{
mpz_t x, t0, t1, t2;
__mpz_struct ccs, *cc = &ccs;
diff --git a/mpz/rrandomb.c b/mpz/rrandomb.c
index 0b5d7a410..62f5ab69f 100644
--- a/mpz/rrandomb.c
+++ b/mpz/rrandomb.c
@@ -2,7 +2,7 @@
long runs of consecutive ones and zeros in the binary representation.
Meant for testing of other MP routines.
-Copyright 2000 Free Software Foundation, Inc.
+Copyright 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -27,14 +27,7 @@ MA 02111-1307, USA. */
static void gmp_rrandomb _PROTO ((mp_ptr rp, gmp_randstate_t rstate, unsigned long int nbits));
void
-#if __STDC__
mpz_rrandomb (mpz_ptr x, gmp_randstate_t rstate, unsigned long int nbits)
-#else
-mpz_rrandomb (x, rstate, nbits)
- mpz_ptr x;
- gmp_randstate_t rstate;
- unsigned long int nbits;
-#endif
{
mp_size_t nl = 0;
@@ -56,14 +49,7 @@ mpz_rrandomb (x, rstate, nbits)
#define BITS_PER_CHUNK 4
static void
-#if __STDC__
gmp_rrandomb (mp_ptr rp, gmp_randstate_t rstate, unsigned long int nbits)
-#else
-gmp_rrandomb (rp, rstate, nbits)
- mp_ptr rp;
- gmp_randstate_t rstate;
- unsigned long int nbits;
-#endif
{
int nb;
int bit_pos;
diff --git a/mpz/scan0.c b/mpz/scan0.c
index 4a9741752..77f040666 100644
--- a/mpz/scan0.c
+++ b/mpz/scan0.c
@@ -1,6 +1,6 @@
/* mpz_scan0(op, startbit) -- Scan for the next set bit, starting at startbit.
-Copyright 1996 Free Software Foundation, Inc.
+Copyright 1996, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -23,13 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
unsigned long int
-#if __STDC__
mpz_scan0 (mpz_srcptr u, unsigned long int starting_bit)
-#else
-mpz_scan0 (u, starting_bit)
- mpz_srcptr u;
- unsigned long int starting_bit;
-#endif
{
return mpn_scan0 (u->_mp_d, starting_bit);
}
diff --git a/mpz/scan1.c b/mpz/scan1.c
index d2711646f..52a67c434 100644
--- a/mpz/scan1.c
+++ b/mpz/scan1.c
@@ -1,6 +1,6 @@
/* mpz_scan1(op, startbit) -- Scan for the next set bit, starting at startbit.
-Copyright 1996 Free Software Foundation, Inc.
+Copyright 1996, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -23,13 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
unsigned long int
-#if __STDC__
mpz_scan1 (mpz_srcptr u, unsigned long int starting_bit)
-#else
-mpz_scan1 (u, starting_bit)
- mpz_srcptr u;
- unsigned long int starting_bit;
-#endif
{
return mpn_scan1 (u->_mp_d, starting_bit);
}
diff --git a/mpz/set_d.c b/mpz/set_d.c
index 763b6eb30..7b1a906e4 100644
--- a/mpz/set_d.c
+++ b/mpz/set_d.c
@@ -1,6 +1,6 @@
/* mpz_set_d(integer, val) -- Assign INTEGER with a double value VAL.
-Copyright 1995, 1996, 2000 Free Software Foundation, Inc.
+Copyright 1995, 1996, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -23,13 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpz_set_d (mpz_ptr r, double d)
-#else
-mpz_set_d (r, d)
- mpz_ptr r;
- double d;
-#endif
{
int negative;
mp_limb_t tp[3];
diff --git a/mpz/set_f.c b/mpz/set_f.c
index 75875b071..9d48820df 100644
--- a/mpz/set_f.c
+++ b/mpz/set_f.c
@@ -1,6 +1,6 @@
/* mpz_set_f (dest_integer, src_float) -- Assign DEST_INTEGER from SRC_FLOAT.
-Copyright 1996 Free Software Foundation, Inc.
+Copyright 1996, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -23,13 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpz_set_f (mpz_ptr w, mpf_srcptr u)
-#else
-mpz_set_f (w, u)
- mpz_ptr w;
- mpf_srcptr u;
-#endif
{
mp_ptr wp, up;
mp_size_t usize, size;
diff --git a/mpz/set_q.c b/mpz/set_q.c
index 8fc00aa13..5c5c66fb7 100644
--- a/mpz/set_q.c
+++ b/mpz/set_q.c
@@ -1,7 +1,7 @@
/* mpz_set_q (dest_integer, src_rational) -- Assign DEST_INTEGER from
SRC_rational.
-Copyright 1996 Free Software Foundation, Inc.
+Copyright 1996, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -24,13 +24,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpz_set_q (mpz_ptr w, mpq_srcptr u)
-#else
-mpz_set_q (w, u)
- mpz_ptr w;
- mpq_srcptr u;
-#endif
{
mpz_tdiv_q (w, mpq_numref (u), mpq_denref (u));
}
diff --git a/mpz/set_si.c b/mpz/set_si.c
index 9038d611a..2e09b3222 100644
--- a/mpz/set_si.c
+++ b/mpz/set_si.c
@@ -1,6 +1,6 @@
/* mpz_set_si(integer, val) -- Assign INTEGER with a small value VAL.
-Copyright 1991, 1993, 1994, 1995, 2000 Free Software Foundation, Inc.
+Copyright 1991, 1993, 1994, 1995, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -23,13 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpz_set_si (mpz_ptr dest, signed long int val)
-#else
-mpz_set_si (dest, val)
- mpz_ptr dest;
- signed long int val;
-#endif
{
/* We don't check if the allocation is enough, since the rest of the
package ensures it's at least 1, which is what we need here. */
diff --git a/mpz/set_str.c b/mpz/set_str.c
index 730f9ed59..34595d6e7 100644
--- a/mpz/set_str.c
+++ b/mpz/set_str.c
@@ -4,7 +4,7 @@
the base in the C standard way, i.e. 0xhh...h means base 16,
0oo...o means base 8, otherwise assume base 10.
-Copyright 1991, 1993, 1994, 1996, 1997, 1998, 2000 Free Software
+Copyright 1991, 1993, 1994, 1996, 1997, 1998, 2000, 2001 Free Software
Foundation, Inc.
This file is part of the GNU MP Library.
@@ -31,13 +31,7 @@ MA 02111-1307, USA. */
#include "longlong.h"
static int
-#if __STDC__
digit_value_in_base (int c, int base)
-#else
-digit_value_in_base (c, base)
- int c;
- int base;
-#endif
{
int digit;
@@ -56,14 +50,7 @@ digit_value_in_base (c, base)
}
int
-#if __STDC__
mpz_set_str (mpz_ptr x, const char *str, int base)
-#else
-mpz_set_str (x, str, base)
- mpz_ptr x;
- const char *str;
- int base;
-#endif
{
size_t str_size;
char *s, *begs;
diff --git a/mpz/set_ui.c b/mpz/set_ui.c
index f7cc240aa..62664393c 100644
--- a/mpz/set_ui.c
+++ b/mpz/set_ui.c
@@ -1,6 +1,6 @@
/* mpz_set_ui(integer, val) -- Assign INTEGER with a small value VAL.
-Copyright 1991, 1993, 1994, 1995 Free Software Foundation, Inc.
+Copyright 1991, 1993, 1994, 1995, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -23,13 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpz_set_ui (mpz_ptr dest, unsigned long int val)
-#else
-mpz_set_ui (dest, val)
- mpz_ptr dest;
- unsigned long int val;
-#endif
{
/* We don't check if the allocation is enough, since the rest of the
package ensures it's at least 1, which is what we need here. */
diff --git a/mpz/setbit.c b/mpz/setbit.c
index 651a90f3a..dcb3a6731 100644
--- a/mpz/setbit.c
+++ b/mpz/setbit.c
@@ -1,6 +1,6 @@
/* mpz_setbit -- set a specified bit.
-Copyright 1991, 1993, 1994, 1995, 1997, 1999 Free Software Foundation,
+Copyright 1991, 1993, 1994, 1995, 1997, 1999, 2001 Free Software Foundation,
Inc.
This file is part of the GNU MP Library.
@@ -24,13 +24,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpz_setbit (mpz_ptr d, unsigned long int bit_index)
-#else
-mpz_setbit (d, bit_index)
- mpz_ptr d;
- unsigned long int bit_index;
-#endif
{
mp_size_t dsize = d->_mp_size;
mp_ptr dp = d->_mp_d;
diff --git a/mpz/size.c b/mpz/size.c
index aa2fbbf7c..0d9e12713 100644
--- a/mpz/size.c
+++ b/mpz/size.c
@@ -1,7 +1,7 @@
/* mpz_size(x) -- return the number of lims currently used by the
value of integer X.
-Copyright 1991, 1993, 1994, 1995 Free Software Foundation, Inc.
+Copyright 1991, 1993, 1994, 1995, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -24,12 +24,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
size_t
-#if __STDC__
mpz_size (mpz_srcptr x)
-#else
-mpz_size (x)
- mpz_srcptr x;
-#endif
{
return ABS (x->_mp_size);
}
diff --git a/mpz/sizeinbase.c b/mpz/sizeinbase.c
index 9c74ea28a..dee647083 100644
--- a/mpz/sizeinbase.c
+++ b/mpz/sizeinbase.c
@@ -2,7 +2,7 @@
character the integer X would have printed in base BASE. The
approximation is never too small.
-Copyright 1991, 1993, 1994, 1995 Free Software Foundation, Inc.
+Copyright 1991, 1993, 1994, 1995, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -26,13 +26,7 @@ MA 02111-1307, USA. */
#include "longlong.h"
size_t
-#if __STDC__
mpz_sizeinbase (mpz_srcptr x, int base)
-#else
-mpz_sizeinbase (x, base)
- mpz_srcptr x;
- int base;
-#endif
{
mp_size_t size = ABS (x->_mp_size);
int lb_base, cnt;
diff --git a/mpz/sqrt.c b/mpz/sqrt.c
index f86cece13..37c25146b 100644
--- a/mpz/sqrt.c
+++ b/mpz/sqrt.c
@@ -1,6 +1,6 @@
/* mpz_sqrt(root, u) -- Set ROOT to floor(sqrt(U)).
-Copyright 1991, 1993, 1994, 1996, 2000 Free Software Foundation, Inc.
+Copyright 1991, 1993, 1994, 1996, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -24,13 +24,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpz_sqrt (mpz_ptr root, mpz_srcptr op)
-#else
-mpz_sqrt (root, op)
- mpz_ptr root;
- mpz_srcptr op;
-#endif
{
mp_size_t op_size, root_size;
mp_ptr root_ptr, op_ptr;
diff --git a/mpz/sqrtrem.c b/mpz/sqrtrem.c
index 48a894445..008588e5e 100644
--- a/mpz/sqrtrem.c
+++ b/mpz/sqrtrem.c
@@ -1,7 +1,7 @@
/* mpz_sqrtrem(root,rem,x) -- Set ROOT to floor(sqrt(X)) and REM
to the remainder, i.e. X - ROOT**2.
-Copyright 1991, 1993, 1994, 1996, 2000 Free Software Foundation, Inc.
+Copyright 1991, 1993, 1994, 1996, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -27,26 +27,11 @@ MA 02111-1307, USA. */
#include "mp.h"
#endif
-#ifndef BERKELEY_MP
void
-#if __STDC__
+#ifndef BERKELEY_MP
mpz_sqrtrem (mpz_ptr root, mpz_ptr rem, mpz_srcptr op)
-#else
-mpz_sqrtrem (root, rem, op)
- mpz_ptr root;
- mpz_ptr rem;
- mpz_srcptr op;
-#endif
#else /* BERKELEY_MP */
-void
-#if __STDC__
msqrt (mpz_srcptr op, mpz_ptr root, mpz_ptr rem)
-#else
-msqrt (op, root, rem)
- mpz_srcptr op;
- mpz_ptr root;
- mpz_ptr rem;
-#endif
#endif /* BERKELEY_MP */
{
mp_size_t op_size, root_size, rem_size;
diff --git a/mpz/swap.c b/mpz/swap.c
index 1d3ef5f67..8331a9c07 100644
--- a/mpz/swap.c
+++ b/mpz/swap.c
@@ -1,6 +1,6 @@
/* mpz_swap (dest_integer, src_integer) -- Swap U and V.
-Copyright 1997, 1998 Free Software Foundation, Inc.
+Copyright 1997, 1998, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -23,13 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpz_swap (mpz_ptr u, mpz_ptr v)
-#else
-mpz_swap (u, v)
- mpz_ptr u;
- mpz_ptr v;
-#endif
{
mp_ptr up, vp;
mp_size_t usize, vsize;
diff --git a/mpz/tdiv_q.c b/mpz/tdiv_q.c
index 2aefd57cb..1d97e0cd4 100644
--- a/mpz/tdiv_q.c
+++ b/mpz/tdiv_q.c
@@ -1,6 +1,6 @@
/* mpz_tdiv_q -- divide two integers and produce a quotient.
-Copyright 1991, 1993, 1994, 1996, 2000 Free Software Foundation, Inc.
+Copyright 1991, 1993, 1994, 1996, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -24,14 +24,7 @@ MA 02111-1307, USA. */
#include "longlong.h"
void
-#if __STDC__
mpz_tdiv_q (mpz_ptr quot, mpz_srcptr num, mpz_srcptr den)
-#else
-mpz_tdiv_q (quot, num, den)
- mpz_ptr quot;
- mpz_srcptr num;
- mpz_srcptr den;
-#endif
{
mp_size_t ql;
mp_size_t ns, ds, nl, dl;
diff --git a/mpz/tdiv_q_2exp.c b/mpz/tdiv_q_2exp.c
index 87e87389e..8741083e8 100644
--- a/mpz/tdiv_q_2exp.c
+++ b/mpz/tdiv_q_2exp.c
@@ -1,7 +1,7 @@
/* mpz_tdiv_q_2exp -- Divide an integer by 2**CNT. Round the quotient
towards -infinity.
-Copyright 1991, 1993, 1994, 1996 Free Software Foundation, Inc.
+Copyright 1991, 1993, 1994, 1996, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -24,14 +24,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpz_tdiv_q_2exp (mpz_ptr w, mpz_srcptr u, unsigned long int cnt)
-#else
-mpz_tdiv_q_2exp (w, u, cnt)
- mpz_ptr w;
- mpz_srcptr u;
- unsigned long int cnt;
-#endif
{
mp_size_t usize, wsize;
mp_size_t limb_cnt;
diff --git a/mpz/tdiv_q_ui.c b/mpz/tdiv_q_ui.c
index 31f751bcb..2ba711386 100644
--- a/mpz/tdiv_q_ui.c
+++ b/mpz/tdiv_q_ui.c
@@ -1,7 +1,7 @@
/* mpz_tdiv_q_ui(quot, dividend, divisor_limb)
-- Divide DIVIDEND by DIVISOR_LIMB and store the result in QUOT.
-Copyright 1991, 1993, 1994, 1996, 1998 Free Software Foundation, Inc.
+Copyright 1991, 1993, 1994, 1996, 1998, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -24,14 +24,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
unsigned long int
-#if __STDC__
mpz_tdiv_q_ui (mpz_ptr quot, mpz_srcptr dividend, unsigned long int divisor)
-#else
-mpz_tdiv_q_ui (quot, dividend, divisor)
- mpz_ptr quot;
- mpz_srcptr dividend;
- unsigned long int divisor;
-#endif
{
mp_size_t dividend_size;
mp_size_t size;
diff --git a/mpz/tdiv_qr.c b/mpz/tdiv_qr.c
index 8da6bc56d..5b1ea8127 100644
--- a/mpz/tdiv_qr.c
+++ b/mpz/tdiv_qr.c
@@ -1,7 +1,7 @@
/* mpz_tdiv_qr(quot,rem,dividend,divisor) -- Set QUOT to DIVIDEND/DIVISOR,
and REM to DIVIDEND mod DIVISOR.
-Copyright 1991, 1993, 1994, 2000 Free Software Foundation, Inc.
+Copyright 1991, 1993, 1994, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -27,33 +27,11 @@ MA 02111-1307, USA. */
#include "mp.h"
#endif
-
-#ifndef BERKELEY_MP
-
void
-#if __STDC__
+#ifndef BERKELEY_MP
mpz_tdiv_qr (mpz_ptr quot, mpz_ptr rem, mpz_srcptr num, mpz_srcptr den)
-#else
-mpz_tdiv_qr (quot, rem, num, den)
- mpz_ptr quot;
- mpz_ptr rem;
- mpz_srcptr num;
- mpz_srcptr den;
-#endif
-
#else /* BERKELEY_MP */
-
-void
-#if __STDC__
mdiv (mpz_srcptr num, mpz_srcptr den, mpz_ptr quot, mpz_ptr rem)
-#else
-mdiv (num, den, quot, rem)
- mpz_srcptr num;
- mpz_srcptr den;
- mpz_ptr quot;
- mpz_ptr rem;
-#endif
-
#endif /* BERKELEY_MP */
{
mp_size_t ql;
diff --git a/mpz/tdiv_qr_ui.c b/mpz/tdiv_qr_ui.c
index d0131cc95..40d03ebe4 100644
--- a/mpz/tdiv_qr_ui.c
+++ b/mpz/tdiv_qr_ui.c
@@ -2,7 +2,7 @@
Set QUOT to DIVIDEND / SHORT_DIVISOR
and REM to DIVIDEND mod SHORT_DIVISOR.
-Copyright 1991, 1993, 1994, 1996, 1998 Free Software Foundation, Inc.
+Copyright 1991, 1993, 1994, 1996, 1998, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -25,15 +25,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
unsigned long int
-#if __STDC__
mpz_tdiv_qr_ui (mpz_ptr quot, mpz_ptr rem, mpz_srcptr dividend, unsigned long int divisor)
-#else
-mpz_tdiv_qr_ui (quot, rem, dividend, divisor)
- mpz_ptr quot;
- mpz_ptr rem;
- mpz_srcptr dividend;
- unsigned long int divisor;
-#endif
{
mp_size_t dividend_size;
mp_size_t size;
diff --git a/mpz/tdiv_r.c b/mpz/tdiv_r.c
index fe7c2e2a5..6426c3457 100644
--- a/mpz/tdiv_r.c
+++ b/mpz/tdiv_r.c
@@ -1,6 +1,6 @@
/* mpz_tdiv_r(rem, dividend, divisor) -- Set REM to DIVIDEND mod DIVISOR.
-Copyright 1991, 1993, 1994, 2000 Free Software Foundation, Inc.
+Copyright 1991, 1993, 1994, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -24,14 +24,7 @@ MA 02111-1307, USA. */
#include "longlong.h"
void
-#if __STDC__
mpz_tdiv_r (mpz_ptr rem, mpz_srcptr num, mpz_srcptr den)
-#else
-mpz_tdiv_r (rem, num, den)
- mpz_ptr rem;
- mpz_srcptr num;
- mpz_srcptr den;
-#endif
{
mp_size_t ql;
mp_size_t ns, ds, nl, dl;
diff --git a/mpz/tdiv_r_2exp.c b/mpz/tdiv_r_2exp.c
index e181dcea2..74c6618e5 100644
--- a/mpz/tdiv_r_2exp.c
+++ b/mpz/tdiv_r_2exp.c
@@ -1,6 +1,6 @@
/* mpz_tdiv_r_2exp -- Divide a integer by 2**CNT and produce a remainder.
-Copyright 1991, 1993, 1994, 1995 Free Software Foundation, Inc.
+Copyright 1991, 1993, 1994, 1995, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -23,14 +23,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpz_tdiv_r_2exp (mpz_ptr res, mpz_srcptr in, unsigned long int cnt)
-#else
-mpz_tdiv_r_2exp (res, in, cnt)
- mpz_ptr res;
- mpz_srcptr in;
- unsigned long int cnt;
-#endif
{
mp_size_t in_size = ABS (in->_mp_size);
mp_size_t res_size;
diff --git a/mpz/tdiv_r_ui.c b/mpz/tdiv_r_ui.c
index 26f3db919..a688061b6 100644
--- a/mpz/tdiv_r_ui.c
+++ b/mpz/tdiv_r_ui.c
@@ -1,7 +1,7 @@
/* mpz_tdiv_r_ui(rem, dividend, divisor_limb)
-- Set REM to DIVDEND mod DIVISOR_LIMB.
-Copyright 1991, 1993, 1994, 1996, 1998 Free Software Foundation, Inc.
+Copyright 1991, 1993, 1994, 1996, 1998, 2001 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -24,14 +24,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
unsigned long int
-#if __STDC__
mpz_tdiv_r_ui (mpz_ptr rem, mpz_srcptr dividend, unsigned long int divisor)
-#else
-mpz_tdiv_r_ui (rem, dividend, divisor)
- mpz_ptr rem;
- mpz_srcptr dividend;
- unsigned long int divisor;
-#endif
{
mp_size_t dividend_size;
mp_size_t size;
diff --git a/mpz/tdiv_ui.c b/mpz/tdiv_ui.c
index 6679e3cf5..8e9929e4a 100644
--- a/mpz/tdiv_ui.c
+++ b/mpz/tdiv_ui.c
@@ -1,7 +1,7 @@
/* mpz_tdiv_ui(dividend, divisor_limb)
-- Return DIVDEND mod DIVISOR_LIMB.
-Copyright 1991, 1993, 1994, 1996, 1997, 1998 Free Software Foundation,
+Copyright 1991, 1993, 1994, 1996, 1997, 1998, 2001 Free Software Foundation,
Inc.
This file is part of the GNU MP Library.
@@ -25,13 +25,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
unsigned long int
-#if __STDC__
mpz_tdiv_ui (mpz_srcptr dividend, unsigned long int divisor)
-#else
-mpz_tdiv_ui (dividend, divisor)
- mpz_srcptr dividend;
- unsigned long int divisor;
-#endif
{
mp_size_t dividend_size;
mp_size_t size;
diff --git a/mpz/ui_pow_ui.c b/mpz/ui_pow_ui.c
index a0a57a2e3..1326f4e7a 100644
--- a/mpz/ui_pow_ui.c
+++ b/mpz/ui_pow_ui.c
@@ -1,6 +1,6 @@
/* mpz_ui_pow_ui(res, base, exp) -- Set RES to BASE**EXP.
-Copyright 1991, 1993, 1994, 1996, 1997, 2000 Free Software Foundation,
+Copyright 1991, 1993, 1994, 1996, 1997, 2000, 2001 Free Software Foundation,
Inc.
This file is part of the GNU MP Library.
@@ -28,14 +28,7 @@ MA 02111-1307, USA. */
static void mpz_pow2 _PROTO ((mpz_ptr r, mp_limb_t blimb, unsigned long int e, mp_limb_t rl));
void
-#if __STDC__
mpz_ui_pow_ui (mpz_ptr r, unsigned long int b, unsigned long int e)
-#else
-mpz_ui_pow_ui (r, b, e)
- mpz_ptr r;
- unsigned long int b;
- unsigned long int e;
-#endif
{
mp_limb_t blimb = b;
mp_limb_t rl;
@@ -74,15 +67,7 @@ mpz_ui_pow_ui (r, b, e)
/* Multi-precision part of expontialization code. */
static void
-#if __STDC__
mpz_pow2 (mpz_ptr r, mp_limb_t blimb, unsigned long int e, mp_limb_t rl)
-#else
-mpz_pow2 (r, blimb, e, rl)
- mpz_ptr r;
- mp_limb_t blimb;
- unsigned long int e;
- mp_limb_t rl;
-#endif
{
mp_ptr rp, tp;
mp_size_t ralloc, rsize;
diff --git a/mpz/xor.c b/mpz/xor.c
index de6c55906..394075cb3 100644
--- a/mpz/xor.c
+++ b/mpz/xor.c
@@ -1,6 +1,6 @@
/* mpz_xor -- Logical xor.
-Copyright 1991, 1993, 1994, 1996, 1997, 2000 Free Software Foundation,
+Copyright 1991, 1993, 1994, 1996, 1997, 2000, 2001 Free Software Foundation,
Inc.
This file is part of the GNU MP Library.
@@ -24,14 +24,7 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
void
-#if __STDC__
mpz_xor (mpz_ptr res, mpz_srcptr op1, mpz_srcptr op2)
-#else
-mpz_xor (res, op1, op2)
- mpz_ptr res;
- mpz_srcptr op1;
- mpz_srcptr op2;
-#endif
{
mp_srcptr op1_ptr, op2_ptr;
mp_size_t op1_size, op2_size;