Changeset 959263 in git
- Timestamp:
- Jul 6, 2010, 1:56:10 PM (13 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- 83bde7677e30b29c0175c6ded6bfb22ed67a40ec
- Parents:
- 92080408874be46b8fb117a4d03d6a4bc4f8d921
- Location:
- kernel
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/ideals.cc
r920804 r959263 961 961 if ((pGetComp(qp1)+i > 0) || ((j == -i) && (j == k))) 962 962 { 963 p SetComp(qp1,pGetComp(qp1)+i);963 pAddComp(qp1,i); 964 964 pSetmComp(qp1); 965 965 qp2 = qp1; -
kernel/pInline2.h
r920804 r959263 77 77 return c; 78 78 } 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 }92 79 PINLINE2 unsigned long p_AddComp(poly p, unsigned long v, ring r) 93 80 { -
kernel/p_polys.h
r920804 r959263 72 72 #define p_GetComp(p, r) _p_GetComp(p, r) 73 73 PINLINE2 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);76 74 PINLINE2 unsigned long p_AddComp(poly p, unsigned long v, ring r); 77 75 PINLINE2 unsigned long p_SubComp(poly p, unsigned long v, ring r); -
kernel/polys.cc
r920804 r959263 494 494 if (pGetComp(q) > k) 495 495 { 496 p DecrComp(q);496 pSubComp(q,1); 497 497 if (use_setmcomp) pSetmComp(q); 498 498 } … … 522 522 if (pGetComp(q) > k) 523 523 { 524 p DecrComp(q);524 pSubComp(q,1); 525 525 if (use_setmcomp) pSetmComp(q); 526 526 } … … 696 696 if (pGetComp(q)>k) 697 697 { 698 p DecrComp(q);698 pSubComp(q,1); 699 699 pSetmComp(q); 700 700 } … … 708 708 if (pGetComp(q)>k) 709 709 { 710 p DecrComp(q);710 pSubComp(q,1); 711 711 pSetmComp(q); 712 712 } -
kernel/polys.h
r920804 r959263 63 63 #define pGetComp(p) _p_GetComp(p, currRing) 64 64 #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)67 65 #define pAddComp(p,v) p_AddComp(p,v,currRing) 68 66 #define pSubComp(p,v) p_SubComp(p,v,currRing)
Note: See TracChangeset
for help on using the changeset viewer.