Changeset b68503 in git for kernel/GBEngine


Ignore:
Timestamp:
Oct 11, 2016, 3:34:39 PM (8 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
0dc3cbbb3a71c072642a8ab8fd19175731e12816
Parents:
4763e2fe897fe59eb65c374cdfe241efab6d9ab6
Message:
fix: intered: check for overflow of exponents
Location:
kernel/GBEngine
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/GBEngine/kInline.h

    r4763e2 rb68503  
    10911091KINLINE poly redtailBba (poly p,int pos,kStrategy strat,BOOLEAN normalize)
    10921092{
    1093   LObject L(p, currRing, strat->tailRing);
     1093  LObject L(p);
    10941094  return redtailBba(&L, pos, strat,FALSE, normalize);
    10951095}
     
    10971097KINLINE poly redtailBbaBound (poly p,int pos,kStrategy strat,int bound,BOOLEAN normalize)
    10981098{
    1099   LObject L(p, currRing, strat->tailRing);
     1099  LObject L(p, currRing, strat->tailRing); // ? L(p); ??
    11001100  return redtailBbaBound(&L, pos, strat,bound, FALSE, normalize);
    11011101}
  • kernel/GBEngine/kstd1.cc

    r4763e2 rb68503  
    34963496    {
    34973497      // completeReduce needed larger exponents, retry
    3498       // to reduce with S (instead of T)
    3499       // and in currRing (instead of strat->tailRing)
    3500       cleanT(strat);strat->tailRing=currRing;
    3501       int i;
    3502       for(i=strat->sl;i>=0;i--) strat->S_2_R[i]=-1;
     3498      // hopefully: kStratChangeTailRing already provided a larger tailRing
     3499      //    (otherwise: it will fail again)
    35033500      strat->completeReduce_retry=FALSE;
    35043501      completeReduce(strat);
    35053502      if (strat->completeReduce_retry)
    35063503      {
    3507         // completeReduce needed larger exponents, retry
    3508         // to reduce with S (instead of T)
    3509         // and in currRing (instead of strat->tailRing)
    35103504#ifdef HAVE_TAIL_RING
    35113505        if(currRing->bitmask>strat->tailRing->bitmask)
    35123506        {
     3507          // retry without T
    35133508          strat->completeReduce_retry=FALSE;
    35143509          cleanT(strat);strat->tailRing=currRing;
Note: See TracChangeset for help on using the changeset viewer.