Changeset f224d85 in git for kernel/kInline.h


Ignore:
Timestamp:
Sep 24, 2012, 2:52:20 PM (11 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
Children:
92296297754bdb3c65ffad980c8e982ef37cf33b
Parents:
abe5c8b5ebdd2be025cd137e4a089c3780efb8a3
Message:
fix: removing last from p_*templates and k* routines
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/kInline.h

    rabe5c8 rf224d85  
    546546      if (p != NULL) pNext(p) = NULL;
    547547      pLength = 0;
    548       last = NULL;
    549     }
    550   }
    551 }
    552 
    553 KINLINE void sLObject::SetLmTail(poly lm, poly p_tail, int p_Length, int use_bucket, ring _tailRing, poly _last)
     548    }
     549  }
     550}
     551
     552KINLINE void sLObject::SetLmTail(poly lm, poly p_tail, int p_Length, int use_bucket, ring _tailRing)
    554553{
    555554
     
    561560    pNext(lm) = NULL;
    562561    pLength = 0;
    563     last = NULL;
    564562  }
    565563  else
     
    567565    pNext(lm) = p_tail;
    568566    pLength = p_Length + 1;
    569     last = _last;
    570   }
    571 
     567  }
    572568}
    573569
     
    718714                              new_tailRing->PolyBin,p_shallow_copy_delete,
    719715                              FALSE);
    720   last = NULL;
    721716}
    722717
     
    747742  }
    748743  TObject::Copy();
    749   last = NULL;
    750744}
    751745
    752746KINLINE poly sLObject::CopyGetP()
    753747{
    754   last = NULL;
    755748  if (bucket != NULL)
    756749  {
     
    789782  if (! deg_last || bucket != NULL) return sLObject::pLDeg();
    790783
    791   if (last == NULL || pLength == 0)
    792     last = pLast(GetLmTailRing(), pLength);
    793 #ifdef HAVE_ASSUME
    794784  long ldeg;
    795785  ldeg = tailRing->pLDeg(GetLmTailRing(), &length, tailRing);
     786#ifdef HAVE_ASSUME
     787  if ( pLength == 0)
     788    p_Last(GetLmTailRing(), pLength, tailRing);
    796789  assume ( pLength == length || rIsSyzIndexRing(currRing));
    797   assume (ldeg == tailRing->pFDeg(last,tailRing));
     790#else
     791  pLength=length;
     792#endif
    798793  return ldeg;
    799 #else
    800   length = pLength;
    801   return tailRing->pFDeg(last, tailRing);
    802 #endif
    803794}
    804795
     
    11731164// dummy function for function pointer strat->rewCrit being usable in all
    11741165// possible choices for criteria
    1175 KINLINE BOOLEAN arriRewDummy(poly sig, unsigned long not_sevSig, kStrategy strat, int start=0)
     1166KINLINE BOOLEAN arriRewDummy(poly /*sig*/, unsigned long /*not_sevSig*/, kStrategy /*strat*/, int start=0)
    11761167{
    11771168  return FALSE;
Note: See TracChangeset for help on using the changeset viewer.