Changeset 8ce2d8c in git
- Timestamp:
- Sep 23, 2008, 1:47:30 PM (15 years ago)
- Branches:
- (u'spielwiese', 'f6c3dc58b0df4bd712574325fe76d0626174ad97')
- Children:
- 00142a809efe227a5c58f2d1a8e78688300294b4
- Parents:
- 5453c78c6d3920b4994efdda5f70fb34543127ca
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/int_poly.cc
r5453c7 r8ce2d8c 1 1 /* emacs edit mode for this file is -*- C++ -*- */ 2 /* $Id: int_poly.cc,v 1.2 1 2008-06-25 13:53:20 Singular Exp $ */2 /* $Id: int_poly.cc,v 1.22 2008-09-23 11:47:30 Singular Exp $ */ 3 3 4 4 #include <config.h> … … 224 224 InternalPoly::neg () 225 225 { 226 if ( getRefCount() == 1 )226 if ( getRefCount() <= 1 ) 227 227 { 228 228 negateTermList( firstTerm ); … … 259 259 { 260 260 InternalPoly * aPoly = (InternalPoly*)aCoeff; 261 if ( getRefCount() == 1 )261 if ( getRefCount() <= 1 ) 262 262 { 263 263 firstTerm = addTermList( firstTerm, aPoly->firstTerm, lastTerm, false ); … … 299 299 { 300 300 InternalPoly * aPoly = (InternalPoly*)aCoeff; 301 if ( getRefCount() == 1 )301 if ( getRefCount() <= 1 ) 302 302 { 303 303 firstTerm = addTermList( firstTerm, aPoly->firstTerm, lastTerm, true ); … … 353 353 resultFirst = reduceTermList( resultFirst, (getInternalMipo( var ))->firstTerm, resultLast ); 354 354 if ( resultFirst == 0 ) 355 if ( getRefCount() == 1 )355 if ( getRefCount() <= 1 ) 356 356 { 357 357 delete this; … … 364 364 } 365 365 else if ( resultFirst->exp == 0 ) 366 if ( getRefCount() == 1 )366 if ( getRefCount() <= 1 ) 367 367 { 368 368 InternalCF * res = resultFirst->coeff.getval(); … … 379 379 } 380 380 } 381 if ( getRefCount() == 1 )381 if ( getRefCount() <= 1 ) 382 382 { 383 383 freeTermList( firstTerm ); … … 408 408 if (is_imm(dummy)) dummy=this->mulsame(dummy); 409 409 else dummy = dummy->mulsame( this ); 410 if ( getRefCount() == 1 )410 if ( getRefCount() <= 1 ) 411 411 { 412 412 delete this; … … 425 425 bool singleObject; 426 426 427 if ( getRefCount() == 1 )427 if ( getRefCount() <= 1 ) 428 428 { 429 429 first = firstTerm; last = lastTerm; singleObject = true; … … 506 506 bool singleObject; 507 507 508 if ( getRefCount() == 1 )508 if ( getRefCount() <= 1 ) 509 509 { 510 510 first = firstTerm; last = lastTerm; singleObject = true; … … 763 763 else 764 764 { 765 if ( getRefCount() == 1 )765 if ( getRefCount() <= 1 ) 766 766 { 767 767 if ( lastTerm->exp == 0 ) … … 831 831 else 832 832 { 833 if ( getRefCount() == 1 )833 if ( getRefCount() <= 1 ) 834 834 { 835 835 if ( lastTerm->exp == 0 ) … … 904 904 if ( c.isZero() ) 905 905 { 906 if ( getRefCount() == 1 )906 if ( getRefCount() <= 1 ) 907 907 { 908 908 delete this; … … 919 919 else 920 920 { 921 if ( getRefCount() == 1 )921 if ( getRefCount() <= 1 ) 922 922 { 923 923 mulTermList( firstTerm, c, 0 ); … … 953 953 } 954 954 else dummy = dummy->mulcoeff( cc ); 955 if ( getRefCount() == 1 )955 if ( getRefCount() <= 1 ) 956 956 { 957 957 delete this; … … 965 965 } 966 966 if ( invert ) 967 if ( getRefCount() == 1 )967 if ( getRefCount() <= 1 ) 968 968 { 969 969 delete this; … … 979 979 else 980 980 { 981 if ( getRefCount() == 1 )981 if ( getRefCount() <= 1 ) 982 982 { 983 983 firstTerm = divideTermList( firstTerm, c, lastTerm ); … … 1027 1027 dummy = this->invert(); 1028 1028 dummy = dummy->mulcoeff( cc ); 1029 if ( getRefCount() == 1 )1029 if ( getRefCount() <= 1 ) 1030 1030 { 1031 1031 delete this; … … 1039 1039 } 1040 1040 if ( invert ) 1041 if ( getRefCount() == 1 )1041 if ( getRefCount() <= 1 ) 1042 1042 { 1043 1043 delete this; … … 1053 1053 else 1054 1054 { 1055 if ( getRefCount() == 1 )1055 if ( getRefCount() <= 1 ) 1056 1056 { 1057 1057 firstTerm = divTermList( firstTerm, c, lastTerm ); … … 1118 1118 if ( c.isOne() ) 1119 1119 { 1120 if ( getRefCount() == 1 )1120 if ( getRefCount() <= 1 ) 1121 1121 { 1122 1122 delete this; … … 1131 1131 else 1132 1132 { 1133 if ( getRefCount() == 1 )1133 if ( getRefCount() <= 1 ) 1134 1134 { 1135 1135 firstTerm = modTermList( firstTerm, c, lastTerm );
Note: See TracChangeset
for help on using the changeset viewer.