Changeset b8027c in git
- Timestamp:
- Dec 9, 2006, 12:55:35 PM (16 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a657104b677b4c461d018cbf3204d72d34ad66a9')
- Children:
- ab1d1cbf2127c32e349512cc14dbd970bcbf91e9
- Parents:
- bc49e512eda58a96a83ddfd550e0906f182ae01f
- Location:
- kernel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/pInline1.h
rbc49e51 rb8027c 7 7 * Author: obachman (Olaf Bachmann) 8 8 * Created: 8/00 9 * Version: $Id: pInline1.h,v 1. 6 2006-06-07 18:44:24 wienandExp $9 * Version: $Id: pInline1.h,v 1.7 2006-12-09 11:55:35 Singular Exp $ 10 10 *******************************************************************/ 11 11 #ifndef PINLINE1_H … … 150 150 _pNext(np) = NULL; 151 151 _pSetCoeff0(np, n_Copy(_pGetCoeff(p), r)); 152 return np; 153 } 154 // set all exponents l..k to 0, assume exp. k+1..n and 1..l-1 are in 155 // different blocks 156 // set coeff to 1 157 PINLINE1 poly p_GetExp_k_n(poly p, int l, int k, ring r) 158 { 159 if (p == NULL) return NULL; 160 p_LmCheckPolyRing1(p, r); 161 poly np; 162 omTypeAllocBin(poly, np, r->PolyBin); 163 p_SetRingOfLm(np, r); 164 p_ExpVectorCopy(np, p, r); 165 _pNext(np) = NULL; 166 _pSetCoeff0(np, n_Init(1, r)); 167 int i; 168 for(i=l;i<=k;i++) 169 { 170 np->exp[(r->VarOffset[i] & 0xffffff)] =0; 171 } 172 p_Setm(np,r); 152 173 return np; 153 174 } -
kernel/pInline2.h
rbc49e51 rb8027c 7 7 * Author: obachman (Olaf Bachmann) 8 8 * Created: 8/00 9 * Version: $Id: pInline2.h,v 1. 6 2006-11-23 15:04:54Singular Exp $9 * Version: $Id: pInline2.h,v 1.7 2006-12-09 11:55:35 Singular Exp $ 10 10 *******************************************************************/ 11 11 #ifndef PINLINE2_H … … 147 147 #endif 148 148 } 149 // partial compare exponent 150 // r->VarOffset encodes the position in p->exp (lower 24 bits) 151 // and number of bits to shift to the right in the upper 8 bits 152 PINLINE2 int p_Comp_k_n(poly a, poly b, int k, ring r) 153 { 154 p_LmCheckPolyRing2(a, r); 155 p_LmCheckPolyRing2(b, r); 156 pAssume2(k > 0 && k <= r->N); 157 int i=k; 158 for(;i<=r->N;i++) 159 { 160 if(a->exp[(r->VarOffset[i] & 0xffffff)] 161 != b->exp[(r->VarOffset[i] & 0xffffff)]) 162 return FALSE; 163 } 164 return TRUE; 165 } 149 166 PINLINE2 int p_SetExp(poly p, int v, int e, ring r) 150 167 {
Note: See TracChangeset
for help on using the changeset viewer.