Changeset 8ce2d8c in git


Ignore:
Timestamp:
Sep 23, 2008, 1:47:30 PM (16 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
00142a809efe227a5c58f2d1a8e78688300294b4
Parents:
5453c78c6d3920b4994efdda5f70fb34543127ca
Message:
*hannes: recfCnt


git-svn-id: file:///usr/local/Singular/svn/trunk@11074 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • factory/int_poly.cc

    r5453c7 r8ce2d8c  
    11/* emacs edit mode for this file is -*- C++ -*- */
    2 /* $Id: int_poly.cc,v 1.21 2008-06-25 13:53:20 Singular Exp $ */
     2/* $Id: int_poly.cc,v 1.22 2008-09-23 11:47:30 Singular Exp $ */
    33
    44#include <config.h>
     
    224224InternalPoly::neg ()
    225225{
    226     if ( getRefCount() == 1 )
     226    if ( getRefCount() <= 1 )
    227227    {
    228228        negateTermList( firstTerm );
     
    259259{
    260260    InternalPoly * aPoly = (InternalPoly*)aCoeff;
    261     if ( getRefCount() == 1 )
     261    if ( getRefCount() <= 1 )
    262262    {
    263263        firstTerm = addTermList( firstTerm, aPoly->firstTerm, lastTerm, false );
     
    299299{
    300300    InternalPoly * aPoly = (InternalPoly*)aCoeff;
    301     if ( getRefCount() == 1 )
     301    if ( getRefCount() <= 1 )
    302302    {
    303303        firstTerm = addTermList( firstTerm, aPoly->firstTerm, lastTerm, true );
     
    353353        resultFirst = reduceTermList( resultFirst, (getInternalMipo( var ))->firstTerm, resultLast );
    354354        if ( resultFirst == 0 )
    355             if ( getRefCount() == 1 )
     355            if ( getRefCount() <= 1 )
    356356            {
    357357                delete this;
     
    364364            }
    365365        else  if ( resultFirst->exp == 0 )
    366             if ( getRefCount() == 1 )
     366            if ( getRefCount() <= 1 )
    367367            {
    368368                InternalCF * res = resultFirst->coeff.getval();
     
    379379            }
    380380    }
    381     if ( getRefCount() == 1 )
     381    if ( getRefCount() <= 1 )
    382382    {
    383383        freeTermList( firstTerm );
     
    408408        if (is_imm(dummy)) dummy=this->mulsame(dummy);
    409409        else dummy = dummy->mulsame( this );
    410         if ( getRefCount() == 1 )
     410        if ( getRefCount() <= 1 )
    411411        {
    412412             delete this;
     
    425425    bool singleObject;
    426426
    427     if ( getRefCount() == 1 )
     427    if ( getRefCount() <= 1 )
    428428    {
    429429        first = firstTerm; last = lastTerm; singleObject = true;
     
    506506    bool singleObject;
    507507
    508     if ( getRefCount() == 1 )
     508    if ( getRefCount() <= 1 )
    509509    {
    510510        first = firstTerm; last = lastTerm; singleObject = true;
     
    763763    else
    764764    {
    765         if ( getRefCount() == 1 )
     765        if ( getRefCount() <= 1 )
    766766        {
    767767            if ( lastTerm->exp == 0 )
     
    831831    else
    832832    {
    833         if ( getRefCount() == 1 )
     833        if ( getRefCount() <= 1 )
    834834        {
    835835            if ( lastTerm->exp == 0 )
     
    904904    if ( c.isZero() )
    905905    {
    906         if ( getRefCount() == 1 )
     906        if ( getRefCount() <= 1 )
    907907        {
    908908            delete this;
     
    919919    else
    920920    {
    921         if ( getRefCount() == 1 )
     921        if ( getRefCount() <= 1 )
    922922        {
    923923            mulTermList( firstTerm, c, 0 );
     
    953953        }
    954954        else dummy = dummy->mulcoeff( cc );
    955         if ( getRefCount() == 1 )
     955        if ( getRefCount() <= 1 )
    956956        {
    957957            delete this;
     
    965965    }
    966966    if ( invert )
    967         if ( getRefCount() == 1 )
     967        if ( getRefCount() <= 1 )
    968968        {
    969969            delete this;
     
    979979    else
    980980    {
    981         if ( getRefCount() == 1 )
     981        if ( getRefCount() <= 1 )
    982982        {
    983983            firstTerm = divideTermList( firstTerm, c, lastTerm );
     
    10271027        dummy = this->invert();
    10281028        dummy = dummy->mulcoeff( cc );
    1029         if ( getRefCount() == 1 )
     1029        if ( getRefCount() <= 1 )
    10301030        {
    10311031            delete this;
     
    10391039    }
    10401040    if ( invert )
    1041         if ( getRefCount() == 1 )
     1041        if ( getRefCount() <= 1 )
    10421042        {
    10431043            delete this;
     
    10531053    else
    10541054    {
    1055         if ( getRefCount() == 1 )
     1055        if ( getRefCount() <= 1 )
    10561056        {
    10571057            firstTerm = divTermList( firstTerm, c, lastTerm );
     
    11181118    if ( c.isOne() )
    11191119    {
    1120         if ( getRefCount() == 1 )
     1120        if ( getRefCount() <= 1 )
    11211121        {
    11221122            delete this;
     
    11311131    else
    11321132    {
    1133         if ( getRefCount() == 1 )
     1133        if ( getRefCount() <= 1 )
    11341134        {
    11351135            firstTerm = modTermList( firstTerm, c, lastTerm );
Note: See TracChangeset for help on using the changeset viewer.