Changeset ac8e1a in git for factory/int_poly.cc
- Timestamp:
- Jun 8, 2011, 3:20:17 PM (12 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- 3645fcced1ffa30007ffe55cd16d183a0a6256fe
- Parents:
- 639652f186091509059ccc76f18852db93c1b988
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/int_poly.cc
r639652f rac8e1a 353 353 resultFirst = reduceTermList( resultFirst, (getInternalMipo( var ))->firstTerm, resultLast ); 354 354 if ( resultFirst == 0 ) 355 { 355 356 if ( getRefCount() <= 1 ) 356 357 { … … 363 364 return CFFactory::basic(0); 364 365 } 366 } 365 367 else if ( resultFirst->exp == 0 ) 368 { 366 369 if ( getRefCount() <= 1 ) 367 370 { … … 378 381 return res; 379 382 } 383 } 380 384 } 381 385 if ( getRefCount() <= 1 ) … … 730 734 // test on inequaltiy in general is cheaper 731 735 if ( (cursor1->exp != cursor2->exp) || (cursor1->coeff != cursor2->coeff) ) 736 { 732 737 if ( cursor1->exp > cursor2->exp ) 733 738 return 1; … … 738 743 else 739 744 return -1; 745 } 740 746 // check trailing terms 741 747 if ( cursor1 == cursor2 ) … … 965 971 } 966 972 if ( invert ) 973 { 967 974 if ( getRefCount() <= 1 ) 968 975 { … … 975 982 return CFFactory::basic( 0 ); 976 983 } 984 } 977 985 if ( c.isOne() ) 978 986 return this; … … 1039 1047 } 1040 1048 if ( invert ) 1049 { 1041 1050 if ( getRefCount() <= 1 ) 1042 1051 { … … 1049 1058 return CFFactory::basic( 0 ); 1050 1059 } 1060 } 1051 1061 if ( c.isOne() ) 1052 1062 return this;
Note: See TracChangeset
for help on using the changeset viewer.