Changeset ad23ba in git
- Timestamp:
- Oct 26, 2010, 10:32:51 AM (14 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- f7449ff74c2f2331426674adbf6689f8bb8c3e8c
- Parents:
- 2f6c2530ff0c14d62689daf53d8fec72d51fc12e
- Location:
- kernel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/pInline1.h
r2f6c253 rad23ba 114 114 omTypeAllocBin(poly, np, r->PolyBin); 115 115 p_SetRingOfLm(np, r); 116 p_ ExpVectorCopy(np, p, r);116 p_MemCopy_LengthGeneral(np->exp, p->exp, r->ExpL_Size); 117 117 pNext(np) = NULL; 118 118 pSetCoeff0(np, NULL); 119 119 return np; 120 }121 PINLINE1 poly p_LmInit(poly s_p, const ring s_r, const ring d_r)122 {123 pAssume1(d_r != NULL);124 return p_LmInit(s_p, s_r, d_r, d_r->PolyBin);125 120 } 126 121 PINLINE1 poly p_LmInit(poly s_p, const ring s_r, const ring d_r, omBin d_bin) … … 141 136 return d_p; 142 137 } 138 PINLINE1 poly p_LmInit(poly s_p, const ring s_r, const ring d_r) 139 { 140 pAssume1(d_r != NULL); 141 return p_LmInit(s_p, s_r, d_r, d_r->PolyBin); 142 } 143 143 PINLINE1 poly p_Head(poly p, const ring r) 144 144 { … … 148 148 omTypeAllocBin(poly, np, r->PolyBin); 149 149 p_SetRingOfLm(np, r); 150 p_ ExpVectorCopy(np, p, r);150 p_MemCopy_LengthGeneral(np->exp, p->exp, r->ExpL_Size); 151 151 pNext(np) = NULL; 152 152 pSetCoeff0(np, n_Copy(pGetCoeff(p), r)); … … 163 163 omTypeAllocBin(poly, np, r->PolyBin); 164 164 p_SetRingOfLm(np, r); 165 p_ ExpVectorCopy(np, p, r);165 p_MemCopy_LengthGeneral(np->exp, p->exp, r->ExpL_Size); 166 166 pNext(np) = NULL; 167 167 pSetCoeff0(np, n_Init(1, r)); -
kernel/pInline2.h
r2f6c253 rad23ba 370 370 } 371 371 372 PINLINE2 unsigned long 373 p_GetMaxExp(const unsigned long l, const ring r, const int number_of_exps) 372 PINLINE2 unsigned long p_GetMaxExp(const unsigned long l, const ring r) 374 373 { 375 374 unsigned long bitmask = r->bitmask; 376 375 unsigned long max = (l & bitmask); 377 unsigned long j = number_of_exps- 1;376 unsigned long j = r->ExpPerLong - 1; 378 377 379 378 if (j > 0) … … 392 391 } 393 392 return max; 394 }395 396 PINLINE2 unsigned long p_GetMaxExp(const unsigned long l, const ring r)397 {398 return p_GetMaxExp(l, r, r->ExpPerLong);399 393 } 400 394
Note: See TracChangeset
for help on using the changeset viewer.