gcl-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gcl-devel] GCL GMP Code Clean Up Changes (LARGE).


From: Robert Alan Byer
Subject: [Gcl-devel] GCL GMP Code Clean Up Changes (LARGE).
Date: Sat, 22 Dec 2001 21:43:07 -0500

-----BEGIN PGP SIGNED MESSAGE-----


O.k..

I know I've mentioned some of these code clean-up's before and the talk was 
to wait while it was determined what was really needed in the GMP stuff, 
but I think for NOW it would be good to impliment and sort it all out AFTER 
the code is cleaned up a bit.

(Besides, I have some people that want to help me with the OpenVMS VAX port 
and getting these changes in will help that alot in that I'll have to send 
people are the compile scrips and not alot of code changes for now at least.
There is no hurry on this, but I would like to know when it's done I can
tell people.)

I know that some of these changes are to the GMP tests files which normally 
arn't used, but I think it would be good to clean up to help us poor-old 
porters figure out what's broken in our ports.  Implementing these clean
ups will allow a rather clean compile on OpenVMS Alpha and OpenVMS VAX
platforms of the GMP parts.

Here we go..
(A CVS diff is included at the end.)

gcl/gmp/assert.c
Added "#include <stdllib.h>" for the "abort()" function.

gcl/gmp/extract-dbl.c
Added "#include <stdlib.h>" for the "abort()" function.

gcl/gmp/gmp-impl.h
Minor modifications for OpenVMS.  OpenVMS dosen't have alloca (it does, but 
really dosen't) so use the stack-alloc.h for now.

gcl/gmp/randlc.c
Added "#include <stdlib.h>" for the "abort()" function.

gcl/gmp/randraw.c
Added "#include <stdlib.h>" for the "abort()" function.

gcl/gmp/urandom.h
OpenVMS Alpha modification.  If the platform was Alpha assume that
random() returns a double, which it dosen't (that I know of) for OpenVMS.

gcl/gmp/mpn/generic/gcdext.c
Added "#include <stdlib.h>" for the "abort()" function.

gcl/gmp/mpn/generic/tdiv_qr.c
Added "#include <stdlib.h>" for the "abort()" function.

gcl/gmp/mpn/tests/addmul_1.c
Added "#include <stdlib.h>" for the "abort()" function.  Added
prototype for the mpn_print() function so compiler won't whine.  Modified
for OpenVMS so that <time.h> is included and included definition for
VAX CPU speed.  Also modified the test so it will tell what CPU speed it's
basing the test on.

gcl/gmp/mpn/tests/add_n.c
Added "#include <stdlib.h>" for the "abort()" function.  Added
prototype for the mpn_print() function so compiler won't whine.  Modified
for OpenVMS so that <time.h> is included and included definition for
VAX CPU speed.  Also modified the test so it will tell what CPU speed it's
basing the test on.

gcl/gmp/mpn/tests/copy.c
Added "#include <stdlib.h>" for the "abort()" function.  Added
prototype for the mpn_print() function so compiler won't whine.  Modified
for OpenVMS so that <time.h> is included and included definition for
VAX CPU speed.  Also modified the test so it will tell what CPU speed it's
basing the test on.

gcl/gmp/mpn/tests/divmod_1.c
Added "#include <stdlib.h>" for the "abort()" function.  Modified
for OpenVMS so that <time.h> is included and included definition for
VAX CPU speed.  Also modified the test so it will tell what CPU speed it's
basing the test on.

gcl/gmp/mpn/tests/divrem.c
Added "#include <stdlib.h>" for the "abort()" function.  Modified
for OpenVMS so that <time.h> is included and included definition for
VAX CPU speed.  Also modified the test so it will tell what CPU speed it's
basing the test on.

gcl/gmp/mpn/tests/lshift.c
Added "#include <stdlib.h>" for the "abort()" function.  Added
prototype for the mpn_print() function so compiler won't whine.  Modified
for OpenVMS so that <time.h> is included and included definition for
VAX CPU speed.  Also modified the test so it will tell what CPU speed it's
basing the test on.

gcl/gmp/mpn/tests/Makefile.in
Modified so that the tests will build under Unix platforms.

gcl/gmp/mpn/tests/mul_1.c
Added "#include <stdlib.h>" for the "abort()" function.  Added
prototype for the mpn_print() function so compiler won't whine.  Modified
for OpenVMS so that <time.h> is included and included definition for
VAX CPU speed.  Also modified the test so it will tell what CPU speed it's
basing the test on.

gcl/gmp/mpn/tests/rshift.c
Added "#include <stdlib.h>" for the "abort()" function.  Added
prototype for the mpn_print() function so compiler won't whine.  Modified
for OpenVMS so that <time.h> is included and included definition for
VAX CPU speed.  Also modified the test so it will tell what CPU speed it's
basing the test on.

gcl/gmp/mpn/tests/submul_1.c
Added "#include <stdlib.h>" for the "abort()" function.  Added
prototype for the mpn_print() function so compiler won't whine.  Modified
for OpenVMS so that <time.h> is included and included definition for
VAX CPU speed.  Also modified the test so it will tell what CPU speed it's
basing the test on.

gcl/gmp/mpn/tests/sub_n.c
Added "#include <stdlib.h>" for the "abort()" function.  Added
prototype for the mpn_print() function so compiler won't whine.  Modified
for OpenVMS so that <time.h> is included and included definition for
VAX CPU speed.  Also modified the test so it will tell what CPU speed it's
basing the test on.

gcl/gmp/mpz/bin_uiui.c
Added "#include <stdlib.h>" for the "abort()" function.

gcl/gmp/mpz/fac_ui.c
Added "#include <stdlib.h>" for the "abort()" function.

gcl/gmp/mpz/pprime_p.c
Added "#include <stdlib.h>" for the "abort()" function.

gcl/gmp/mpz/root.c
Added "#include <stdlib.h>" for the "abort()" function.

gcl/gmp/mpz/set_d.c
Added "#include <stdlib.h>" for the "abort()" function.

gcl/gmp/mpz/tests/bit.c
Needed to include "<stdlib.h>" and "<string.h>".  Added prototype for
mpz_out_str function to keep compiler from whining.

gcl/gmp/mpz/tests/convert.c
Needed to include "<stdlib.h>" and "<string.h>".  Added prototype for
mpz_out_str function to keep compiler from whining.

gcl/gmp/mpz/tests/dive.c
Needed to include "<stdlib.h>" and "<string.h>".  Added prototypes for
mpz_out_str and dump_abort functions to keep compiler from whining.

gcl/gmp/mpz/tests/io.c
Needed to include "<stdlib.h>", "<string.h>" and "<unistd.h>".  Added
prototypes for mpz_out_str and npz_inp_str functions to keep compiler
from whining.

gcl/gmp/mpz/tests/logic.c
Needed to include "<stdlib.h>" and "<string.h>".  Added prototypes for
mpz_out_str and dump_abort functions to keep compiler from whining.

gcl/gmp/mpz/tests/Makefile.in
Modified so that the tests will build under Unix platforms.

gcl/gmp/mpz/tests/reuse.c
Needed to include "<stdlib.h>" and "<string.h>".  Added prototypes for
mpz_out_str and dump_abort functions to keep compiler from whining.

gcl/gmp/mpz/tests/t-2exp.c
Needed to include "<stdlib.h>" and "<string.h>".

gcl/gmp/mpz/tests/t-bin.c
Needed to include "<stdlib.h>" and "<string.h>".  Added prototype for
mpz_out_str function to keep compiler from whining.

gcl/gmp/mpz/tests/t-fdiv.c
Needed to include "<stdlib.h>" and "<string.h>".  Added prototypes for
mpz_out_str and dump_abort functions to keep compiler from whining.

gcl/gmp/mpz/tests/t-fdiv_ui.c
Needed to include "<stdlib.h>" and "<string.h>".  Added prototypes for
mpz_out_str and dump_abort functions to keep compiler from whining.

gcl/gmp/mpz/tests/t-gcd.c
Needed to include "<stdlib.h>" and "<string.h>".  Added prototypes for
mpz_out_str and dump_abort functions to keep compiler from whining.

gcl/gmp/mpz/tests/t-jac.c
Needed to include "<stdlib.h>" and "<string.h>".  Added prototype for
mpz_out_str function to keep compiler from whining.

gcl/gmp/mpz/tests/t-misc.c
Needed to include "<stdlib.h>" and "<string.h>".  Added prototype for
mpz_out_str function to keep compiler from whining.

gcl/gmp/mpz/tests/t-mul.c
Needed to include "<stdlib.h>" and "<string.h>".  Added prototypes for
mpz_out_str and dump_abort functions to keep compiler from whining.

gcl/gmp/mpz/tests/t-powm.c
Needed to include "<stdlib.h>" and "<string.h>".  Added prototype for
mpz_out_str functions to keep compiler from whining.

gcl/gmp/mpz/tests/t-powm_ui.c
Needed to include "<stdlib.h>" and "<string.h>".  Added prototype for
mpz_out_str function to keep compiler from whining.

gcl/gmp/mpz/tests/t-pow_ui.c
Needed to include "<stdlib.h>" and "<string.h>".  Added prototypes for
mpz_out_str functions to keep compiler from whining.

gcl/gmp/mpz/tests/t-root.c
Needed to include "<stdlib.h>" and "<string.h>".  Added prototypes for
mpz_out_str functions to keep compiler from whining.

gcl/gmp/mpz/tests/t-sqrtrem.c
Needed to include "<stdlib.h>" and "<string.h>".  Added prototypes for
mpz_out_str and dump_abort functions to keep compiler from whining.

gcl/gmp/mpz/tests/t-tdiv.c
Needed to include "<stdlib.h>" and "<string.h>".  Added prototypes for
mpz_out_str and dump_abort functions to keep compiler from whining.

gcl/gmp/mpz/tests/t-tdiv_ui.c
Needed to include "<stdlib.h>" and "<string.h>".  Added prototypes for
mpz_out_str and dump_abort functions to keep compiler from whining.

===========================================================================

? gcl/vms
? gcl/gmp/config_h.vms
? gcl/gmp/mpn/tests/make_tests.com
? gcl/gmp/mpz/tests/make_tests.com
? gcl/h/config_h.vms
? gcl/h/gclincl_h.vms
Index: gcl/gmp/assert.c
===================================================================
RCS file: /cvsroot/gcl/gcl/gmp/assert.c,v
retrieving revision 1.1
diff -d -r1.1 assert.c
24a25
> #include <stdlib.h>
27d27
< 
Index: gcl/gmp/extract-dbl.c
===================================================================
RCS file: /cvsroot/gcl/gcl/gmp/extract-dbl.c,v
retrieving revision 1.1
diff -d -r1.1 extract-dbl.c
21a22
> #include <stdlib.h>
Index: gcl/gmp/gmp-impl.h
===================================================================
RCS file: /cvsroot/gcl/gcl/gmp/gmp-impl.h,v
retrieving revision 1.1
diff -d -r1.1 gmp-impl.h
46,47c46,55
< #include <alloca.h>
< #define HAVE_ALLOCA
- ---
> 
> /*
>  * Modification For OpenVMS By Robert Alan Byer <address@hidden>
>  * OpenVMS DECC v6.0-001 dosen't have <alloca.h>.
>  */
> #if !defined(__DECC) && !defined(__VMS)
> #  include <alloca.h>
> #  define HAVE_ALLOCA
> #endif
> 
53c61,62
< #if defined (__DECC)
- ---
> 
> #if defined (__DECC) && !defined(__VMS)
Index: gcl/gmp/randlc.c
===================================================================
RCS file: /cvsroot/gcl/gcl/gmp/randlc.c,v
retrieving revision 1.1
diff -d -r1.1 randlc.c
23a24
> #include <stdlib.h>
Index: gcl/gmp/randraw.c
===================================================================
RCS file: /cvsroot/gcl/gcl/gmp/randraw.c,v
retrieving revision 1.1
diff -d -r1.1 randraw.c
23a24
> #include <stdlib.h>
Index: gcl/gmp/urandom.h
===================================================================
RCS file: /cvsroot/gcl/gcl/gmp/urandom.h,v
retrieving revision 1.1
diff -d -r1.1 urandom.h
32c32
< #if defined (__alpha) && !defined (__URANDOM)
- ---
> #if (defined(__alpha) && !defined(__VMS)) && !defined (__URANDOM)
Index: gcl/gmp/mpn/generic/gcdext.c
===================================================================
RCS file: /cvsroot/gcl/gcl/gmp/mpn/generic/gcdext.c,v
retrieving revision 1.1
diff -d -r1.1 gcdext.c
21a22
> #include <stdlib.h>
Index: gcl/gmp/mpn/generic/tdiv_qr.c
===================================================================
RCS file: /cvsroot/gcl/gcl/gmp/mpn/generic/tdiv_qr.c,v
retrieving revision 1.1
diff -d -r1.1 tdiv_qr.c
33a34
> #include <stdlib.h>
Index: gcl/gmp/mpn/tests/Makefile.in
===================================================================
RCS file: /cvsroot/gcl/gcl/gmp/mpn/tests/Makefile.in,v
retrieving revision 1.1
diff -d -r1.1 Makefile.in
123c123
< LDADD = $(top_builddir)/libgmp.la
- ---
> LDADD = $(top_builddir)/libgmp.a
136c136
< try_LDADD = @CALLING_CONVENTIONS_OBJS@ $(top_builddir)/libgmp.la
- ---
> try_LDADD = @CALLING_CONVENTIONS_OBJS@ $(top_builddir)/libgmp.a
159c159
< add_n_DEPENDENCIES =  $(top_builddir)/libgmp.la
- ---
> add_n_DEPENDENCIES =  $(top_builddir)/libgmp.a
164c164
< addmul_1_DEPENDENCIES =  $(top_builddir)/libgmp.la
- ---
> addmul_1_DEPENDENCIES =  $(top_builddir)/libgmp.a
169c169
< copy_DEPENDENCIES =  $(top_builddir)/libgmp.la
- ---
> copy_DEPENDENCIES =  $(top_builddir)/libgmp.a
174c174
< divmod_1_DEPENDENCIES =  $(top_builddir)/libgmp.la
- ---
> divmod_1_DEPENDENCIES =  $(top_builddir)/libgmp.a
179c179
< divrem_DEPENDENCIES =  $(top_builddir)/libgmp.la
- ---
> divrem_DEPENDENCIES =  $(top_builddir)/libgmp.a
184c184
< lshift_DEPENDENCIES =  $(top_builddir)/libgmp.la
- ---
> lshift_DEPENDENCIES =  $(top_builddir)/libgmp.a
189c189
< mul_1_DEPENDENCIES =  $(top_builddir)/libgmp.la
- ---
> mul_1_DEPENDENCIES =  $(top_builddir)/libgmp.a
194c194
< rshift_DEPENDENCIES =  $(top_builddir)/libgmp.la
- ---
> rshift_DEPENDENCIES =  $(top_builddir)/libgmp.a
199c199
< sub_n_DEPENDENCIES =  $(top_builddir)/libgmp.la
- ---
> sub_n_DEPENDENCIES =  $(top_builddir)/libgmp.a
204c204
< submul_1_DEPENDENCIES =  $(top_builddir)/libgmp.la
- ---
> submul_1_DEPENDENCIES =  $(top_builddir)/libgmp.a
213c213
< tst_addsub_DEPENDENCIES =  $(top_builddir)/libgmp.la
- ---
> tst_addsub_DEPENDENCIES =  $(top_builddir)/libgmp.a
Index: gcl/gmp/mpn/tests/add_n.c
===================================================================
RCS file: /cvsroot/gcl/gcl/gmp/mpn/tests/add_n.c,v
retrieving revision 1.1
diff -d -r1.1 add_n.c
22a23
> #include <stdlib.h>
26c27,29
< #if defined (USG) || defined (__SVR4) || defined (_UNICOS) || defined (__hpux)
- ---
> int mpn_print (mp_ptr p, mp_size_t size);
> 
> #if defined (USG) || defined (__SVR4) || defined (_UNICOS) || defined 
> (__hpux) || (defined(__DECC) && defined(__VMS))
71a75,76
> #elif defined (__vax)
> #define CLOCK (40 M)
143a149,152
>   int clock_mhz;
> 
>   clock_mhz = CLOCK / 1000000;
>   printf("\r\nTest Times Are Based On A CPU Clock Speed Of 
> %dMHz.\r\n\r\n",clock_mhz);
Index: gcl/gmp/mpn/tests/addmul_1.c
===================================================================
RCS file: /cvsroot/gcl/gcl/gmp/mpn/tests/addmul_1.c,v
retrieving revision 1.1
diff -d -r1.1 addmul_1.c
22a23
> #include <stdlib.h>
27c28,30
< #if defined (USG) || defined (__SVR4) || defined (_UNICOS) || defined (__hpux)
- ---
> int mpn_print (mp_ptr p, mp_size_t size);
> 
> #if defined (USG) || defined (__SVR4) || defined (_UNICOS) || defined 
> (__hpux) || (defined(__DECC) && defined(__VMS))
72a76,77
> #elif defined (__vax)
> #define CLOCK (40 M)
142a148,151
>   int clock_mhz;
> 
>   clock_mhz = CLOCK / 1000000;
>   printf("\r\nTest Times Are Based On A CPU Clock Speed Of 
> %dMHz.\r\n\r\n",clock_mhz);
Index: gcl/gmp/mpn/tests/copy.c
===================================================================
RCS file: /cvsroot/gcl/gcl/gmp/mpn/tests/copy.c,v
retrieving revision 1.1
diff -d -r1.1 copy.c
22a23
> #include <stdlib.h>
26c27,29
< #if defined (USG) || defined (__SVR4) || defined (_UNICOS) || defined (__hpux)
- ---
> int mpn_print (mp_ptr p, mp_size_t size);
> 
> #if defined (USG) || defined (__SVR4) || defined (_UNICOS) || defined 
> (__hpux)|| (defined(__DECC) && defined(__VMS))
71a75,76
> #elif defined (__vax)
> #define CLOCK (40 M)
117a123,126
>   int clock_mhz;
> 
>   clock_mhz = CLOCK / 1000000;
>   printf("\r\nTest Times Are Based On A CPU Clock Speed Of 
> %dMHz.\r\n\r\n",clock_mhz);
Index: gcl/gmp/mpn/tests/divmod_1.c
===================================================================
RCS file: /cvsroot/gcl/gcl/gmp/mpn/tests/divmod_1.c,v
retrieving revision 1.1
diff -d -r1.1 divmod_1.c
22a23
> #include <stdlib.h>
26c27
< #if defined (USG) || defined (__SVR4) || defined (_UNICOS) || defined (__hpux)
- ---
> #if defined (USG) || defined (__SVR4) || defined (_UNICOS) || defined 
> (__hpux) || (defined(__DECC) && defined(__VMS))
71a73,74
> #elif defined (__vax)
> #define CLOCK (40 M)
97a101,104
>   int clock_mhz;
> 
>   clock_mhz = CLOCK / 1000000;
>   printf("\r\nTest Times Are Based On A CPU Clock Speed Of 
> %dMHz.\r\n\r\n",clock_mhz);
Index: gcl/gmp/mpn/tests/divrem.c
===================================================================
RCS file: /cvsroot/gcl/gcl/gmp/mpn/tests/divrem.c,v
retrieving revision 1.1
diff -d -r1.1 divrem.c
22a23
> #include <stdlib.h>
26c27
< #if defined (USG) || defined (__SVR4) || defined (_UNICOS) || defined (__hpux)
- ---
> #if defined (USG) || defined (__SVR4) || defined (_UNICOS) || defined 
> (__hpux) || (defined(__DECC) && defined(__VMS))
71a73,74
> #elif defined (__vax)
> #define CLOCK (40 M)
99a103,106
>   int clock_mhz;
> 
>   clock_mhz = CLOCK / 1000000;
>   printf("\r\nTest Times Are Based On A CPU Clock Speed Of 
> %dMHz.\r\n\r\n",clock_mhz);
Index: gcl/gmp/mpn/tests/lshift.c
===================================================================
RCS file: /cvsroot/gcl/gcl/gmp/mpn/tests/lshift.c,v
retrieving revision 1.1
diff -d -r1.1 lshift.c
22a23
> #include <stdlib.h>
26c27,29
< #if defined (USG) || defined (__SVR4) || defined (_UNICOS) || defined (__hpux)
- ---
> int mpn_print (mp_ptr p, mp_size_t size);
> 
> #if defined (USG) || defined (__SVR4) || defined (_UNICOS) || defined 
> (__hpux) || (defined(__DECC) && defined(__VMS))
71a75,76
> #elif defined (__vax)
> #define CLOCK (40 M)
155a161,164
>   int clock_mhz;
> 
>   clock_mhz = CLOCK / 1000000;
>   printf("\r\nTest Times Are Based On A CPU Clock Speed Of 
> %dMHz.\r\n\r\n",clock_mhz);
Index: gcl/gmp/mpn/tests/mul_1.c
===================================================================
RCS file: /cvsroot/gcl/gcl/gmp/mpn/tests/mul_1.c,v
retrieving revision 1.1
diff -d -r1.1 mul_1.c
22a23
> #include <stdlib.h>
27c28,30
< #if defined (USG) || defined (__SVR4) || defined (_UNICOS) || defined (__hpux)
- ---
> int mpn_print (mp_ptr p, mp_size_t size);
> 
> #if defined (USG) || defined (__SVR4) || defined (_UNICOS) || defined 
> (__hpux) || (defined(__DECC) && defined(__VMS))
72a76,77
> #elif defined (__vax)
> #define CLOCK (40 M)
138a144,147
>   int clock_mhz;
> 
>   clock_mhz = CLOCK / 1000000;
>   printf("\r\nTest Times Are Based On A CPU Clock Speed Of 
> %dMHz.\r\n\r\n",clock_mhz);
Index: gcl/gmp/mpn/tests/rshift.c
===================================================================
RCS file: /cvsroot/gcl/gcl/gmp/mpn/tests/rshift.c,v
retrieving revision 1.1
diff -d -r1.1 rshift.c
22a23
> #include <stdlib.h>
26c27,29
< #if defined (USG) || defined (__SVR4) || defined (_UNICOS) || defined (__hpux)
- ---
> int mpn_print (mp_ptr p, mp_size_t size);
> 
> #if defined (USG) || defined (__SVR4) || defined (_UNICOS) || defined 
> (__hpux) || (defined(__DECC) && defined(__VMS))
71a75,76
> #elif defined (__vax)
> #define CLOCK (40 M)
156a162,165
>   int clock_mhz;
> 
>   clock_mhz = CLOCK / 1000000;
>   printf("\r\nTest Times Are Based On A CPU Clock Speed Of 
> %dMHz.\r\n\r\n",clock_mhz);
Index: gcl/gmp/mpn/tests/sub_n.c
===================================================================
RCS file: /cvsroot/gcl/gcl/gmp/mpn/tests/sub_n.c,v
retrieving revision 1.1
diff -d -r1.1 sub_n.c
22a23
> #include <stdlib.h>
26c27,29
< #if defined (USG) || defined (__SVR4) || defined (_UNICOS) || defined (__hpux)
- ---
> int mpn_print (mp_ptr p, mp_size_t size);
> 
> #if defined (USG) || defined (__SVR4) || defined (_UNICOS) || defined 
> (__hpux) || (defined(__DECC) && defined(__VMS))
71a75,76
> #elif defined (__vax)
> #define CLOCK (40 M)
143a149,152
>   int clock_mhz;
> 
>   clock_mhz = CLOCK / 1000000;
>   printf("\r\nTest Times Are Based On A CPU Clock Speed Of 
> %dMHz.\r\n\r\n",clock_mhz);
Index: gcl/gmp/mpn/tests/submul_1.c
===================================================================
RCS file: /cvsroot/gcl/gcl/gmp/mpn/tests/submul_1.c,v
retrieving revision 1.1
diff -d -r1.1 submul_1.c
22a23
> #include <stdlib.h>
27c28,30
< #if defined (USG) || defined (__SVR4) || defined (_UNICOS) || defined (__hpux)
- ---
> int mpn_print (mp_ptr p, mp_size_t size);
> 
> #if defined (USG) || defined (__SVR4) || defined (_UNICOS) || defined 
> (__hpux) || (defined(__DECC) && defined(__VMS))
72a76,77
> #elif defined (__vax)
> #define CLOCK (40 M)
142a148,151
>   int clock_mhz;
> 
>   clock_mhz = CLOCK / 1000000;
>   printf("\r\nTest Times Are Based On A CPU Clock Speed Of 
> %dMHz.\r\n\r\n",clock_mhz);
Index: gcl/gmp/mpz/bin_uiui.c
===================================================================
RCS file: /cvsroot/gcl/gcl/gmp/mpz/bin_uiui.c,v
retrieving revision 1.1
diff -d -r1.1 bin_uiui.c
21a22
> #include <stdlib.h>
25d25
< 
Index: gcl/gmp/mpz/fac_ui.c
===================================================================
RCS file: /cvsroot/gcl/gcl/gmp/mpz/fac_ui.c,v
retrieving revision 1.1
diff -d -r1.1 fac_ui.c
25a26
> #include <stdlib.h>
Index: gcl/gmp/mpz/pprime_p.c
===================================================================
RCS file: /cvsroot/gcl/gcl/gmp/mpz/pprime_p.c,v
retrieving revision 1.1
diff -d -r1.1 pprime_p.c
28a29
> #include <stdlib.h>
Index: gcl/gmp/mpz/root.c
===================================================================
RCS file: /cvsroot/gcl/gcl/gmp/mpz/root.c,v
retrieving revision 1.1
diff -d -r1.1 root.c
29a30
> #include <stdlib.h>
Index: gcl/gmp/mpz/set_d.c
===================================================================
RCS file: /cvsroot/gcl/gcl/gmp/mpz/set_d.c,v
retrieving revision 1.1
diff -d -r1.1 set_d.c
21a22
> #include <stdlib.h>
Index: gcl/gmp/mpz/tests/Makefile.in
===================================================================
RCS file: /cvsroot/gcl/gcl/gmp/mpz/tests/Makefile.in,v
retrieving revision 1.1
diff -d -r1.1 Makefile.in
123c123
< LDADD = $(top_builddir)/libgmp.la
- ---
> LDADD = $(top_builddir)/libgmp.a
153c153
< bit_DEPENDENCIES =  $(top_builddir)/libgmp.la
- ---
> bit_DEPENDENCIES =  $(top_builddir)/libgmp.a
158c158
< convert_DEPENDENCIES =  $(top_builddir)/libgmp.la
- ---
> convert_DEPENDENCIES =  $(top_builddir)/libgmp.a
163c163
< dive_DEPENDENCIES =  $(top_builddir)/libgmp.la
- ---
> dive_DEPENDENCIES =  $(top_builddir)/libgmp.a
168c168
< io_DEPENDENCIES =  $(top_builddir)/libgmp.la
- ---
> io_DEPENDENCIES =  $(top_builddir)/libgmp.a
173c173
< logic_DEPENDENCIES =  $(top_builddir)/libgmp.la
- ---
> logic_DEPENDENCIES =  $(top_builddir)/libgmp.a
178c178
< reuse_DEPENDENCIES =  $(top_builddir)/libgmp.la
- ---
> reuse_DEPENDENCIES =  $(top_builddir)/libgmp.a
183c183
< t_2exp_DEPENDENCIES =  $(top_builddir)/libgmp.la
- ---
> t_2exp_DEPENDENCIES =  $(top_builddir)/libgmp.a
188c188
< t_bin_DEPENDENCIES =  $(top_builddir)/libgmp.la
- ---
> t_bin_DEPENDENCIES =  $(top_builddir)/libgmp.a
193c193
< t_fdiv_DEPENDENCIES =  $(top_builddir)/libgmp.la
- ---
> t_fdiv_DEPENDENCIES =  $(top_builddir)/libgmp.a
198c198
< t_fdiv_ui_DEPENDENCIES =  $(top_builddir)/libgmp.la
- ---
> t_fdiv_ui_DEPENDENCIES =  $(top_builddir)/libgmp.a
203c203
< t_gcd_DEPENDENCIES =  $(top_builddir)/libgmp.la
- ---
> t_gcd_DEPENDENCIES =  $(top_builddir)/libgmp.a
208c208
< t_jac_DEPENDENCIES =  $(top_builddir)/libgmp.la
- ---
> t_jac_DEPENDENCIES =  $(top_builddir)/libgmp.a
213c213
< t_misc_DEPENDENCIES =  $(top_builddir)/libgmp.la
- ---
> t_misc_DEPENDENCIES =  $(top_builddir)/libgmp.a
218c218
< t_mul_DEPENDENCIES =  $(top_builddir)/libgmp.la
- ---
> t_mul_DEPENDENCIES =  $(top_builddir)/libgmp.a
223c223
< t_pow_ui_DEPENDENCIES =  $(top_builddir)/libgmp.la
- ---
> t_pow_ui_DEPENDENCIES =  $(top_builddir)/libgmp.a
228c228
< t_powm_DEPENDENCIES =  $(top_builddir)/libgmp.la
- ---
> t_powm_DEPENDENCIES =  $(top_builddir)/libgmp.a
233c233
< t_powm_ui_DEPENDENCIES =  $(top_builddir)/libgmp.la
- ---
> t_powm_ui_DEPENDENCIES =  $(top_builddir)/libgmp.a
238c238
< t_root_DEPENDENCIES =  $(top_builddir)/libgmp.la
- ---
> t_root_DEPENDENCIES =  $(top_builddir)/libgmp.a
243c243
< t_sqrtrem_DEPENDENCIES =  $(top_builddir)/libgmp.la
- ---
> t_sqrtrem_DEPENDENCIES =  $(top_builddir)/libgmp.a
248c248
< t_tdiv_DEPENDENCIES =  $(top_builddir)/libgmp.la
- ---
> t_tdiv_DEPENDENCIES =  $(top_builddir)/libgmp.a
253c253
< t_tdiv_ui_DEPENDENCIES =  $(top_builddir)/libgmp.la
- ---
> t_tdiv_ui_DEPENDENCIES =  $(top_builddir)/libgmp.a
Index: gcl/gmp/mpz/tests/bit.c
===================================================================
RCS file: /cvsroot/gcl/gcl/gmp/mpz/tests/bit.c,v
retrieving revision 1.1
diff -d -r1.1 bit.c
22a23,24
> #include <stdlib.h>
> #include <string.h>
25a28,34
> 
> size_t
> #if defined(__STDC__)
>   mpz_out_str (FILE *stream, int base, mpz_srcptr x);
> #else
>   mpz_out_str (stream, base, x);
> #endif
Index: gcl/gmp/mpz/tests/convert.c
===================================================================
RCS file: /cvsroot/gcl/gcl/gmp/mpz/tests/convert.c,v
retrieving revision 1.1
diff -d -r1.1 convert.c
22a23,24
> #include <stdlib.h>
> #include <string.h>
25a28,34
> 
> size_t
> #if defined(__STDC__)
>   mpz_out_str (FILE *stream, int base, mpz_srcptr x);
> #else
>   mpz_out_str (stream, base, x);
> #endif
Index: gcl/gmp/mpz/tests/dive.c
===================================================================
RCS file: /cvsroot/gcl/gcl/gmp/mpz/tests/dive.c,v
retrieving revision 1.1
diff -d -r1.1 dive.c
22a23,24
> #include <stdlib.h>
> #include <string.h>
25a28,36
> 
> size_t
> #if defined(__STDC__)
>   mpz_out_str (FILE *stream, int base, mpz_srcptr x);
> #else
>   mpz_out_str (stream, base, x);
> #endif
> 
> int dump_abort (mpz_t op1, mpz_t op2);
Index: gcl/gmp/mpz/tests/io.c
===================================================================
RCS file: /cvsroot/gcl/gcl/gmp/mpz/tests/io.c,v
retrieving revision 1.1
diff -d -r1.1 io.c
22a23,25
> #include <stdlib.h>
> #include <string.h>
> #include <unistd.h>
25a29,36
> 
> #if defined(__STDC__)
>   size_t mpz_out_str (FILE *stream, int base, mpz_srcptr x);
>   size_t mpz_inp_str (mpz_ptr x, FILE *stream, int base);
> #else
>   size_t mpz_out_str (stream, base, x);
>   size_t mpz_inp_str (x, stream, base);
> #endif
Index: gcl/gmp/mpz/tests/logic.c
===================================================================
RCS file: /cvsroot/gcl/gcl/gmp/mpz/tests/logic.c,v
retrieving revision 1.1
diff -d -r1.1 logic.c
22a23,24
> #include <stdlib.h>
> #include <string.h>
25a28,36
> 
> size_t
> #if defined(__STDC__)
>   mpz_out_str (FILE *stream, int base, mpz_srcptr x);
> #else
>   mpz_out_str (stream, base, x);
> #endif
> 
> int dump_abort();
Index: gcl/gmp/mpz/tests/reuse.c
===================================================================
RCS file: /cvsroot/gcl/gcl/gmp/mpz/tests/reuse.c,v
retrieving revision 1.1
diff -d -r1.1 reuse.c
28a29,30
> #include <stdlib.h>
> #include <string.h>
31a34,42
> 
> size_t
> #if defined(__STDC__)
>   mpz_out_str (FILE *stream, int base, mpz_srcptr x);
> #else
>   mpz_out_str (stream, base, x);
> #endif
> 
> int dump_abort (char *name, mpz_t in1, mpz_t in2, mpz_t in3);
Index: gcl/gmp/mpz/tests/t-2exp.c
===================================================================
RCS file: /cvsroot/gcl/gcl/gmp/mpz/tests/t-2exp.c,v
retrieving revision 1.1
diff -d -r1.1 t-2exp.c
23a24,25
> #include <stdlib.h>
> #include <string.h>
Index: gcl/gmp/mpz/tests/t-bin.c
===================================================================
RCS file: /cvsroot/gcl/gcl/gmp/mpz/tests/t-bin.c,v
retrieving revision 1.1
diff -d -r1.1 t-bin.c
24a25,26
> #include <stdlib.h>
> #include <string.h>
27a30,35
> size_t
> #if defined(__STDC__)
>   mpz_out_str (FILE *stream, int base, mpz_srcptr x);
> #else
>   mpz_out_str (stream, base, x);
> #endif
Index: gcl/gmp/mpz/tests/t-fdiv.c
===================================================================
RCS file: /cvsroot/gcl/gcl/gmp/mpz/tests/t-fdiv.c,v
retrieving revision 1.1
diff -d -r1.1 t-fdiv.c
23a24,25
> #include <stdlib.h>
> #include <string.h>
26a29,37
> 
> size_t
> #if defined(__STDC__)
>   mpz_out_str (FILE *stream, int base, mpz_srcptr x);
> #else
>   mpz_out_str (stream, base, x);
> #endif
> 
> int dump_abort (mpz_t dividend, mpz_t divisor);
Index: gcl/gmp/mpz/tests/t-fdiv_ui.c
===================================================================
RCS file: /cvsroot/gcl/gcl/gmp/mpz/tests/t-fdiv_ui.c,v
retrieving revision 1.1
diff -d -r1.1 t-fdiv_ui.c
23a24,25
> #include <stdlib.h>
> #include <string.h>
26a29,37
> 
> size_t
> #if defined(__STDC__)
>    mpz_out_str (FILE *stream, int base, mpz_srcptr x);
> #else
>   mpz_out_str (stream, base, x);
> #endif
> 
> int dump_abort (mpz_t dividend, mp_limb_t divisor);
Index: gcl/gmp/mpz/tests/t-gcd.c
===================================================================
RCS file: /cvsroot/gcl/gcl/gmp/mpz/tests/t-gcd.c,v
retrieving revision 1.1
diff -d -r1.1 t-gcd.c
23a24,25
> #include <stdlib.h>
> #include <string.h>
26a29,37
> 
> size_t
> #if defined(__STDC__)
>   mpz_out_str (FILE *stream, int base, mpz_srcptr x);
> #else
>   mpz_out_str (stream, base, x);
> #endif
> 
> int dump_abort (mpz_t op1, mpz_t op2);
Index: gcl/gmp/mpz/tests/t-jac.c
===================================================================
RCS file: /cvsroot/gcl/gcl/gmp/mpz/tests/t-jac.c,v
retrieving revision 1.1
diff -d -r1.1 t-jac.c
40a41,42
> #include <stdlib.h>
> #include <string.h>
43a46,51
> size_t
> #if defined(__STDC__)
>   mpz_out_str (FILE *stream, int base, mpz_srcptr x);
> #else
>   mpz_out_str (stream, base, x);
> #endif
Index: gcl/gmp/mpz/tests/t-misc.c
===================================================================
RCS file: /cvsroot/gcl/gcl/gmp/mpz/tests/t-misc.c,v
retrieving revision 1.1
diff -d -r1.1 t-misc.c
24a25,26
> #include <stdlib.h>
> #include <string.h>
26a29,35
> 
> size_t
> #if defined(__STDC__)
>   mpz_out_str (FILE *stream, int base, mpz_srcptr x);
> #else
>   mpz_out_str (stream, base, x);
> #endif
Index: gcl/gmp/mpz/tests/t-mul.c
===================================================================
RCS file: /cvsroot/gcl/gcl/gmp/mpz/tests/t-mul.c,v
retrieving revision 1.1
diff -d -r1.1 t-mul.c
22a23,24
> #include <stdlib.h>
> #include <string.h>
26a29,38
> 
> size_t
> #if defined(__STDC__)
>   mpz_out_str (FILE *stream, int base, mpz_srcptr x);
> #else
>   mpz_out_str (stream, base, x);
> #endif
> 
> int dump_abort (char *s, mpz_t multiplier, mpz_t multiplicand, 
>                 mpz_t product, mpz_t ref_product);
Index: gcl/gmp/mpz/tests/t-pow_ui.c
===================================================================
RCS file: /cvsroot/gcl/gcl/gmp/mpz/tests/t-pow_ui.c,v
retrieving revision 1.1
diff -d -r1.1 t-pow_ui.c
22a23,24
> #include <stdlib.h>
> #include <string.h>
25a28,34
> 
> size_t
> #if defined(__STDC__)
>   mpz_out_str (FILE *stream, int base, mpz_srcptr x);
> #else
>   mpz_out_str (stream, base, x);
> #endif
Index: gcl/gmp/mpz/tests/t-powm.c
===================================================================
RCS file: /cvsroot/gcl/gcl/gmp/mpz/tests/t-powm.c,v
retrieving revision 1.1
diff -d -r1.1 t-powm.c
23a24,25
> #include <stdlib.h>
> #include <string.h>
26a29,35
> 
> size_t
> #if defined(__STDC__)
>   mpz_out_str (FILE *stream, int base, mpz_srcptr x);
> #else
>   mpz_out_str (stream, base, x);
> #endif
Index: gcl/gmp/mpz/tests/t-powm_ui.c
===================================================================
RCS file: /cvsroot/gcl/gcl/gmp/mpz/tests/t-powm_ui.c,v
retrieving revision 1.1
diff -d -r1.1 t-powm_ui.c
22a23,24
> #include <stdlib.h>
> #include <string.h>
25a28,34
> 
> size_t
> #if defined(__STDC__)
>   mpz_out_str (FILE *stream, int base, mpz_srcptr x);
> #else
>   mpz_out_str (stream, base, x);
> #endif
Index: gcl/gmp/mpz/tests/t-root.c
===================================================================
RCS file: /cvsroot/gcl/gcl/gmp/mpz/tests/t-root.c,v
retrieving revision 1.1
diff -d -r1.1 t-root.c
22a23,24
> #include <stdlib.h>
> #include <string.h>
25a28,34
> 
> size_t
> #if defined(__STDC__)
>   mpz_out_str (FILE *stream, int base, mpz_srcptr x);
> #else
>   mpz_out_str (stream, base, x);
> #endif
Index: gcl/gmp/mpz/tests/t-sqrtrem.c
===================================================================
RCS file: /cvsroot/gcl/gcl/gmp/mpz/tests/t-sqrtrem.c,v
retrieving revision 1.1
diff -d -r1.1 t-sqrtrem.c
22a23,24
> #include <stdlib.h>
> #include <string.h>
25a28,36
> 
> size_t
> #if defined(__STDC__)
>   mpz_out_str (FILE *stream, int base, mpz_srcptr x);
> #else
>   mpz_out_str (stream, base, x);
> #endif
> 
> int dump_abort (mpz_t x2, mpz_t x, mpz_t rem);
Index: gcl/gmp/mpz/tests/t-tdiv.c
===================================================================
RCS file: /cvsroot/gcl/gcl/gmp/mpz/tests/t-tdiv.c,v
retrieving revision 1.1
diff -d -r1.1 t-tdiv.c
23a24,25
> #include <stdlib.h>
> #include <string.h>
26a29,37
> 
> size_t
> #if defined(__STDC__)
>   mpz_out_str (FILE *stream, int base, mpz_srcptr x);
> #else
>   mpz_out_str (stream, base, x);
> #endif
> 
> int dump_abort (mpz_t dividend, mpz_t divisor);
Index: gcl/gmp/mpz/tests/t-tdiv_ui.c
===================================================================
RCS file: /cvsroot/gcl/gcl/gmp/mpz/tests/t-tdiv_ui.c,v
retrieving revision 1.1
diff -d -r1.1 t-tdiv_ui.c
23a24,25
> #include <stdlib.h>
> #include <string.h>
26a29,37
> 
> size_t
> #if defined(__STDC__)
>   mpz_out_str (FILE *stream, int base, mpz_srcptr x);
> #else
>   mpz_out_str (stream, base, x);
> #endif
> 
> int dump_abort (mpz_t dividend, mp_limb_t divisor);

===========================================================================


 +------------------+--------------------------+---------------+
 | Robert Alan Byer | address@hidden | ICQ #65926579 |
 +------------------+--------------------------+---------------+
 | Send an E-mail request to obtain a copy of my PGP key.      |
 +-------------------------------------------------------------+
 | "It is by caffeine alone I set my mind in motion.  It is by |
 |  cans of cola the thoughts aquire speed, the hands acquire  |
 |  shakes, the shakes become a warning.  It is by caffeine    |
 |  alone I set my mind in motion."                            |
 +-------------------------------------------------------------+


-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv

iQEVAwUBPCVEtqVSqzlBVJbBAQEkCgf8DsfeE8566cbTVNb61CMXSb3YumrxJyBz
KmgYoqOY8onGfP/qHAoQdIANbIsYTPPrN7ONlwuoCMAqywvuabnig9T1D5CjGwr8
BL42BMrN08mbJ8pc6UBngOR6uDaSFtWXaQ8gPHfcsrRsajbwm4aSMNRqGTP7tMWu
hGvHNqrTBEWJ4zcnAkx90c7T9V4bs0+JbECL17G2GEnXWk4YoDl+BIN0CcIkUvBl
UBRU48wjTRzBPiSly1rZ26NGlRlJ6DadU0Fch5EKPVXmIWappb8LUC/O8TOQNB5Z
SAeh8B4KUpCiye8unyONeYDfOcuSs6lfmpaNRXzfqFF8oN+6biaZCw==
=PNnw
-----END PGP SIGNATURE-----



reply via email to

[Prev in Thread] Current Thread [Next in Thread]