Changeset 32396b in git for libpolys


Ignore:
Timestamp:
Jun 12, 2017, 11:52:57 AM (7 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '2a584933abf2a2d3082034c7586d38bb6de1a30a')
Children:
12de090bb5f6e76f1ab307a2fea467c80b9023e1
Parents:
1095e9b7eb8d9b6eb44d0fc5ca191e0d04e208d4
Message:
minor opt: p_GetComp -> __p_GetComp if there is a component, p4
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/simpleideals.cc

    r1095e9 r32396b  
    13121312    {
    13131313      p=F[i];
    1314       while ((p!=NULL) && (iscom[p_GetComp(p,R)]==0)) pIter(p);
     1314      while ((p!=NULL) && (iscom[__p_GetComp(p,R)]==0)) pIter(p);
    13151315    }
    13161316    if ((p==NULL) && (i<length))
     
    13321332      //  order = p->order;
    13331333      //  order = pFDeg(p,currRing);
    1334       order = d(p,R) +diff[p_GetComp(p,R)];
     1334      order = d(p,R) +diff[__p_GetComp(p,R)];
    13351335      //order += diff[pGetComp(p)];
    13361336      p = F[i];
     
    13461346      //  ord = p->order;
    13471347        ord = R->pFDeg(p,R);
    1348       if (iscom[p_GetComp(p,R)]==0)
    1349       {
    1350         diff[p_GetComp(p,R)] = order-ord;
    1351         iscom[p_GetComp(p,R)] = 1;
     1348      if (iscom[__p_GetComp(p,R)]==0)
     1349      {
     1350        diff[__p_GetComp(p,R)] = order-ord;
     1351        iscom[__p_GetComp(p,R)] = 1;
    13521352/*
    13531353*PrintS("new diff: ");
     
    13681368*Print("order %d, ord %d, diff %d\n",order,ord,diff[pGetComp(p)]);
    13691369*/
    1370         if (order != (ord+diff[p_GetComp(p,R)]))
     1370        if (order != (ord+diff[__p_GetComp(p,R)]))
    13711371        {
    13721372          omFreeSize((ADDRESS) iscom,cmax*sizeof(int));
     
    14491449    while (p!=NULL)
    14501450    {
    1451       j = p_GetComp(p,r);
     1451      j = __p_GetComp(p,r);
    14521452      if (componentIsUsed[j]==0)
    14531453      {
     
    16201620    {
    16211621      poly h=p_Head(p, rRing);
    1622       int co=p_GetComp(h, rRing)-1;
     1622      int co=__p_GetComp(h, rRing)-1;
    16231623      p_SetComp(h, i, rRing);
    16241624      p_Setm(h, rRing);
     
    16871687      poly h = p_Head(w, rRing);
    16881688
    1689       const int  gen = p_GetComp(h, rRing); // 1 ...
     1689      const int  gen = __p_GetComp(h, rRing); // 1 ...
    16901690
    16911691      assume(gen > 0);
Note: See TracChangeset for help on using the changeset viewer.