Annotation of OpenXM_contrib2/asir2000/include/ca.h, Revision 1.21
1.4 noro 1: /*
2: * Copyright (c) 1994-2000 FUJITSU LABORATORIES LIMITED
3: * All rights reserved.
4: *
5: * FUJITSU LABORATORIES LIMITED ("FLL") hereby grants you a limited,
6: * non-exclusive and royalty-free license to use, copy, modify and
7: * redistribute, solely for non-commercial and non-profit purposes, the
8: * computer program, "Risa/Asir" ("SOFTWARE"), subject to the terms and
9: * conditions of this Agreement. For the avoidance of doubt, you acquire
10: * only a limited right to use the SOFTWARE hereunder, and FLL or any
11: * third party developer retains all rights, including but not limited to
12: * copyrights, in and to the SOFTWARE.
13: *
14: * (1) FLL does not grant you a license in any way for commercial
15: * purposes. You may use the SOFTWARE only for non-commercial and
16: * non-profit purposes only, such as academic, research and internal
17: * business use.
18: * (2) The SOFTWARE is protected by the Copyright Law of Japan and
19: * international copyright treaties. If you make copies of the SOFTWARE,
20: * with or without modification, as permitted hereunder, you shall affix
21: * to all such copies of the SOFTWARE the above copyright notice.
22: * (3) An explicit reference to this SOFTWARE and its copyright owner
23: * shall be made on your publication or presentation in any form of the
24: * results obtained by use of the SOFTWARE.
25: * (4) In the event that you modify the SOFTWARE, you shall notify FLL by
1.5 noro 26: * e-mail at risa-admin@sec.flab.fujitsu.co.jp of the detailed specification
1.4 noro 27: * for such modification or the source code of the modified part of the
28: * SOFTWARE.
29: *
30: * THE SOFTWARE IS PROVIDED AS IS WITHOUT ANY WARRANTY OF ANY KIND. FLL
31: * MAKES ABSOLUTELY NO WARRANTIES, EXPRESSED, IMPLIED OR STATUTORY, AND
32: * EXPRESSLY DISCLAIMS ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS
33: * FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT OF THIRD PARTIES'
34: * RIGHTS. NO FLL DEALER, AGENT, EMPLOYEES IS AUTHORIZED TO MAKE ANY
35: * MODIFICATIONS, EXTENSIONS, OR ADDITIONS TO THIS WARRANTY.
36: * UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, TORT, CONTRACT,
37: * OR OTHERWISE, SHALL FLL BE LIABLE TO YOU OR ANY OTHER PERSON FOR ANY
38: * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, PUNITIVE OR CONSEQUENTIAL
39: * DAMAGES OF ANY CHARACTER, INCLUDING, WITHOUT LIMITATION, DAMAGES
40: * ARISING OUT OF OR RELATING TO THE SOFTWARE OR THIS AGREEMENT, DAMAGES
41: * FOR LOSS OF GOODWILL, WORK STOPPAGE, OR LOSS OF DATA, OR FOR ANY
42: * DAMAGES, EVEN IF FLL SHALL HAVE BEEN INFORMED OF THE POSSIBILITY OF
43: * SUCH DAMAGES, OR FOR ANY CLAIM BY ANY OTHER PARTY. EVEN IF A PART
44: * OF THE SOFTWARE HAS BEEN DEVELOPED BY A THIRD PARTY, THE THIRD PARTY
45: * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE,
46: * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE.
47: *
1.21 ! noro 48: * $OpenXM: OpenXM_contrib2/asir2000/include/ca.h,v 1.20 2001/09/03 01:04:27 noro Exp $
1.4 noro 49: */
1.1 noro 50: #include <stdio.h>
51:
52: #if defined(hpux)
53: #include <netinet/in.h>
54: # define setbuffer(FP,buf,siz) setvbuf(FP,buf,_IOFBF,siz)
55: #endif
56:
57: #if defined(VISUAL)
58: #include <stdlib.h>
59: #endif
60:
61: #if defined(linux) || (defined(sun) && !defined(SYSV)) || defined(news5000) || (defined(mips) && defined(ultrix))
62: #include <alloca.h>
63: #endif
64:
65: #if (defined(sun) && defined(SYSV))
66: #define alloca(x) __builtin_alloca(x)
67: #endif
68:
69: #if defined(VISUAL)
70: #include <malloc.h>
71: #endif
72:
73: #if 0
74: #include <sys/types.h>
75: typedef caddr_t pointer;
76: #endif
77:
78: typedef void * pointer;
79:
80: #if defined(VISUAL)
81: #include <string.h>
82: #define index(s,c) strchr(s,c)
83: #define bzero(s,len) memset(s,0,len)
84: #define bcopy(x,y,len) memcpy(y,x,len)
85: #endif
86:
87: #define COPY(a,b) ((b)=(a))
88: #define FREEN(p)
89: #define FREEQ(p)
90: #define FREE(p)
91: #define INITRC(p)
92:
93: /* data structures */
94:
95: #define O_N 1
96: #define O_P 2
97: #define O_R 3
98: #define O_LIST 4
99: #define O_VECT 5
100: #define O_MAT 6
101: #define O_STR 7
102: #define O_COMP 8
103: #define O_DP 9
104: #define O_USINT 10
105: #define O_ERR 11
106: #define O_GF2MAT 12
107: #define O_MATHCAP 13
108: #define O_F 14
109: #define O_GFMMAT 15
1.6 noro 110: #define O_BYTEARRAY 16
1.13 noro 111: #define O_QUOTE 17
1.1 noro 112: #define O_VOID -1
113:
114: #define N_Q 0
115: #define N_R 1
116: #define N_A 2
117: #define N_B 3
118: #define N_C 4
119: #define N_M 5
120: #define N_LM 6
121: #define N_GF2N 7
122: #define N_GFPN 8
1.12 noro 123: #define N_GFS 9
1.21 ! noro 124: #define N_GFSN 10
1.1 noro 125:
126: #define ORD_REVGRADLEX 0
127: #define ORD_GRADLEX 1
128: #define ORD_LEX 2
129:
130: #if LONG_IS_32BIT
131: #if defined(VISUAL)
132: typedef _int64 L;
133: typedef unsigned _int64 UL;
134: #else
135: typedef long long L;
136: typedef unsigned long long UL;
137: #endif
138: #else
139: typedef long L;
140: typedef unsigned long UL;
141: #endif
142:
143: typedef struct oN {
144: int p;
145: unsigned int b[1];
146: } *N;
147:
148: typedef struct oUP2 {
149: int w;
150: unsigned int b[1];
151: } *UP2;
152:
153: typedef struct _oUP2 {
154: int w;
155: unsigned int *b;
156: } *_UP2;
157:
158: #define UP2_DENSE 0
159: #define UP2_SPARSE 1
160:
161: typedef struct oGEN_UP2 {
162: int id;
163: UP2 dense;
164: UP2 sparse;
165: } *GEN_UP2;
166:
167: typedef struct oV {
168: char *name;
169: pointer attr;
170: pointer priv;
171: } *V;
172:
173: typedef struct oQ {
174: short id;
175: char nid;
176: char sgn;
177: N nm;
178: N dn;
179: } *Q;
180:
181: typedef struct oReal {
182: short id;
183: char nid;
184: char pad;
185: double body;
186: } *Real;
187:
188: typedef struct oAlg {
189: short id;
190: char nid;
191: char pad;
192: struct oObj *body;
193: } *Alg;
194:
195: typedef struct oBF {
196: short id;
197: char nid;
198: char pad;
199: long body[1];
200: } *BF;
201:
202: typedef struct oC {
203: short id;
204: char nid;
205: char pad;
206: struct oNum *r,*i;
207: } *C;
208:
209: typedef struct oLM {
210: short id;
211: char nid;
212: char pad;
213: struct oN *body;
214: } *LM;
215:
216: typedef struct oGF2N {
217: short id;
218: char nid;
219: char pad;
220: struct oUP2 *body;
221: } *GF2N;
222:
223: typedef struct oGFPN {
224: short id;
225: char nid;
226: char pad;
227: struct oUP *body;
228: } *GFPN;
229:
230: typedef struct oNum {
231: short id;
232: char nid;
233: char pad;
234: } *Num;
235:
236: typedef struct oMQ {
237: short id;
238: char nid;
239: char pad;
240: int cont;
241: } *MQ;
242:
1.12 noro 243: typedef struct oGFS {
244: short id;
245: char nid;
246: char pad;
247: int cont;
248: } *GFS;
249:
1.21 ! noro 250: typedef struct oGFSN {
1.20 noro 251: short id;
252: char nid;
253: char pad;
254: struct oUM *body;
1.21 ! noro 255: } *GFSN;
1.12 noro 256:
1.1 noro 257: typedef struct oP {
258: short id;
259: short pad;
260: V v;
261: struct oDCP *dc;
262: } *P;
263:
264: typedef struct oR {
265: short id;
266: short reduced;
267: P nm;
268: P dn;
269: } *R;
270:
271: typedef struct oVECT {
272: short id;
273: short pad;
274: int len;
275: pointer *body;
276: } *VECT;
277:
278: typedef struct oMAT {
279: short id;
280: short pad;
281: int row,col;
282: pointer **body;
283: } *MAT;
284:
285: typedef struct oGF2MAT {
286: short id;
287: short pad;
288: int row,col;
289: unsigned int **body;
290: } *GF2MAT, *GFMMAT;
291:
292: typedef struct oLIST {
293: short id;
294: short pad;
295: struct oNODE *body;
296: } *LIST;
297:
298: typedef struct oSTRING {
299: short id;
300: short pad;
301: char *body;
302: } *STRING;
303:
304: typedef struct oCOMP {
305: short id;
306: short type;
307: struct oObj *member[1];
308: } *COMP;
309:
310: typedef struct oDP {
311: short id;
312: short nv;
313: int sugar;
314: struct oMP *body;
315: } *DP;
316:
317: typedef struct oUSINT {
318: short id;
319: short pad;
320: unsigned body;
321: } *USINT;
322:
323: typedef struct oERR {
324: short id;
325: short pad;
326: struct oObj *body;
327: } *ERR;
328:
329: typedef struct oMATHCAP {
330: short id;
331: short pad;
332: struct oLIST *body;
333: } *MATHCAP;
334:
1.6 noro 335: typedef struct oBYTEARRAY {
336: short id;
337: short pad;
338: int len;
339: unsigned char *body;
340: } *BYTEARRAY;
341:
1.13 noro 342: typedef struct oQUOTE {
343: short id;
344: short pad;
345: pointer body;
346: } *QUOTE;
347:
1.1 noro 348: typedef struct oObj {
349: short id;
350: short pad;
351: } *Obj;
352:
353: typedef struct oDCP {
354: Q d;
355: P c;
356: struct oDCP *next;
357: } *DCP;
358:
359: typedef struct oMP {
360: struct oDL *dl;
361: P c;
362: struct oMP *next;
363: } *MP;
364:
365: typedef struct oDL {
366: int td;
367: int d[1];
368: } *DL;
369:
370: typedef struct oVL {
371: V v;
372: struct oVL *next;
373: } *VL;
374:
375: typedef struct oNODE {
376: pointer body;
377: struct oNODE *next;
378: } *NODE;
379:
1.16 noro 380: /* univariate poly over small finite field; dense */
1.1 noro 381: typedef struct oUM {
382: int d;
383: int c[1];
384: } *UM;
385:
1.16 noro 386: /* univariate poly with padic coeff */
1.1 noro 387: typedef struct oLUM {
388: int d;
389: int *c[1];
390: } *LUM;
391:
1.16 noro 392: /* bivariate poly over small finite field; dense */
393:
394: typedef struct oBM {
395: int d;
396: UM c[1];
397: } *BM;
398:
1.1 noro 399: typedef struct oML {
400: int n;
401: int mod;
402: int bound;
403: pointer c[1];
404: } *ML;
405:
406: typedef struct oUB {
407: int d;
408: N c[1];
409: } *UB;
410:
411: typedef struct oVN {
412: V v;
413: int n;
414: } *VN;
415:
416: typedef struct oUP {
417: int d;
418: Num c[1];
419: } *UP;
420:
421: typedef struct oDUM {
422: int n;
423: UM f;
424: } *DUM;
425:
426: struct order_pair {
427: int order, length;
428: };
429:
430: struct order_spec {
431: int id;
432: Obj obj;
433: int nv;
434: union {
435: int simple;
436: struct {
437: int length;
438: struct order_pair *order_pair;
439: } block;
440: struct {
441: int row;
442: int **matrix;
443: } matrix;
444: } ord;
445: };
446:
447: /* structure for cputime */
448:
449: struct oEGT {
450: double exectime,gctime;
451: };
452:
453: /* constant */
454:
455: /* ground finite field specification */
456: #define FF_NOT_SET 0
457: #define FF_GFP 1
458: #define FF_GF2N 2
459: #define FF_GFPN 3
1.12 noro 460: #define FF_GFS 4
1.21 ! noro 461: #define FF_GFSN 5
1.11 saito 462:
463: /* include interval.h */
464: #include "interval.h"
1.1 noro 465:
466: #define INDEX 100
467:
468: #if USE_FLOAT
469: typedef float ModNum;
470: #define NPrimes 536
471: #else
472: typedef unsigned int ModNum;
473: #define NPrimes 13681
474: #endif
475:
476: /* general macros */
477: #define MAX(a,b) ((a) > (b) ? (a) : (b) )
478: #define MIN(a,b) ((a) > (b) ? (b) : (a) )
479: #ifdef ABS
480: #undef ABS
481: #endif
482: #define ABS(a) ((a)>0?(a):-(a))
483: #define ID(p) ((p)->id)
484: #define OID(p) (((Obj)(p))->id)
485: #define NID(p) (((Num)(p))->nid)
486: #define BDY(p) ((p)->body)
487: #define VR(p) ((p)->v)
488: #define NAME(p) ((p)->name)
489: #define NEXT(p) ((p)->next)
490: #define NM(q) ((q)->nm)
491: #define DN(q) ((q)->dn)
492: #define SGN(q) ((q)->sgn)
493: #define DC(p) ((p)->dc)
494: #define COEF(p) ((p)->c)
495: #define DEG(p) ((p)->d)
496: #define PL(n) ((n)->p)
497: #define BD(n) ((n)->b)
498: #define CONT(a) ((a)->cont)
499: #define UDEG(f) BD(NM(DEG(DC(f))))[0]
500: #define UCOEF(f) (COEF(DC(f)))
501: #define LC(f) (NUM(f)?(f):COEF(DC(f)))
502:
503: /* memory allocators (W_... : uses alloca) */
504:
505: #if 0
506: #define MALLOC(d) Risa_GC_malloc(d)
507: #define MALLOC_ATOMIC(d) Risa_GC_malloc_atomic(d)
508: #define REALLOC(p,d) Risa_GC_realloc(p,d)
509: #else
510: #define MALLOC(d) GC_malloc(d)
511: #define MALLOC_ATOMIC(d) GC_malloc_atomic(d)
512: #define REALLOC(p,d) GC_realloc(p,d)
513: #endif
514: #define CALLOC(d,e) MALLOC((d)*(e))
515:
516: #if (defined(__GNUC__) || defined(vax) || defined(apollo) || defined(alloca) || defined(VISUAL))
517: #define ALLOCA(d) alloca(d)
518: #else
519: #define ALLOCA(d) MALLOC(d)
520: #endif
521:
522: #define TRUESIZE(type,n,atype) (sizeof(struct type)+MAX((n),0)*sizeof(atype))
523: #define NALLOC(d) ((N)MALLOC_ATOMIC(TRUESIZE(oN,(d)-1,int)))
524: #define UMALLOC(d) ((UM)MALLOC(TRUESIZE(oUM,d,int)))
525: #define UPALLOC(d) ((UP)MALLOC(TRUESIZE(oUP,(d),Num)))
526: #define C_UMALLOC(d) ((UM)MALLOC(TRUESIZE(oUM,d,int)))
527: #define MLALLOC(d) ((ML)MALLOC(TRUESIZE(oML,d,pointer)))
528:
529: #define W_ALLOC(d) ((int *)ALLOCA(((d)+1)*sizeof(int)))
530: #define W_CALLOC(n,type,p) \
531: ((p)=(type *)ALLOCA(((n)+1)*sizeof(type)),\
532: bzero((char *)(p),(int)(((n)+1)*sizeof(type))))
533: #define W_UMALLOC(d) ((UM)ALLOCA(TRUESIZE(oUM,d,int)))
534: #define W_UPALLOC(d) ((UP)ALLOCA(TRUESIZE(oUP,(d),Num)))
535: #define W_MLALLOC(d) ((ML)ALLOCA(TRUESIZE(oML,d,pointer)))
536: #define W_LUMALLOC(n,bound,p)\
537: {\
538: LUM ___q___;\
539: int ___i___,**___c___;\
540: (___q___) = (LUM)ALLOCA(TRUESIZE(oLUM,(n),int *));\
541: DEG(___q___) = n;\
542: for ( ___i___ = 0, ___c___ = (int **)COEF(___q___); ___i___ <= n; ___i___++ ) {\
543: ___c___[___i___] = (int *)ALLOCA(((bound)+1)*sizeof(int));\
544: bzero((char *)___c___[___i___],((bound)+1)*sizeof(int));\
545: }\
546: (p) = ___q___;\
547: }
548:
1.18 noro 549: #define W_BMALLOC(dx,dy,p)\
1.16 noro 550: {\
551: BM ___q___;\
552: int ___i___;\
553: UM *___c___;\
1.18 noro 554: (___q___) = (BM)ALLOCA(TRUESIZE(oBM,(dy),UM));\
555: DEG(___q___) = dy;\
1.16 noro 556: ___c___ = (UM *)COEF(___q___);\
1.18 noro 557: for ( ___i___ = 0; ___i___ <= dy; ___i___++ ) {\
558: ___c___[___i___] = W_UMALLOC(dx);\
559: clearum(___c___[___i___],dx);\
1.16 noro 560: }\
561: (p) = ___q___;\
562: }
563:
1.1 noro 564: #define NEWUP2(q,w)\
565: ((q)=(UP2)MALLOC_ATOMIC(TRUESIZE(oUP2,(w)-1,unsigned int)),\
566: bzero((char *)(q)->b,(w)*sizeof(unsigned int)))
567: #define W_NEWUP2(q,w)\
568: ((q)=(UP2)ALLOCA(TRUESIZE(oUP2,(w)-1,unsigned int)),\
569: bzero((char *)(q)->b,(w)*sizeof(unsigned int)))
570: #define W_NEW_UP2(q,w)\
571: ((q).b=(unsigned int *)ALLOCA((w)*sizeof(unsigned int)))
572:
573: /* cell allocators */
574: #define NEWQ(q) ((q)=(Q)MALLOC(sizeof(struct oQ)),OID(q)=O_N,NID(q)=N_Q)
575: #define NEWMQ(q) ((q)=(MQ)MALLOC_ATOMIC(sizeof(struct oMQ)),OID(q)=O_N,NID(q)=N_M)
1.12 noro 576: #define NEWGFS(q) ((q)=(GFS)MALLOC_ATOMIC(sizeof(struct oGFS)),OID(q)=O_N,NID(q)=N_GFS)
1.21 ! noro 577: #define NEWGFSN(q) ((q)=(GFSN)MALLOC(sizeof(struct oGFSN)),OID(q)=O_N,NID(q)=N_GFSN)
1.1 noro 578: #define NEWP(p) ((p)=(P)MALLOC(sizeof(struct oP)),OID(p)=O_P)
579: #define NEWR(r) ((r)=(R)MALLOC(sizeof(struct oR)),OID(r)=O_R,(r)->reduced=0)
580: #define NEWLIST(l) ((l)=(LIST)MALLOC(sizeof(struct oLIST)),OID(l)=O_LIST)
581: #define NEWVECT(l) ((l)=(VECT)MALLOC(sizeof(struct oVECT)),OID(l)=O_VECT)
582: #define NEWSTR(l) ((l)=(STRING)MALLOC(sizeof(struct oSTRING)),OID(l)=O_STR)
583: #define NEWCOMP(c,n) ((c)=(COMP)MALLOC(sizeof(struct oCOMP)+((n)-1)*sizeof(Obj)),OID(c)=O_COMP)
584: #define NEWDP(d) ((d)=(DP)MALLOC(sizeof(struct oDP)),OID(d)=O_DP)
585: #define NEWUSINT(u) ((u)=(USINT)MALLOC_ATOMIC(sizeof(struct oUSINT)),OID(u)=O_USINT)
586: #define NEWERR(e) ((e)=(ERR)MALLOC(sizeof(struct oERR)),OID(e)=O_ERR)
587: #define NEWMATHCAP(e) ((e)=(MATHCAP)MALLOC(sizeof(struct oMATHCAP)),OID(e)=O_MATHCAP)
1.6 noro 588: #define NEWBYTEARRAY(e) ((e)=(BYTEARRAY)MALLOC(sizeof(struct oBYTEARRAY)),OID(e)=O_BYTEARRAY)
1.13 noro 589: #define NEWQUOTE(e) ((e)=(QUOTE)MALLOC(sizeof(struct oQUOTE)),OID(e)=O_QUOTE)
1.1 noro 590:
591: #define NEWNODE(a) ((a)=(NODE)MALLOC(sizeof(struct oNODE)))
592: #define NEWDC(dc) ((dc)=(DCP)MALLOC(sizeof(struct oDCP)))
593: #define NEWV(v) ((v)=(V)MALLOC(sizeof(struct oV)))
594: #define NEWVL(vl) ((vl)=(VL)MALLOC(sizeof(struct oVL)))
595: #define NEWMP(m) ((m)=(MP)MALLOC(sizeof(struct oMP)))
596:
597: #define NEWMAT(l) ((l)=(MAT)MALLOC(sizeof(struct oMAT)),OID(l)=O_MAT)
598: #define NEWGF2MAT(l) ((l)=(GF2MAT)MALLOC(sizeof(struct oGF2MAT)),OID(l)=O_GF2MAT)
599: #define NEWGFMMAT(l) ((l)=(GFMMAT)MALLOC(sizeof(struct oGF2MAT)),OID(l)=O_GFMMAT)
600: #define NEWReal(q) ((q)=(Real)MALLOC_ATOMIC(sizeof(struct oReal)),OID(q)=O_N,NID(q)=N_R)
601: #define NEWAlg(r) ((r)=(Alg)MALLOC(sizeof(struct oAlg)),OID(r)=O_N,NID(r)=N_A)
602: #define NEWBF(q,l) ((q)=(BF)MALLOC_ATOMIC(TRUESIZE(oBF,(l)-1,long)),OID(q)=O_N,NID(q)=N_B)
603: #define NEWC(r) ((r)=(C)MALLOC(sizeof(struct oC)),OID(r)=O_N,NID(r)=N_C)
604: #define NEWLM(r) ((r)=(LM)MALLOC(sizeof(struct oLM)),OID(r)=O_N,NID(r)=N_LM)
605: #define NEWGF2N(r) ((r)=(GF2N)MALLOC(sizeof(struct oGF2N)),OID(r)=O_N,NID(r)=N_GF2N)
606: #define NEWGFPN(r) ((r)=(GFPN)MALLOC(sizeof(struct oGFPN)),OID(r)=O_N,NID(r)=N_GFPN)
607: #define NEWDL(d,n) \
608: ((d)=(DL)MALLOC_ATOMIC(TRUESIZE(oDL,(n)-1,int)),bzero((char *)(d),TRUESIZE(oDL,(n)-1,int)))
1.9 noro 609: #define NEWDL_NOINIT(d,n) \
610: ((d)=(DL)MALLOC_ATOMIC(TRUESIZE(oDL,(n)-1,int)))
1.1 noro 611:
612: #define MKP(v,dc,p) \
613: (!DEG(dc)?((p)=COEF(dc)):(NEWP(p),VR(p)=(v),DC(p)=(dc),(p)))
614: #define MKV(v,p) \
615: (NEWP(p),VR(p)=(v),NEWDC(DC(p)),\
616: DEG(DC(p))=ONE,COEF(DC(p))=(P)ONE,NEXT(DC(p))=0)
617: #define MKRAT(n,d,r,p) \
618: (NEWR(p),NM(p)=(n),DN(p)=(d),(p)->reduced=(r))
619: #define MKMV(v,p) \
620: (NEWP(p),VR(p)=(v),NEWDC(DC(p)),\
621: DEG(DC(p))=ONE,COEF(DC(p))=(P)ONEM,NEXT(DC(p))=0)
622: #define MKNODE(a,b,c) \
623: (NEWNODE(a),(a)->body=(pointer)b,NEXT(a)=(NODE)(c))
624: #define MKLIST(a,b) (NEWLIST(a),(a)->body=(NODE)(b))
625: #define MKVECT(m,l) \
626: (NEWVECT(m),(m)->len=(l),(m)->body=(pointer *)CALLOC((l),sizeof(pointer)))
627: #define MKMAT(m,r,c) \
628: (NEWMAT(m),(m)->row=(r),(m)->col=(c),(m)->body=(pointer **)almat_pointer((r),(c)))
629: #define TOGF2MAT(r,c,b,m) (NEWGF2MAT(m),(m)->row=(r),(m)->col=(c),(m)->body=(b))
630: #define TOGFMMAT(r,c,b,m) (NEWGFMMAT(m),(m)->row=(r),(m)->col=(c),(m)->body=(b))
631: #define MKSTR(a,b) (NEWSTR(a),(a)->body=(char *)(b))
632: #define MKDP(n,m,d) (NEWDP(d),(d)->nv=(n),BDY(d)=(m))
633: #define MKLM(b,l) (!(b)?(l)=0:(NEWLM(l),(l)->body=(b),(l)))
634: #define MKGF2N(b,l) (!(b)?(l)=0:(NEWGF2N(l),(l)->body=(b),(l)))
635: #define MKGFPN(b,l) (!(b)?(l)=0:(NEWGFPN(l),(l)->body=(b),(l)))
636: #define MKUSINT(u,b) (NEWUSINT(u),(u)->body=(unsigned)(b))
637: #define MKERR(e,b) (NEWERR(e),(e)->body=(Obj)(b))
638: #define MKMATHCAP(e,b) (NEWMATHCAP(e),(e)->body=(LIST)(b))
1.6 noro 639: #define MKBYTEARRAY(m,l) \
640: (NEWBYTEARRAY(m),(m)->len=(l),(m)->body=(char *)MALLOC_ATOMIC((l)),bzero((m)->body,(l)))
1.13 noro 641: #define MKQUOTE(q,b) (NEWQUOTE(q),(q)->body=(pointer)(b))
1.1 noro 642:
643: #define NEXTDC(r,c) \
644: if(!(r)){NEWDC(r);(c)=(r);}else{NEWDC(NEXT(c));(c)=NEXT(c);}
645: #define NEXTNODE(r,c) \
646: if(!(r)){NEWNODE(r);(c)=(r);}else{NEWNODE(NEXT(c));(c)=NEXT(c);}
647: #define NEXTMP(r,c) \
648: if(!(r)){NEWMP(r);(c)=(r);}else{NEWMP(NEXT(c));(c)=NEXT(c);}
1.9 noro 649: #define NEXTMP2(r,c,s) \
650: if(!(r)){(c)=(r)=(s);}else{NEXT(c)=(s);(c)=(s);}
1.1 noro 651:
652: /* convertors */
653: #define NTOQ(n,s,q) \
654: (!(n)?((q)=0):(NEWQ(q),SGN(q)=(s),NM(q)=(n),DN(q)=0,(q)))
655: #define NDTOQ(n,d,s,q) \
656: ((!(d)||UNIN(d))?NTOQ(n,s,q):(NEWQ(q),SGN(q)=(s),NM(q)=(n),DN(q)=(d),(q)))
657: #define DUPQ(p,q) \
658: (NEWQ(q),SGN(q)=SGN(p),NM(q)=NM(p),DN(q)=DN(p))
659: #define STOQ(n,q) \
660: ((!(n))?((q)=(Q)NULL):(NEWQ(q),\
661: SGN(q)=((n)>0?1:-1),NM(q)=NALLOC(1),\
662: PL(NM(q))=1,BD(NM(q))[0]=ABS(n),DN(q)=0,(q)))
663: #define UTOMQ(a,b) \
664: ((a)?(NEWMQ(b),CONT(b)=(unsigned int)(a),(b)):((b)=0))
1.12 noro 665: #define MKGFS(a,b) \
666: ((NEWGFS(b),CONT(b)=(a),(b)))
1.21 ! noro 667: #define MKGFSN(a,b) \
! 668: ((DEG(a)>=0)?(NEWGFSN(b),BDY(b)=(a),(b)):((b)=0))
1.1 noro 669: #define STOMQ(a,b) \
670: ((a)?(NEWMQ(b),CONT(b)=(a),(b)):((b)=0))
671: #define UTON(u,n) \
672: ((!(u))?((n)=(N)NULL):((n)=NALLOC(1),PL(n)=1,BD(n)[0]=(unsigned int)(u),(n)))
673: #define UTOQ(n,q) \
674: ((!(n))?((q)=(Q)NULL):(NEWQ(q),\
675: SGN(q)=1,NM(q)=NALLOC(1),\
676: PL(NM(q))=1,BD(NM(q))[0]=(unsigned int)(n),DN(q)=0,(q)))
677: #define QTOS(q) (!(q)?0:SGN(q)*((int)BD(NM(q))[0]))
678: #define STON(i,n)\
679: (i?((n)=NALLOC(1),PL(n)=1,BD(n)[0]=(i),(n)):((n)=(N)0))
680: #define PTOR(a,b) \
681: (!(a)?((b)=0):(NEWR(b),NM(b)=(a),DN(b)=(P)ONE,(b)->reduced=1,(b)))
682: #define RTOS(a) (!(a)?0:QTOS((Q)NM((R)a)))
683: #define MKReal(a,b) (!(a)?((b)=0):(NEWReal(b),BDY(b)=(a),(b)))
684: #define MKAlg(b,r) \
685: (!(b)?((r)=0):NUM(b)?((r)=(Alg)(b)):(NEWAlg(r),BDY(r)=(Obj)(b),(r)))
686:
1.3 noro 687: #if PARI
688: #define ToReal(a) (!(a)?(double)0.0:REAL(a)?BDY((Real)a):RATN(a)?RatnToReal((Q)a):BIGFLOAT(a)?rtodbl(BDY((BF)a)):0)
689: #else
690: #define ToReal(a) (!(a)?(double)0.0:REAL(a)?BDY((Real)a):RATN(a)?RatnToReal((Q)a):0.0)
691: #endif
1.1 noro 692:
693: /* predicates */
694: #define NUM(p) (OID(p)==O_N)
695: #define RAT(p) (OID(p)==O_R)
696: #define INT(q) (!DN((Q)q))
697: #define RATN(a) (NID(a)==N_Q)
698: #define REAL(a) (NID(a)==N_R)
1.3 noro 699: #define BIGFLOAT(a) (NID(a)==N_B)
1.1 noro 700: #define SFF(a) (NID(a)==N_M)
701: #define UNIQ(q) ((q)&&NUM(q)&&RATN(q)&&(SGN((Q)q)==1)&&UNIN(NM((Q)q))&&(!DN((Q)q)))
702: #define UNIMQ(q) ((q)&&NUM(q)&&SFF(q)&&(CONT((MQ)q)==1))
703: #define MUNIQ(q) ((q)&&NUM(q)&&RATN(q)&&(SGN((Q)q)==-1)&&UNIN(NM((Q)q))&&(!DN((Q)q)))
704: #define MUNIMQ(q) ((q)&&NUM(q)&&SFF(q)&&(CONT((MQ)q)==-1))
705: #define UNIN(n) ((n)&&(PL(n)==1)&&(BD(n)[0]==1))
706: #define EVENN(n) ((!(n))||(!(BD(n)[0]%2)))
707:
1.8 noro 708: /* special macros for private memory management */
709:
710: #define NV(p) ((p)->nv)
711: #define C(p) ((p)->c)
712: #define ITOS(p) (((unsigned int)(p))&0x7fffffff)
713: #define STOI(i) ((P)((unsigned int)(i)|0x80000000))
1.15 noro 714:
715: /* immediate GFS representation */
716:
717: #define IFTOF(p) ((int)(((unsigned int)(p))&0x7fffffff))
718: #define FTOIF(i) ((int)(((unsigned int)(i)|0x80000000)))
1.8 noro 719:
720: struct cdl {
721: P c;
722: DL d;
723: };
724:
725: struct cdlm {
726: int c;
727: DL d;
728: };
729:
730: extern MP _mp_free_list;
731: extern DP _dp_free_list;
732: extern DL _dl_free_list;
733: extern int current_dl_length;
734:
735: #define _NEWDL_NOINIT(d,n) if ((n)!= current_dl_length){_dl_free_list=0; current_dl_length=(n);} if(!_dl_free_list)_DL_alloc(); (d)=_dl_free_list; _dl_free_list = *((DL *)_dl_free_list)
736: #define _NEWDL(d,n) if ((n)!= current_dl_length){_dl_free_list=0; current_dl_length=(n);} if(!_dl_free_list)_DL_alloc(); (d)=_dl_free_list; _dl_free_list = *((DL *)_dl_free_list); bzero((d),(((n)+1)*sizeof(int)))
737: #define _NEWMP(m) if(!_mp_free_list)_MP_alloc(); (m)=_mp_free_list; _mp_free_list = NEXT(_mp_free_list)
1.10 noro 738: #define _MKDP(n,m,d) if(!_dp_free_list)_DP_alloc(); (d)=_dp_free_list; _dp_free_list = (DP)BDY(_dp_free_list); (d)->id = O_DP; (d)->nv=(n); BDY(d)=(m)
1.8 noro 739:
740: #define _NEXTMP(r,c) \
741: if(!(r)){_NEWMP(r);(c)=(r);}else{_NEWMP(NEXT(c));(c)=NEXT(c);}
742:
743: #define _NEXTMP2(r,c,s) \
744: if(!(r)){(c)=(r)=(s);}else{NEXT(c)=(s);(c)=(s);}
745:
746: #define _FREEDL(m) *((DL *)m)=_dl_free_list; _dl_free_list=(m)
747: #define _FREEMP(m) NEXT(m)=_mp_free_list; _mp_free_list=(m)
748: #define _FREEDP(m) BDY(m)=(MP)_dp_free_list; _dp_free_list=(m)
1.1 noro 749:
750: /* externals */
751: #if 0
752: double NatToReal();
753: double RatnToReal();
754: #endif
755:
756: extern struct oR oUNIR;
757: extern struct oQ oUNIQ;
758: extern struct oMQ oUNIMQ;
759: extern struct oN oUNIN;
760: extern struct oUP2 oONEUP2;
761: extern struct oV oVAR[];
762: extern struct oV oPVAR[];
763: extern struct oVL oVLIST[];
764: extern struct oVL oPVLIST[];
765: extern VL CO,ALG;
766: extern VL PVL;
767: extern R ONER;
768: extern Q ONE;
769: extern MQ ONEM;
770: extern LM ONELM;
771: extern N ONEN;
772: extern UP2 ONEUP2;
773:
774: extern FILE *asir_out;
1.7 noro 775: #if defined(__GNUC__)
1.1 noro 776: extern const int sprime[];
777: #else
778: extern int sprime[];
779: #endif
1.14 noro 780:
781: extern int lprime_size;
782: extern int *lprime;
1.1 noro 783:
784: extern void (*addnumt[])();
785: extern void (*subnumt[])();
786: extern void (*mulnumt[])();
787: extern void (*divnumt[])();
788: extern void (*pwrnumt[])();
789: extern int (*cmpnumt[])();
790: extern void (*chsgnnumt[])();
791:
792: /* prototypes */
793: int compui(VL,USINT,USINT);
1.6 noro 794: int compbytearray(VL,BYTEARRAY,BYTEARRAY);
1.1 noro 795:
796: void powermodup(UP,UP *);
797: void hybrid_powermodup(UP,UP *);
798:
799: void powertabup(UP,UP,UP *);
800: void hybrid_powertabup(UP,UP,UP *);
801:
802: void generic_powermodup(UP,UP,Q,UP *);
803: void hybrid_generic_powermodup(UP,UP,Q,UP *);
804:
805: void powermod1up(UP,UP *);
806: void hybrid_rembymulup_special(int,UP,UP,UP,UP *);
807: void hybrid_tmulup(int,UP,UP,int,UP *);
808: void hybrid_squareup(int,UP,UP *);
809: void hybrid_mulup(int,UP,UP,UP *);
810:
811: void getmod_lm(N *);
812:
813: int maxblenup(UP);
814: void monicup(UP,UP *);
815: void simpup(UP,UP *);
816: void simpnum(Num,Num *);
817: void decompp(P,Q,P *,P *);
818: void truncp(P,Q,P *);
819: void uremp(P,P,P *);
820: void ugcdp(P,P,P *);
821: void reversep(P,Q,P *);
822: void invmodp(P,Q,P *);
823: void addup(UP,UP,UP *);
824: void subup(UP,UP,UP *);
825: void chsgnup(UP,UP *);
826: void mulup(UP,UP,UP *);
827: void tmulup(UP,UP,int,UP *);
828: void squareup(UP,UP *);
829: void remup(UP,UP,UP *);
830: void remup_destructive(UP,UP);
831: void qrup(UP,UP,UP *,UP *);
832: void qrup_destructive(UP,UP);
833: void gcdup(UP,UP,UP *);
834: void reverseup(UP,int,UP *);
835: void invmodup(UP,int,UP *);
836: void pwrup(UP,Q,UP *);
837: void squarep_gf2n(VL,P,P *);
838: void kmulp(VL,P,P,P *);
839: void ksquarep(VL,P,P *);
840: void kmulup(UP,UP,UP *);
841: void ksquareup(UP,UP *);
842: void extractup(UP,int,int,UP *);
843: void copyup(UP,UP);
844: void c_copyup(UP,int,pointer *);
845: void kmulupmain(UP,UP,UP *);
846: void ksquareupmain(UP,UP *);
847: void rembymulup(UP,UP,UP *);
848: void rembymulup_special(UP,UP,UP,UP *);
849: void tkmulup(UP,UP,int,UP *);
850: void shiftup(UP,int,UP *);
851: void set_degreeup(UP,int);
852: void decompup(UP,int,UP *,UP *);
853: void truncup(UP,int,UP *);
854: void uptofmarray(int,UP,ModNum *);
855: void fmarraytoup(ModNum *,int,UP *);
856: void uiarraytoup(unsigned int **,int,int,UP *);
857: void adj_coefup(UP,N,N,UP *);
858: void uptolmup(UP,UP *);
859: void remcup(UP,N,UP *);
860: void fft_mulup(UP,UP,UP *);
861: void fft_squareup(UP,UP *);
862: void trunc_fft_mulup(UP,UP,int,UP *);
863: void shoup_fft_mulup(UP,UP,UP *);
864: void shoup_fft_squareup(UP,UP *);
865: void shoup_trunc_fft_mulup(UP,UP,int,UP *);
866: void crup(ModNum **,int,int *,int,N,UP *);
867: void shoup_crup(ModNum **,int,int *,int,N,N,UP *);
868: void squareup_gf2n(UP,UP *);
869: void powermodup_gf2n(UP,UP *);
870: void generic_powermodup_gf2n(UP,UP,Q,UP *);
871: void tracemodup_gf2n(UP,UP,Q,UP *);
872: void tracemodup_gf2n_slow(UP,UP,Q,UP *);
873: void tracemodup_gf2n_tab(UP,UP,Q,UP *);
874: void square_rem_tab_up_gf2n(UP,UP *,UP *);
875: void powertabup_gf2n(UP,UP,UP *);
876: void find_root_gf2n(UP,GF2N *);
877:
878: int cmpdl_matrix(int,DL,DL);
879: int cmpdl_order_pair(int,DL,DL);
880: int cmpdl_elim(int,DL,DL);
881: int cmpdl_blexrev(int,DL,DL);
882: int cmpdl_bgradrev(int,DL,DL);
883: int cmpdl_brevrev(int,DL,DL);
884: int cmpdl_brevgradlex(int,DL,DL);
885: int cmpdl_bgradlex(int,DL,DL);
886: int cmpdl_blex(int,DL,DL);
887: int cmpdl_revgradlex(int,DL,DL);
888: int cmpdl_gradlex(int,DL,DL);
889: int cmpdl_revlex(int,DL,DL);
890: int cmpdl_lex(int,DL,DL);
891: int compd(VL,DP,DP);
892: void adddl(int,DL,DL,DL *);
893: void divsdc(VL,DP,P,DP *);
894: void muldc(VL,DP,P,DP *);
895: void muldm(VL,DP,MP,DP *);
896: void muld(VL,DP,DP,DP *);
897: void chsgnd(DP,DP *);
898: void subd(VL,DP,DP,DP *);
899: void addd(VL,DP,DP,DP *);
900: int sugard(MP);
901: void nodetod(NODE,DP *);
902: void dtop(VL,VL,DP,P *);
903: void ptod(VL,VL,P,DP *);
904: void initd(struct order_spec *);
905:
906: void _printdp(DP);
907: void _dp_sp_mod(DP,DP,int,DP *);
908: void _dp_mod(DP,int,NODE,DP *);
909: void _dp_red_mod(DP,DP,int,DP *);
910: void _dtop_mod(VL,VL,DP,P *);
911: void _mulmdm(VL,int,DP,MP,DP *);
912: void _mulmd(VL,int,DP,DP,DP *);
913: void _chsgnmd(int,DP,DP *);
914: void _submd(VL,int,DP,DP,DP *);
915: void _addmd(VL,int,DP,DP,DP *);
916: void _mdtop(VL,int,VL,DP,P *);
917: void divsmdc(VL,int,DP,P,DP *);
918: void mulmdc(VL,int,DP,P,DP *);
919: void mulmdm(VL,int,DP,MP,DP *);
920: void mulmd(VL,int,DP,DP,DP *);
921: void chsgnmd(int,DP,DP *);
922: void submd(VL,int,DP,DP,DP *);
923: void addmd(VL,int,DP,DP,DP *);
924: void mdtop(VL,int,VL,DP,P *);
925: void mptomd(VL,int,VL,P,DP *);
926: void ptomd(VL,int,VL,P,DP *);
927: int p_mag(P);
928: int n_bits(N);
929: void gcdBinary_27n(N,N,N *);
930: void rtime_init(void);
931: void setmod_gf2n(P);
932: void mt_sgenrand(unsigned long);
933: unsigned long mt_genrand(void);
934: #if defined(VISUAL)
935: void srandom(unsigned int);
936: unsigned int random(void);
937: #endif
938: void gcdbmodn(N,N,N *);
939: void gcdbinn(N,N,N *);
940: void gcdmodn(N,N,N *);
941: void gcdaccn(N,N,N *);
942: void gcdEuclidn(N,N,N *);
943: void GC_free(void *);
944: void FFT_primes(int,int *,int *,int *);
945: int FFT_pol_product(unsigned int,unsigned int *, unsigned int,unsigned int *,
946: unsigned int *,int,unsigned int *);
947: int FFT_pol_square(unsigned int,unsigned int *,
948: unsigned int *,int,unsigned int *);
949: void dcptolist(DCP,LIST *);
950: void gcdprsmp(VL,int,P,P,P *);
951: void mult_mod_tab(UM,int,UM *,UM,int);
952: int nfctr_mod(UM,int);
953: int irred_check(UM,int);
954: void modfctrp(P,int,int,DCP *);
955: void pf_init(void);
956: void binaryton(char *,N *);
957: void hexton(char *,N *);
958: void ptolmp(P,P *);
959: void lmptop(P,P *);
960: void ulmptoum(int,UP,UM);
961: void objtobobj(int,Obj,Obj *);
962: void bobjtoobj(int,Obj,Obj *);
963: void numtobnum(int,Num,Num *);
964: void bnumtonum(int,Num,Num *);
965: void ptobp(int,P,P *);
966: void bptop(int,P,P *);
967: void listtoblist(int,LIST,LIST *);
968: void blisttolist(int,LIST,LIST *);
969: void vecttobvect(int,VECT,VECT *);
970: void bvecttovect(int,VECT,VECT *);
971: void mattobmat(int,MAT,MAT *);
972: void bmattomat(int,MAT,MAT *);
973: void n32ton27(N,N *);
974: void n27ton32(N,N *);
975: void kmulum(int,UM,UM,UM);
976: void saveobj(FILE *,Obj);
977: void endian_init(void);
978: void write_char(FILE *,unsigned char *);
979: void write_short(FILE *,unsigned short *);
980: void write_int(FILE *,unsigned int *);
981: void write_double(FILE *,double *);
982: void write_intarray(FILE *,unsigned int *,int);
983: void write_string(FILE *,unsigned char *,int);
984: void savestr(FILE *,char *);
985: void loadstr(FILE *,char **);
986: void savevl(FILE *,VL);
987: void loadvl(FILE *);
988: void skipvl(FILE *);
989: void savev(FILE *,V);
990: void loadv(FILE *,V *);
991: int save_convv(V);
992: V load_convv(int);
993: void swap_bytes(char *,int,int);
994: void read_char(FILE *,unsigned char *);
995: void read_short(FILE *,unsigned short *);
996: void read_int(FILE *,unsigned int *);
997: void read_double(FILE *,double *);
998: void read_intarray(FILE *,unsigned int *,int);
999: void read_string(FILE *,unsigned char *,int);
1000: void loadobj(FILE *,Obj *);
1001: void invum(int,UM,UM,UM);
1002: void addarray_to(unsigned int *,int,unsigned int *,int);
1003: void muln_1(unsigned int *,int,unsigned int,unsigned int *);
1004: unsigned int divn_1(unsigned int *,int,unsigned int,unsigned int *);
1005: void ptoup(P,UP *);
1006: void uptop(UP,P *);
1007: void printnum(Num);
1008: void printv(VL,V);
1009: void kmulq(Q,Q,Q *);
1010: void bshiftn(N,int,N *);
1011: void remn(N,N,N*);
1012: void simplm(LM,LM *);
1013: void qtolm(Q,LM *);
1014: int qpcheck(Obj);
1015: int headsgn(P);
1016: void adjsgn(P,DCP);
1017: void setmod_g2n(P);
1018: void simpgf2n(GF2N,GF2N *);
1019: void ptogf2n(Obj,GF2N *);
1020: void gf2ntop(GF2N,P *);
1021: void gf2ntovect(GF2N,VECT *);
1022: void squaregf2n(GF2N,GF2N *);
1023: void randomgf2n(GF2N *);
1024: void invgf2n(GF2N,GF2N *);
1025: void kmuln(N,N,N *);
1026: void extractn(N,int,int,N *);
1027: void copyn(N,int,int *);
1028: void kmulnmain(N,N,N *);
1029: int qcoefp(Obj);
1030: int qcoefr(Obj);
1031: int get_allocwords(void);
1032: double get_clock(void);
1033: void get_eg(struct oEGT *);
1034: void printtime(struct oEGT *,struct oEGT *,double);
1035: void init_eg(struct oEGT *);
1036: void add_eg(struct oEGT *,struct oEGT *,struct oEGT *);
1037: void print_eg(char *,struct oEGT *);
1038: void print_split_eg(struct oEGT *,struct oEGT *);
1039: void print_split_e(struct oEGT *,struct oEGT *);
1040: void suspend_timer(void);
1041: void resume_timer(void);
1042: void reset_engine(void);
1043: void notdef(VL,Obj,Obj,Obj *);
1044: void error(char *);
1045: void ptoup2(P,UP2 *);
1046: void ptoup2_sparse(P,UP2 *);
1047: void up2top(UP2,P *);
1048: void up2tovect(UP2,VECT *);
1049: void up2ton(UP2,Q *);
1050: void ntoup2(Q,UP2 *);
1051: void gen_simpup2(UP2,GEN_UP2,UP2 *);
1052: void gen_simpup2_destructive(UP2,GEN_UP2);
1053: void gen_invup2(UP2,GEN_UP2,UP2 *);
1054: void gen_pwrmodup2(UP2,Q,GEN_UP2,UP2 *);
1055: void simpup2(UP2,UP2,UP2 *);
1056: int degup2(UP2);
1057: int degup2_sparse(UP2);
1058: int degup2_1(unsigned int);
1059: void addup2(UP2,UP2,UP2 *);
1060: void subup2(UP2,UP2,UP2 *);
1061: void mulup2_n1(unsigned int *,int,unsigned int,unsigned int *);
1062: void mulup2_nh(unsigned int *,int,unsigned int,unsigned int *);
1063: void _mulup2_1(UP2,unsigned int,UP2);
1064: void _mulup2_h(UP2,unsigned int,UP2);
1065: void mulup2(UP2,UP2,UP2 *);
1066: void _kmulup2_(unsigned int *,unsigned int *,int,unsigned int *);
1067: void _mulup2_nn(unsigned int *,unsigned int *,int,unsigned int *);
1068: void _mulup2(UP2,UP2,UP2);
1069: void _mulup2_(_UP2,_UP2,_UP2);
1070: void squareup2(UP2,UP2 *);
1071: void _adjup2(UP2);
1072: void _adjup2_(_UP2);
1073: void _addup2(UP2,UP2,UP2);
1074: void _addup2_destructive(UP2,UP2);
1075: void _addup2_(_UP2,_UP2,_UP2);
1076: void _addtoup2_(_UP2,_UP2);
1077: unsigned int mulup2_bb(unsigned int,unsigned int);
1078: void init_up2_tab(void);
1079: unsigned int quoup2_11(unsigned int,unsigned int);
1080: void divup2_1(unsigned int,unsigned int,int,int,unsigned int *,unsigned int *);
1081: void qrup2(UP2,UP2,UP2 *,UP2 *);
1082: void _qrup2(UP2,UP2,UP2,UP2);
1083: void remup2(UP2,UP2,UP2 *);
1084: void _remup2(UP2,UP2,UP2);
1085: void remup2_sparse(UP2,UP2,UP2 *);
1086: void remup2_sparse_destructive(UP2,UP2);
1087: void remup2_type1_destructive(UP2,int);
1088: void remup2_3_destructive(UP2,UP2);
1089: void remup2_5_destructive(UP2,UP2);
1090: void _invup2_1(unsigned int,unsigned int,unsigned int *,unsigned int *);
1091: void _gcdup2_1(unsigned int,unsigned int,unsigned int *);
1092: void up2_init_eg(void);
1093: void up2_show_eg(void);
1094: void invup2(UP2,UP2,UP2 *);
1095: void gcdup2(UP2,UP2,UP2 *);
1096: void chsgnup2(UP2,UP2 *);
1097: void pwrmodup2(UP2,Q,UP2,UP2 *);
1098: void pwrmodup2_sparse(UP2,Q,UP2,UP2 *);
1099: int compup2(UP2,UP2);
1100: void printup2(UP2);
1101: void _copyup2(UP2,UP2);
1102: void _bshiftup2(UP2,int,UP2);
1103: void _bshiftup2_destructive(UP2,int);
1104: void diffup2(UP2,UP2 *);
1105: int sqfrcheckup2(UP2);
1106: int irredcheckup2(UP2);
1107: int irredcheck_dddup2(UP2);
1108: void _copy_up2bits(UP2,unsigned int **,int);
1109: void _print_frobmat(unsigned int **,int,int);
1110: int compute_multiplication_matrix(P,GF2MAT *);
1111: void compute_change_of_basis_matrix(P,P,int,GF2MAT *,GF2MAT *);
1112: int compute_representation_conversion_matrix(P,GF2MAT *,GF2MAT *);
1113: void mul_nb(GF2MAT,unsigned int *,unsigned int *,unsigned int *);
1114: void leftshift(unsigned int *,int);
1115: void mat_to_gf2mat(MAT,unsigned int ***);
1116: void gf2mat_to_mat(unsigned int **,int,MAT *);
1117: void mulgf2mat(int,unsigned int **,unsigned int **,unsigned int **);
1118: void mulgf2vectmat(int,unsigned int *,unsigned int **,unsigned int *);
1119: int mulgf2vectvect(int,unsigned int *,unsigned int *);
1120: int invgf2mat(int,unsigned int **,unsigned int **);
1121: void _mulup2_11(unsigned int,unsigned int,unsigned int *);
1122: void _mulup2_22(unsigned int *,unsigned int *,unsigned int *);
1123: void _mulup2_33(unsigned int *,unsigned int *,unsigned int *);
1124: void _mulup2_44(unsigned int *,unsigned int *,unsigned int *);
1125: void _mulup2_55(unsigned int *,unsigned int *,unsigned int *);
1126: void _mulup2_66(unsigned int *,unsigned int *,unsigned int *);
1127: void printup2_(unsigned int *,int);
1128: void type1_bin_invup2(UP2,int,UP2 *);
1129: int int_bits(int);
1130:
1131:
1132: LUM LUMALLOC(int, int);
1.16 noro 1133: BM BMALLOC(int, int);
1.1 noro 1134: Obj ToAlg(Num);
1135: UM *berlemain(register int, UM, UM *);
1136: void *Risa_GC_malloc(size_t);
1137: void *Risa_GC_malloc_atomic(size_t);
1138: void *Risa_GC_realloc(void *,size_t);
1139: void *GC_malloc(size_t);
1140: void *GC_malloc_atomic(size_t);
1141: void *GC_realloc(void *,size_t);
1142: double NatToReal(N,int *);
1143: double RatnToReal(Q);
1144: double pwrreal0(double,int);
1.3 noro 1145: double rtodbl(); /* XXX */
1.1 noro 1146: int **almat(int,int);
1147: pointer **almat_pointer(int,int);
1148: int berlecnt(register int,UM);
1149: int berlecntmain(register int,int,int,register int **);
1150: int cmpalg(Num,Num);
1151: int cmpbf(Num,Num);
1152: int cmpcplx(Num,Num);
1153: int cmpn(N,N);
1154: int cmpq(Q,Q);
1155: int cmpreal(Real,Real);
1156: int cmpmi(MQ,MQ);
1157: int cmplm(LM,LM);
1158: int compmat(VL,MAT,MAT);
1159: int compnum(VL,Num,Num);
1160: int compp(VL,P,P);
1161: int compr(VL,Obj,Obj);
1162: int compstr(VL,STRING,STRING);
1163: int compvect(VL,VECT,VECT);
1164: int ctest(P,ML,int,int *);
1165: int cycchk(P);
1166: int dbound(V,P);
1167: int dcomp(P,P);
1168: int deg(V,P);
1169: int degtest(int,int *,ML,int);
1170: int divcheck(VL,P *,int,P,P);
1171: unsigned int divin(N,unsigned int,N *);
1172: int divtdcpz(VL,P,P,P *);
1173: int divtpz(VL,P,P,P *);
1174: int divum(register int,UM,UM,UM);
1175: int dm(int,int,int *);
1176: int dmb(int,int,int,int *);
1177: int dma(int,int,int,int *);
1178: int dmab(int,int,int,int,int *);
1179: int dmar(int,int,int,int);
1180: int dtestmain(P,Q,ML,int,int *,P *,P *);
1181: int geldb(VL,P);
1182: int getchomdeg(V,P);
1183: int getdeg(V,P);
1184: int getlchomdeg(V,P,int *);
1185: int homdeg(P);
1186: unsigned int invm(unsigned int,int);
1187: int iscycm(P);
1188: int iscycp(P);
1189: int lengthp(P);
1190: int mig(int,int,P);
1191: int mignotte(int,P);
1192: int minimain(register int,int,int,register int **);
1193: int ncombi(int,int,int,int *);
1194: int nextbin(VN,int);
1195: int nmonop(P);
1196: int pcoef(VL,VL,P,P *);
1197: int pcoef0(VL,VL,P,P *);
1198: unsigned int pwrm(register int,register int,int);
1199: unsigned int rem(N,unsigned int);
1200: int sqfrchk(P);
1201: int subn(N,N,N *);
1202: int ucmpp(P,P);
1203: int valideval(VL,DCP,VN);
1204: int zerovpchk(VL,P,VN);
1205:
1206: void addgf2n(GF2N,GF2N,GF2N *);
1207: void subgf2n(GF2N,GF2N,GF2N *);
1208: void mulgf2n(GF2N,GF2N,GF2N *);
1209: void divgf2n(GF2N,GF2N,GF2N *);
1210: void chsgngf2n(GF2N,GF2N *);
1211: void pwrgf2n(GF2N,Q, GF2N *);
1212: int cmpgf2n(GF2N,GF2N);
1213:
1214: void addgfpn(GFPN,GFPN,GFPN *);
1215: void subgfpn(GFPN,GFPN,GFPN *);
1216: void mulgfpn(GFPN,GFPN,GFPN *);
1217: void divgfpn(GFPN,GFPN,GFPN *);
1218: void chsgngfpn(GFPN,GFPN *);
1219: void pwrgfpn(GFPN,Q, GFPN *);
1220: int cmpgfpn(GFPN,GFPN);
1.12 noro 1221:
1222: void addgfs(GFS,GFS,GFS *);
1223: void subgfs(GFS,GFS,GFS *);
1224: void mulgfs(GFS,GFS,GFS *);
1225: void divgfs(GFS,GFS,GFS *);
1226: void chsgngfs(GFS,GFS *);
1227: void pwrgfs(GFS,Q, GFS *);
1228: int cmpgfs(GFS,GFS);
1.20 noro 1229:
1.21 ! noro 1230: void addgfsn(GFSN,GFSN,GFSN *);
! 1231: void subgfsn(GFSN,GFSN,GFSN *);
! 1232: void mulgfsn(GFSN,GFSN,GFSN *);
! 1233: void divgfsn(GFSN,GFSN,GFSN *);
! 1234: void chsgngfsn(GFSN,GFSN *);
! 1235: void pwrgfsn(GFSN,Q, GFSN *);
! 1236: int cmpgfsn(GFSN,GFSN);
1.1 noro 1237:
1238: void addalg(Num,Num,Num *);
1239: void addbf(Num,Num,Num *);
1240: void addcplx(Num,Num,Num *);
1241: void addm2p(VL,Q,Q,P,P,P *);
1242: void addm2q(Q,Q,Q,Q,Q *);
1243: void addmat(VL,MAT,MAT,MAT *);
1244: void addmp(VL,int,P,P,P *);
1245: void addmpq(int,P,P,P *);
1246: void addmptoc(VL,int,P,P,P *);
1247: void addmq(int,MQ,MQ,MQ *);
1248: void addn(N,N,N *);
1249: void addnum(VL,Num,Num,Num *);
1250: void addp(VL,P,P,P *);
1251: void addpadic(int,int,unsigned int *,unsigned int *);
1252: void addpq(P,P,P *);
1253: void addptoc(VL,P,P,P *);
1254: void addq(Q,Q,Q *);
1255: void addr(VL,Obj,Obj,Obj *);
1256: void addreal(Num,Num,Real *);
1257: void addmi(MQ,MQ,MQ *);
1258: void addlm(LM,LM,LM *);
1259: void addstr(VL,STRING,STRING,STRING *);
1260: void addum(int,UM,UM,UM);
1261: void addvect(VL,VECT,VECT,VECT *);
1.19 noro 1262: void addquote(VL,QUOTE,QUOTE,QUOTE *);
1.1 noro 1263: void adjc(VL,P,P,P,Q,P *,P *);
1264: void afctr(VL,P,P,DCP *);
1265: void afctrmain(VL,P,P,int,DCP *);
1266: void affine(VL,P,VN,P *);
1267: void affinemain(VL,P,V,int,P *,P *);
1268: void berle(int,int,P,ML *);
1269: void bnton(register int,N,N *);
1270: void cbound(VL,P,Q *);
1271: void chnrem(int,V,P,Q,UM,P *,Q *);
1272: void chnremp(VL,int,P,Q,P,P *);
1273: void chsgnalg(Num,Num *);
1274: void chsgnbf(Num a,Num *);
1275: void chsgncplx(Num,Num *);
1276: void chsgnmat(MAT,MAT *);
1277: void chsgnmp(int,P,P *);
1278: void chsgnnum(Num,Num *);
1279: void chsgnp(P,P *);
1280: void chsgnq(Q,Q *);
1281: void chsgnr(Obj,Obj *);
1282: void chsgnreal(Num,Num *);
1283: void chsgnmi(MQ,MQ *);
1284: void chsgnlm(LM,LM *);
1285: void chsgnvect(VECT,VECT *);
1.19 noro 1286: void chsgnquote(QUOTE,QUOTE *);
1.1 noro 1287: void clctv(VL,P,VL *);
1288: void clctvr(VL,Obj,VL *);
1289: void cm2p(Q,Q,P,P *);
1290: void cmax(P,Q *);
1291: void cmp(Q,P,P *);
1292: void coefp(P,int,P *);
1293: void cpylum(int,LUM,LUM);
1294: void cpyum(UM,UM);
1295: void csump(VL,P,Q *);
1296: void cycm(V,register int,DCP *);
1297: void cycp(V,register int,DCP *);
1298: void degp(V,P,Q *);
1299: void degum(UM,int);
1300: void detmp(VL,int,P **,int,P *);
1301: void detp(VL,P **,int,P *);
1302: void diffp(VL,P,V,P *);
1303: void diffum(register int,UM,UM);
1304: void divalg(Num,Num,Num *);
1305: void divbf(Num,Num,Num *);
1306: void divcp(P,Q,P *);
1307: void divcplx(Num,Num,Num *);
1308: void divmat(VL,Obj,Obj,Obj *);
1309: void divmq(int,MQ,MQ,MQ *);
1310: void divn(N,N,N *,N *);
1311: void divnmain(int,int,unsigned int *,unsigned int *,unsigned int *);
1312: void divnum(VL,Num,Num,Num *);
1313: void divq(Q,Q,Q *);
1314: void divr(VL,Obj,Obj,Obj *);
1315: void divreal(Num,Num,Real *);
1316: void divmi(MQ,MQ,MQ *);
1317: void divlm(LM,LM,LM *);
1318: void divsdcmp(VL,int,P,P,P *);
1319: void divsdcp(VL,P,P,P *);
1320: void divsmp(VL,int,P,P,P *);
1321: void divsn(N,N,N *);
1322: void divsp(VL,P,P,P *);
1323: void divsrdcmp(VL,int,P,P,P *,P *);
1324: void divsrdcp(VL,P,P,P *,P *);
1325: void divsrmp(VL,int,P,P,P *,P *);
1326: void divsrp(VL,P,P,P *,P *);
1327: void divvect(VL,Obj,Obj,Obj *);
1.19 noro 1328: void divquote(VL,QUOTE,QUOTE,QUOTE *);
1.1 noro 1329: void dtest(P,ML,int,DCP *);
1330: void dtestroot(int,int,P,LUM,struct oDUM *,DCP *);
1331: void dtestroot1(int,int,P,LUM,P *);
1332: void dtestsq(int,int,P,LUM,P *);
1333: void dtestsql(P,ML,struct oDUM *,DCP *);
1334: void estimatelc(VL,Q,DCP,VN,P *);
1335: void eucum(register int,UM,UM,UM,UM);
1336: void exthp(VL,P,int,P *);
1337: void exthpc(VL,V,P,int,P *);
1338: void ezgcd1p(VL,P,P,P *);
1339: void ezgcdhensel(P,int,UM,UM,ML *);
1340: void ezgcdnp(VL,P,P *,int,P *);
1341: void ezgcdnpp(VL,DCP,P *,int,P *);
1342: void ezgcdnpz(VL,P *,int,P *);
1343: void ezgcdp(VL,P,P,P *);
1344: void ezgcdpp(VL,DCP,P,P *);
1345: void ezgcdpz(VL,P,P,P *);
1346: void factorial(int,Q *);
1347: void fctrp(VL,P,DCP *);
1348: void fctrwithmvp(VL,P,V,DCP *);
1349: void gcda(VL,P,P,P,P *);
1350: void gcdcp(VL,P,P *);
1351: void gcdgen(P,ML,ML *);
1352: void gcdmonomial(VL,DCP *,int,P *);
1353: void gcdn(N,N,N *);
1354: void gcdprsp(VL,P,P,P *);
1355: void gcdum(register int,UM,UM,UM);
1356: void getmindeg(V,P,Q *);
1357: void henmain(LUM,ML,ML,ML *);
1358: void henmv(VL,VN,P,P,P,P,P,P,P,P,P,Q,int,P *,P *);
1359: void henmvmain(VL,VN,P,P,P,P,P,P,P,Q,Q,int,P *,P *);
1360: void henprep(P,ML,ML,ML *,ML *);
1361: void hensel(int,int,P,ML *);
1362: void henzq(P,P,UM,P,UM,int,int,P *,P *,P *,P *,Q *);
1363: void henzq1(P,P,Q,P *,P *,Q *);
1364: void hsq(int,int,P,int *,DCP *);
1365: void intersectv(VL,VL,VL *);
1366: void invl(Q,Q,Q *);
1367: void invmq(int,MQ,MQ *);
1368: void invq(Q,Q *);
1369: void lgp(P,N *,N *);
1370: void lumtop(V,int,int,LUM,P *);
1371: void markv(VN,int,P);
1372: void maxdegp(VL,P,VL *,P *);
1373: void mergev(VL,VL,VL,VL *);
1374: void mfctr(VL,P,DCP *);
1375: void mfctrhen2(VL,VN,P,P,P,P,P,P,P *);
1376: void mfctrmain(VL,P,DCP *);
1377: void mfctrwithmv(VL,P,V,DCP *);
1378: void min_common_vars_in_coefp(VL,P,VL *,P *);
1379: void minchdegp(VL,P,VL *,P *);
1380: void mindegp(VL,P,VL *,P *);
1381: void mini(register int,UM,UM);
1382: void minlcdegp(VL,P,VL *,P *);
1383: void mkbc(int,Q *);
1384: void mkbcm(int,int,MQ *);
1385: void mkssum(V,int,int,int,P *);
1386: void monomialfctr(VL,P,P *,DCP *);
1387: void mptop(P,P *);
1388: void mptoum(P,UM);
1389: void msqfr(VL,P,DCP *);
1390: void msqfrmain(VL,P,DCP *);
1391: void msqfrmainmain(VL,P,VN,P,DCP,DCP *,P *);
1392: void mulalg(Num,Num,Num *);
1393: void mulbf(Num,Num,Num *);
1394: void mulcplx(Num,Num,Num *);
1395: void mulin(N,unsigned int,unsigned int *);
1396: void mullum(int,int,LUM,LUM,LUM);
1397: void mullumarray(P,ML,int,int *,P *);
1398: void mulm2p(VL,Q,Q,P,P,P *);
1399: void mulm2q(Q,Q,Q,Q,Q *);
1400: void mulmat(VL,Obj,Obj,Obj *);
1401: void mulmatmat(VL,MAT,MAT,MAT *);
1402: void mulmatvect(VL,MAT,VECT,VECT *);
1403: void mulmp(VL,int,P,P,P *);
1404: void mulmpc(VL,int,P,P,P *);
1405: void mulmpq(int,P,P,P *);
1406: void mulmq(int,MQ,MQ,MQ *);
1407: void muln(N,N,N *);
1408: void mulnum(VL,Num,Num,Num *);
1409: void mulp(VL,P,P,P *);
1410: void mulpadic(int,int,unsigned int *,unsigned int *,unsigned int *);
1411: void mulpc(VL,P,P,P *);
1412: void mulpq(P,P,P *);
1413: void mulq(Q,Q,Q *);
1414: void mulr(VL,Obj,Obj,Obj *);
1415: void mulreal(Num,Num,Real *);
1416: void mulmi(MQ,MQ,MQ *);
1417: void mullm(LM,LM,LM *);
1418: void mulrmat(VL,Obj,MAT,MAT *);
1419: void mulrvect(VL,Obj,VECT,VECT *);
1420: void mulsgn(VN,VN,int,VN);
1421: void mulsum(register int,UM,register int,UM);
1422: void mulum(register int,UM,UM,UM);
1423: void mulvect(VL,Obj,Obj,Obj *);
1.19 noro 1424: void mulquote(VL,QUOTE,QUOTE,QUOTE *);
1.1 noro 1425: void mulvectmat(VL,VECT,MAT,VECT *);
1426: void next(VN);
1427: void nezgcdnp_sqfr_primitive(VL,P,P *,int,P *);
1428: void nezgcdnpp(VL,DCP,P *,int,P *);
1429: void nezgcdnpz(VL,P *,int,P *);
1430: void nezgcdnpzmain(VL,P *,int,P *);
1431: void nglob_init(void);
1432: void norm(P,Q *);
1433: void norm1(P,P *);
1434: void norm1c(P,Q *);
1435: void normalizemp(int,P);
1436: void nthrootchk(P,struct oDUM *,ML,DCP *);
1437: void nthrootn(N,int,N *);
1438: void ntobn(register int,N,N *);
1439: void nuezgcdnpzmain(VL,P *,int,P *);
1440: void padictoq(int,int,int *,Q *);
1441: void risa_pari_init(void);
1442: void pcp(VL,P,P *,P *);
1443: void pderivr(VL,Obj,V,Obj *);
1444: void pdiva(VL,P,P,P,P *);
1445: void pinva(P,P,P *);
1446: void plisttop(P *,V,int,P *);
1447: void pmonic(VL,P,P,P *);
1448: void pqra(VL,P,P,P,P *,P *);
1449: void premmp(VL,int,P,P,P *);
1450: void premp(VL,P,P,P *);
1451: void ptolum(int,int,P,LUM);
1452: void ptomp(int,P,P *);
1453: void ptoum(int,P,UM);
1454: void ptozp(P,int,Q *,P *);
1455: void ptozp0(P,P *);
1456: void pwralg(Num,Num,Num *);
1457: void pwrbf(Num,Num,Num *);
1458: void pwrcplx(Num,Num,Num *);
1459: void pwrcplx0(Num,int,Num *);
1460: void pwrlum(int,int,LUM,int,LUM);
1461: void pwrmat(VL,MAT,Obj,MAT *);
1462: void pwrmatmain(VL,MAT,int,MAT *);
1463: void pwrmp(VL,int,P,Q,P *);
1464: void pwrmq(int,MQ,Q,MQ *);
1465: void pwrn(N,int,N *);
1466: void pwrnum(VL,Num,Num,Num *);
1467: void pwrp(VL,P,Q,P *);
1468: void pwrq(Q,Q,Q *);
1469: void pwrr(VL,Obj,Obj,Obj *);
1.19 noro 1470: void pwrquote(VL,QUOTE,QUOTE,QUOTE *);
1.1 noro 1471: void pwrreal(Num,Num,Real *);
1472: void pwrmi(MQ,Q,MQ *);
1473: void pwrlm(LM,Q,LM *);
1474: void pwrum(int,UM,int,UM);
1475: void reallocarray(char **,int *,int *,int);
1476: void reductr(VL,Obj,Obj *);
1477: void reimtocplx(Num,Num,Num *);
1478: void rem2q(Q,Q,Q,Q *);
1479: void rema(VL,P,P,P,P *);
1480: void remq(Q,Q,Q *);
1481: void remsdcp(VL,P,P,P *);
1482: void reordermp(VL,int,VL,P,P *);
1483: void reorderp(VL,VL,P,P *);
1484: void reordvar(VL,V,VL *);
1485: void res_ch_det(VL,V,P,P,P *);
1486: void res_detmp(VL,int,V,P,P,P *);
1487: void restore(VL,P,VN,P *);
1488: void resultmp(VL,int,V,P,P,P *);
1489: void resultp(VL,V,P,P,P *);
1490: void setlum(int,int,LUM);
1491: void sort_by_deg(int,P *,P *);
1492: void sort_by_deg_rev(int,P *,P *);
1493: void sortfs(DCP *);
1494: void sortfsrev(DCP *);
1495: void sortplist(P *,int);
1496: void sortplistbyhomdeg(P *,int);
1497: void sprs(VL,V,P,P,P *);
1498: void sqa(VL,P,P,DCP *);
1499: void sqad(unsigned int,int);
1500: void sqfrp(VL,P,DCP *);
1501: void sqfrum(int,int,P,int *,struct oDUM **,ML *);
1502: void sqfrummain(int,UM,UM,struct oDUM **);
1503: void sqrtn(N,N *);
1504: void srch2(VL,V,P,P,P *);
1505: void srchmp(VL,int,V,P,P,P *);
1506: void srchump(int,P,P,P *);
1507: void srcr(VL,V,P,P,P *);
1508: void strtobf(char *,BF *);
1509: void subalg(Num,Num,Num *);
1510: void subbf(Num,Num,Num *);
1511: void subcplx(Num,Num,Num *);
1512: void subm2p(VL,Q,Q,P,P,P *);
1513: void subm2q(Q,Q,Q,Q,Q *);
1514: void submat(VL,MAT,MAT,MAT *);
1515: void submp(VL,int,P,P,P *);
1516: void submq(int,MQ,MQ,MQ *);
1517: void subnum(VL,Num,Num,Num *);
1518: void subp(VL,P,P,P *);
1519: void subq(Q,Q,Q *);
1520: void subr(VL,Obj,Obj,Obj *);
1521: void subreal(Num,Num,Real *);
1522: void submi(MQ,MQ,MQ *);
1523: void sublm(LM,LM,LM *);
1524: void substmp(VL,int,P,V,P,P *);
1525: void substp(VL,P,V,P,P *);
1526: void substvp(VL,P,VN,P *);
1527: void subum(int,UM,UM,UM);
1528: void subvect(VL,VECT,VECT,VECT *);
1.19 noro 1529: void subquote(VL,QUOTE,QUOTE,QUOTE *);
1.1 noro 1530: void toreim(Num,Num *,Num *);
1531: void ucsump(P,Q *);
1532: void udivpwm(Q,P,P,P *,P *);
1533: void udivpz(P,P,P *,P *);
1534: void udivpzwm(Q,P,P,P *,P *);
1535: void uexgcdnp(VL,P,P *,int,VN,Q,P *,P *,P *,P *,Q *);
1536: void uezgcd1p(P,P,P *);
1537: void uezgcdpp(DCP,P,P *);
1538: void uezgcdpz(VL,P,P,P *);
1539: void ufctr(P,int,DCP *);
1540: void ufctrmain(P,int,DCP *);
1541: void umtomp(V,UM,P *);
1542: void umtop(V,UM,P *);
1543: void usqp(P,DCP *);
1544: void vntovl(VN,int,VL *);
1545:
1546: #if 0 && !defined(VISUAL)
1547: void bzero(const void *,int);
1548: void bcopy(const void *,void *,int);
1549: char *index(char *,int);
1550: #endif
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>