Changeset 502859 in git for kernel


Ignore:
Timestamp:
May 4, 2021, 4:35:47 PM (3 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'c5facdfddea2addfd91babd8b9019161dea4b695')
Children:
45cfb8266d61cc69290d8979c85bf1cdfc5a72df
Parents:
182ac7798e7d403f6c9b311fc8923c0241c720f7
Message:
opt: CanonicalizeP
Location:
kernel/GBEngine
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • kernel/GBEngine/kLiftstd.cc

    r182ac7 r502859  
    147147  if (strat->tl<0) return 1;
    148148  assume(h->FDeg == h->pFDeg());
     149  assume(TEST_OPT_IDLIFT);
    149150  poly h_p;
    150151  int i,j,pass,ei, ii, h_d,ci;
  • kernel/GBEngine/kstd1.cc

    r182ac7 r502859  
    786786int redFirst (LObject* h,kStrategy strat)
    787787{
     788  if (strat->tl<0) return 1;
    788789  if (h->IsNull()) return 0;
    789790
     
    931932          return -1;
    932933        }
     934      }
     935      if (UNLIKELY(pass>30))
     936      {
     937        h->CanonicalizeP();
     938        pass=0;
     939        if (TEST_OPT_PROT) { PrintS("!");mflush(); }
    933940      }
    934941      if ((TEST_OPT_PROT) && (strat->Ll < 0) && (d >= reddeg))
  • kernel/GBEngine/kstd2.cc

    r182ac7 r502859  
    822822int redRing (LObject* h,kStrategy strat)
    823823{
     824  if (strat->tl<0) return 1;
    824825  if (h->IsNull()) return 0; // spoly is zero (can only occure with zero divisors)
    825   if (strat->tl<0) return 1;
    826826
    827827  int at/*,i*/;
     
    10961096        return -1;
    10971097      }
     1098    }
     1099    else if (UNLIKELY(pass>30))
     1100    {
     1101      h->CanonicalizeP();
     1102      pass=0;
     1103      if (TEST_OPT_PROT) { PrintS("!");mflush(); }
    10981104    }
    10991105  }
     
    18631869        reddeg = d;
    18641870      }
     1871    }
     1872    else if (UNLIKELY(pass>30))
     1873    {
     1874      h->CanonicalizeP();
     1875      pass=0;
     1876      if (TEST_OPT_PROT) { PrintS("!");mflush(); }
    18651877    }
    18661878  }
Note: See TracChangeset for help on using the changeset viewer.