Changeset b8027c in git for kernel/pInline2.h
- Timestamp:
- Dec 9, 2006, 12:55:35 PM (17 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- ab1d1cbf2127c32e349512cc14dbd970bcbf91e9
- Parents:
- bc49e512eda58a96a83ddfd550e0906f182ae01f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.