| version 1.15, 2001/06/20 09:30:34 | version 1.16, 2001/06/25 01:35:22 | 
|  |  | 
| * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, | * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, | 
| * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. | * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. | 
| * | * | 
| * $OpenXM: OpenXM_contrib2/asir2000/include/ca.h,v 1.14 2001/06/07 04:54:41 noro Exp $ | * $OpenXM: OpenXM_contrib2/asir2000/include/ca.h,v 1.15 2001/06/20 09:30:34 noro Exp $ | 
| */ | */ | 
| #include <stdio.h> | #include <stdio.h> | 
|  |  | 
| 
| Line 370  typedef struct oNODE { |  | 
| Line 370  typedef struct oNODE { |  | 
| struct oNODE *next; | struct oNODE *next; | 
| } *NODE; | } *NODE; | 
|  |  | 
|  | /* univariate poly over small finite field; dense */ | 
| typedef struct oUM { | typedef struct oUM { | 
| int d; | int d; | 
| int c[1]; | int c[1]; | 
| } *UM; | } *UM; | 
|  |  | 
|  | /* univariate poly with padic coeff */ | 
| typedef struct oLUM { | typedef struct oLUM { | 
| int d; | int d; | 
| int *c[1]; | int *c[1]; | 
| } *LUM; | } *LUM; | 
|  |  | 
|  | /* bivariate poly over small finite field; dense */ | 
|  |  | 
|  | typedef struct oBM { | 
|  | int d; | 
|  | UM c[1]; | 
|  | } *BM; | 
|  |  | 
| typedef struct oML { | typedef struct oML { | 
| int n; | int n; | 
| int mod; | int mod; | 
| 
| Line 529  bzero((char *)(p),(int)(((n)+1)*sizeof(type)))) |  | 
| Line 538  bzero((char *)(p),(int)(((n)+1)*sizeof(type)))) |  | 
| (p) = ___q___;\ | (p) = ___q___;\ | 
| } | } | 
|  |  | 
|  | #define W_BMALLOC(n,bound,p)\ | 
|  | {\ | 
|  | BM ___q___;\ | 
|  | int ___i___;\ | 
|  | UM *___c___;\ | 
|  | (___q___) = (BM)ALLOCA(TRUESIZE(oBM,(n),UM));\ | 
|  | DEG(___q___) = n;\ | 
|  | ___c___ = (UM *)COEF(___q___);\ | 
|  | for ( ___i___ = 0; ___i___ <= n; ___i___++ ) {\ | 
|  | ___c___[___i___] = W_UMALLOC(bound);\ | 
|  | DEG(___c___[___i___]) = -1\ | 
|  | bzero((char *)COEF(___c___[___i___]),((bound)+1)*sizeof(int));\ | 
|  | }\ | 
|  | (p) = ___q___;\ | 
|  | } | 
|  |  | 
| #define NEWUP2(q,w)\ | #define NEWUP2(q,w)\ | 
| ((q)=(UP2)MALLOC_ATOMIC(TRUESIZE(oUP2,(w)-1,unsigned int)),\ | ((q)=(UP2)MALLOC_ATOMIC(TRUESIZE(oUP2,(w)-1,unsigned int)),\ | 
| bzero((char *)(q)->b,(w)*sizeof(unsigned int))) | bzero((char *)(q)->b,(w)*sizeof(unsigned int))) | 
| 
| Line 1095  int int_bits(int); |  | 
| Line 1120  int int_bits(int); |  | 
|  |  | 
|  |  | 
| LUM LUMALLOC(int, int); | LUM LUMALLOC(int, int); | 
|  | BM BMALLOC(int, int); | 
| Obj ToAlg(Num); | Obj ToAlg(Num); | 
| UM *berlemain(register int, UM, UM *); | UM *berlemain(register int, UM, UM *); | 
| void *Risa_GC_malloc(size_t); | void *Risa_GC_malloc(size_t); |