Changeset 959263 in git


Ignore:
Timestamp:
Jul 6, 2010, 1:56:10 PM (14 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b4f17ed1d25f93d46dbe29e4b499baecc2fd51bb')
Children:
83bde7677e30b29c0175c6ded6bfb22ed67a40ec
Parents:
92080408874be46b8fb117a4d03d6a4bc4f8d921
Message:
removed pIncrComp,pDecrComp

git-svn-id: file:///usr/local/Singular/svn/trunk@12950 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
kernel
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • kernel/ideals.cc

    r920804 r959263  
    961961    if ((pGetComp(qp1)+i > 0) || ((j == -i) && (j == k)))
    962962    {
    963       pSetComp(qp1,pGetComp(qp1)+i);
     963      pAddComp(qp1,i);
    964964      pSetmComp(qp1);
    965965      qp2 = qp1;
  • kernel/pInline2.h

    r920804 r959263  
    7777  return c;
    7878}
    79 PINLINE2 unsigned long p_IncrComp(poly p, ring r)
    80 {
    81   p_LmCheckPolyRing2(p, r);
    82   pAssume2(rRing_has_Comp(r));
    83   return ++(__p_GetComp(p,r));
    84 }
    85 PINLINE2 unsigned long p_DecrComp(poly p, ring r)
    86 {
    87   p_LmCheckPolyRing2(p, r);
    88   pAssume2(rRing_has_Comp(r));
    89   pPolyAssume2(__p_GetComp(p,r) > 0,p,r);
    90   return --(__p_GetComp(p,r));
    91 }
    9279PINLINE2 unsigned long p_AddComp(poly p, unsigned long v, ring r)
    9380{
  • kernel/p_polys.h

    r920804 r959263  
    7272#define p_GetComp(p, r)     _p_GetComp(p, r)
    7373PINLINE2 unsigned long p_SetComp(poly p, unsigned long c, ring r);
    74 PINLINE2 unsigned long p_IncrComp(poly p, ring r);
    75 PINLINE2 unsigned long p_DecrComp(poly p, ring r);
    7674PINLINE2 unsigned long p_AddComp(poly p, unsigned long v, ring r);
    7775PINLINE2 unsigned long p_SubComp(poly p, unsigned long v, ring r);
  • kernel/polys.cc

    r920804 r959263  
    494494  if (pGetComp(q) > k)
    495495  {
    496     pDecrComp(q);
     496    pSubComp(q,1);
    497497    if (use_setmcomp) pSetmComp(q);
    498498  }
     
    522522      if (pGetComp(q) > k)
    523523      {
    524         pDecrComp(q);
     524        pSubComp(q,1);
    525525        if (use_setmcomp) pSetmComp(q);
    526526      }
     
    696696  if (pGetComp(q)>k)
    697697  {
    698     pDecrComp(q);
     698    pSubComp(q,1);
    699699    pSetmComp(q);
    700700  }
     
    708708      if (pGetComp(q)>k)
    709709      {
    710         pDecrComp(q);
     710        pSubComp(q,1);
    711711        pSetmComp(q);
    712712      }
  • kernel/polys.h

    r920804 r959263  
    6363#define pGetComp(p)         _p_GetComp(p, currRing)
    6464#define pSetComp(p,v)       p_SetComp(p,v, currRing)
    65 #define pIncrComp(p)        p_IncrComp(p,currRing)
    66 #define pDecrComp(p)        p_DecrComp(p,currRing)
    6765#define pAddComp(p,v)       p_AddComp(p,v,currRing)
    6866#define pSubComp(p,v)       p_SubComp(p,v,currRing)
Note: See TracChangeset for help on using the changeset viewer.