Changeset 900802 in git
- Timestamp:
- Jan 27, 2010, 12:26:35 PM (13 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '00e2e9c41af3fde1273eb3633f4c0c7c3db2579d')
- Children:
- 9c4865b7cda2bf45bae975154676503fdfcbf15e
- Parents:
- 4c4a8025d5593bc6f5fd2950cfac144eb2d79cd3
- Location:
- kernel
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/ffields.cc
r4c4a80 r900802 20 20 int nfCharP=0; /* the characteristic: p*/ 21 21 static int nfCharQ1=0; /* q-1 */ 22 CARDINAL*nfPlus1Table=NULL; /* the table i=log(z^i) -> log(z^i+1) */22 unsigned short *nfPlus1Table=NULL; /* the table i=log(z^i) -> log(z^i+1) */ 23 23 /* the q's from the table 'fftable' */ 24 24 unsigned short fftable[]={ … … 166 166 while (i >= nfCharP) i -= nfCharP; 167 167 if (i==0) return (number)(long)nfCharQ; 168 CARDINALc=0;168 unsigned short c=0; 169 169 while (i>1) 170 170 { … … 592 592 if (nfCharQ > 1) 593 593 { 594 omFreeSize( (ADDRESS)nfPlus1Table,nfCharQ*sizeof( CARDINAL) );594 omFreeSize( (ADDRESS)nfPlus1Table,nfCharQ*sizeof(unsigned short) ); 595 595 nfPlus1Table=NULL; 596 596 } … … 620 620 nfCharQ1=nfCharQ-1; 621 621 //Print("nfCharQ=%d,nfCharQ1=%d,mipo=>>%s<<\n",nfCharQ,nfCharQ1,buf); 622 nfPlus1Table= ( CARDINAL *)omAlloc( (nfCharQ)*sizeof(CARDINAL) );622 nfPlus1Table= (unsigned short *)omAlloc( (nfCharQ)*sizeof(unsigned short) ); 623 623 int digs = gf_tab_numdigits62( nfCharQ ); 624 624 char * bufptr; -
kernel/hdegree.cc
r4c4a80 r900802 21 21 22 22 int hCo, hMu, hMu2; 23 struct omBin_s* indlist_bin = omGetSpecBin(sizeof(indlist)); 23 24 24 25 /*0 implementation*/ -
kernel/hutil.h
r4c4a80 r900802 18 18 scfmon mo; 19 19 int a; 20 }; 21 22 typedef struct sindlist indlist; 23 typedef indlist * indset; 24 struct sindlist 25 { 26 indset nx; 27 intvec * set; 20 28 }; 21 29 -
kernel/longalg.cc
r4c4a80 r900802 27 27 28 28 naIdeal naI=NULL; 29 30 omBin snaIdeal_bin = omGetSpecBin(sizeof(snaIdeal)); 29 31 30 32 int naNumbOfPar; -
kernel/misc.cc
r4c4a80 r900802 48 48 49 49 omBin char_ptr_bin = omGetSpecBin(sizeof(char_ptr)); 50 omBin indlist_bin = omGetSpecBin(sizeof(indlist));51 omBin naIdeal_bin = omGetSpecBin(sizeof(naIdeal));52 omBin snaIdeal_bin = omGetSpecBin(sizeof(snaIdeal));53 50 omBin smprec_bin = omGetSpecBin(sizeof(smprec)); 54 51 omBin sip_sring_bin = omGetSpecBin(sizeof(sip_sring)); -
kernel/modulop.cc
r4c4a80 r900802 28 28 29 29 #ifdef HAVE_DIV_MOD 30 CARDINAL*npInvTable=NULL;30 unsigned short *npInvTable=NULL; 31 31 #endif 32 32 33 33 #if !defined(HAVE_DIV_MOD) || !defined(HAVE_MULT_MOD) 34 CARDINAL*npExpTable=NULL;35 CARDINAL*npLogTable=NULL;34 unsigned short *npExpTable=NULL; 35 unsigned short *npLogTable=NULL; 36 36 #endif 37 37 … … 350 350 { 351 351 #if !defined(HAVE_DIV_MOD) || !defined(HAVE_MULT_MOD) 352 r->cf->npExpTable=( CARDINAL *)omAlloc( r->cf->npPrimeM*sizeof(CARDINAL) );353 r->cf->npLogTable=( CARDINAL *)omAlloc( r->cf->npPrimeM*sizeof(CARDINAL) );352 r->cf->npExpTable=(unsigned short *)omAlloc( r->cf->npPrimeM*sizeof(unsigned short) ); 353 r->cf->npLogTable=(unsigned short *)omAlloc( r->cf->npPrimeM*sizeof(unsigned short) ); 354 354 r->cf->npExpTable[0] = 1; 355 355 r->cf->npLogTable[0] = 0; … … 382 382 #endif 383 383 #ifdef HAVE_DIV_MOD 384 r->cf->npInvTable=( CARDINAL*)omAlloc0( r->cf->npPrimeM*sizeof(CARDINAL) );384 r->cf->npInvTable=(unsigned short*)omAlloc0( r->cf->npPrimeM*sizeof(unsigned short) ); 385 385 #endif 386 386 } -
kernel/modulop.h
r4c4a80 r900802 60 60 /* for npMultM, npSubM, npNegM, npEqualM : */ 61 61 #ifdef HAVE_DIV_MOD 62 extern CARDINAL*npInvTable;62 extern unsigned short *npInvTable; 63 63 #else 64 64 #ifndef HAVE_MULT_MOD 65 65 extern long npPminus1M; 66 extern CARDINAL*npExpTable;67 extern CARDINAL*npLogTable;66 extern unsigned short *npExpTable; 67 extern unsigned short *npLogTable; 68 68 #endif 69 69 #endif -
kernel/numbers.cc
r4c4a80 r900802 717 717 if (r->cf->npInvTable!=NULL) 718 718 omFreeSize( (ADDRESS)r->cf->npInvTable, 719 r->cf->npPrimeM*sizeof( CARDINAL) );719 r->cf->npPrimeM*sizeof(unsigned short) ); 720 720 #else 721 721 if (r->cf->npExpTable!=NULL) 722 722 { 723 723 omFreeSize( (ADDRESS)r->cf->npExpTable, 724 r->cf->npPrimeM*sizeof( CARDINAL) );724 r->cf->npPrimeM*sizeof(unsigned short) ); 725 725 omFreeSize( (ADDRESS)r->cf->npLogTable, 726 r->cf->npPrimeM*sizeof( CARDINAL) );726 r->cf->npPrimeM*sizeof(unsigned short) ); 727 727 } 728 728 #endif -
kernel/structs.h
r4c4a80 r900802 19 19 20 20 /* standard types */ 21 typedef unsigned short CARDINAL;22 21 #ifdef HAVE_RINGS 23 22 typedef MP_INT *int_number; … … 197 196 typedef struct p_Procs_s p_Procs_s; 198 197 199 // for hdegree.cc200 typedef struct sindlist indlist;201 typedef indlist * indset;202 struct sindlist203 {204 indset nx;205 intvec * set;206 };207 208 198 // for longalg.cc 209 199 struct snaIdeal … … 235 225 int npPminus1M; 236 226 #ifdef HAVE_DIV_MOD 237 CARDINAL*npInvTable;227 unsigned short *npInvTable; 238 228 #endif 239 229 #if !defined(HAVE_DIV_MOD) || !defined(HAVE_MULT_MOD) 240 CARDINAL*npExpTable;241 CARDINAL*npLogTable;230 unsigned short *npExpTable; 231 unsigned short *npLogTable; 242 232 #endif 243 233 // Zp_a, Q_a … … 615 605 long vars are those longs in the exponent vector which are 616 606 occupied by variables, only */ 617 short VarL_Size;607 short VarL_Size; 618 608 short BitsPerExp; /* number of bits per exponent */ 619 609 short ExpPerLong; /* maximal number of Exponents per long */ … … 828 818 829 819 extern struct omBin_s* char_ptr_bin; 830 extern struct omBin_s* indlist_bin;831 extern struct omBin_s* naIdeal_bin;832 extern struct omBin_s* snaIdeal_bin;833 820 extern struct omBin_s* smprec_bin; 834 821 extern struct omBin_s* sip_sring_bin;
Note: See TracChangeset
for help on using the changeset viewer.