Changeset beef52 in git
- Timestamp:
- Jun 22, 2010, 3:05:48 PM (13 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'f875bbaccd0831e36aaed09ff6adeb3eb45aeb94')
- Children:
- 53f7163fe201cc7e502b3ed7c9ca438af57b001a
- Parents:
- 075c01df3d8723eddf341fd2b5aebb368f0b6768
- Location:
- kernel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/polys.cc
r075c01 rbeef52 240 240 { 241 241 // exponent to large: it is not a monomial 242 p_ DeleteLm(&rc,r);242 p_LmDelete(&rc,r); 243 243 return s_save; 244 244 } … … 248 248 { 249 249 // 1st char of is not a varname 250 p_ DeleteLm(&rc,r);250 p_LmDelete(&rc,r); 251 251 s--; 252 252 return s; … … 254 254 } 255 255 done: 256 if (r->cf->nIsZero(pGetCoeff(rc))) p_ DeleteLm(&rc,r);256 if (r->cf->nIsZero(pGetCoeff(rc))) p_LmDelete(&rc,r); 257 257 else 258 258 { … … 270 270 if( p_GetExp(rc, k, r) > 1 ) 271 271 { 272 p_ DeleteLm(&rc, r);272 p_LmDelete(&rc, r); 273 273 goto finish; 274 274 } … … 691 691 poly q; 692 692 693 while ((*p!=NULL) && (pGetComp(*p)==k)) p DeleteLm(p);693 while ((*p!=NULL) && (pGetComp(*p)==k)) pLmDelete(p); 694 694 if (*p==NULL) return; 695 695 q = *p; … … 702 702 { 703 703 if (pGetComp(pNext(q))==k) 704 p DeleteLm(&(pNext(q)));704 pLmDelete(&(pNext(q))); 705 705 else 706 706 { … … 922 922 if (pGetExp(pNext(h),n)!=0) 923 923 { 924 p DeleteLm(&pNext(h));924 pLmDelete(&pNext(h)); 925 925 } 926 926 else … … 984 984 res=pAdd(res,m); 985 985 } 986 p DeleteLm(&h);986 pLmDelete(&h); 987 987 } 988 988 omFreeSize((ADDRESS)me,(pVariables+1)*sizeof(int)); -
kernel/spectrum.cc
r075c01 rbeef52 48 48 pIter(h); 49 49 } 50 while( h!= (poly)NULL );50 while( h!=NULL ); 51 51 52 52 return FALSE; … … 106 106 int isMultiple( poly f,poly m ) 107 107 { 108 while( f!= (poly)NULL )108 while( f!=NULL ) 109 109 { 110 110 // --------------------------------------------------- … … 139 139 { 140 140 poly m = pOne(); 141 poly wc = (poly)NULL;141 poly wc = NULL; 142 142 int mdegree; 143 143 … … 180 180 poly *ptr = &f; 181 181 182 while( (*ptr)!= (poly)NULL )182 while( (*ptr)!=NULL ) 183 183 { 184 184 if( pLmCmp( *ptr,hc )>=0 ) … … 204 204 poly *ptr = &f; 205 205 206 while( (*ptr)!= (poly)NULL )206 while( (*ptr)!=NULL ) 207 207 { 208 208 if( !isMultiple( Z,*ptr ) ) … … 212 212 else 213 213 { 214 p DeleteLm(ptr);214 pLmDelete(ptr); 215 215 } 216 216 } … … 307 307 int carry,k; 308 308 multiCnt C( pVariables,0 ); 309 poly Z = (poly)NULL;309 poly Z = NULL; 310 310 311 311 int well = isWell( ); … … 326 326 // --------------------------- 327 327 328 NF->insert_node( m, (poly)NULL );328 NF->insert_node( m,NULL ); 329 329 } 330 330 else if( isMultiple( Z,m ) ) … … 361 361 nf = normalFormHC( nf,hc ); 362 362 363 if( pNext( nf )== (poly)NULL )363 if( pNext( nf )==NULL ) 364 364 { 365 365 // ---------------------------------- … … 376 376 nf = normalFormZ( nf,Z ); 377 377 378 if( pNext( nf )== (poly)NULL )378 if( pNext( nf )==NULL ) 379 379 { 380 380 // ---------------------------------- … … 404 404 nfhard = normalFormZ ( nfhard,Z ); 405 405 406 if( nfhard== (poly)NULL )406 if( nfhard==NULL ) 407 407 { 408 408 NF->delete_monomial( m ); … … 435 435 while( node!=(spectrumPolyNode*)NULL ) 436 436 { 437 if( node->nf!= (poly)NULL && pNext( node->nf )==(poly)NULL )437 if( node->nf!=NULL && pNext( node->nf )==NULL ) 438 438 { 439 439 NF->delete_monomial( node->nf );
Note: See TracChangeset
for help on using the changeset viewer.