Changeset a6a239 in git for Singular/structs.h
- Timestamp:
- Sep 12, 2000, 6:01:23 PM (24 years ago)
- Branches:
- (u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '38dfc5131670d387a89455159ed1e071997eec94')
- Children:
- fe7bd4983d0c4322efb17bf36dbf3b28109b9608
- Parents:
- 47e83c37a0601dd5b7dadba83e9c5b04d7efeaf1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/structs.h
r47e83c3 ra6a239 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: structs.h,v 1.3 5 2000-08-24 14:42:46obachman Exp $ */6 /* $Id: structs.h,v 1.36 2000-09-12 16:01:17 obachman Exp $ */ 7 7 /* 8 8 * ABSTRACT … … 22 22 but configure dislikes it */ 23 23 24 #ifdef HAVE_SHIFTED_EXPONENTS 25 /* Define the type of the exponents to be used in monomials */ 26 #undef EXPONENT_TYPE 27 #define EXPONENT_TYPE long 28 /* Define the size of exponent */ 29 #undef SIZEOF_EXPONENT 30 #define SIZEOF_EXPONENT SIZEOF_LONG 31 #endif 32 33 typedef EXPONENT_TYPE Exponent_t; 24 25 typedef long Exponent_t; 26 typedef unsigned long Order_t; 34 27 35 28 enum tHomog … … 259 252 ideal qideal; /* extension to the ring structure: qring */ 260 253 261 #ifdef HAVE_SHIFTED_EXPONENTS262 254 unsigned long bitmask; 263 #endif264 255 265 256 int *VarOffset; 266 /* mapping exp. of var(i) -> p->exp .l*/257 /* mapping exp. of var(i) -> p->exp */ 267 258 #ifdef HAVE_SHIFTED_EXPONENTS 268 259 /* mapping exp. of var(i) -> 269 p->exp .l[(VarOffset[i] & 0xffffff)] >> (VarOffset[i] >> 24) & bitmask */260 p->exp[(VarOffset[i] & 0xffffff)] >> (VarOffset[i] >> 24) & bitmask */ 270 261 #else 271 262 /* mapping exp. of var(i) -> p->exp.e[VarOffset[i]] */ … … 286 277 // contains component, but no weight fields in E */ 287 278 // better: pVarLowIndexE / pVarLowIndexL 288 #ifdef LONG_MONOMS 289 short pDivLow; 290 short pDivHigh; /* the same as pVarLow..pVarHigh, */ 291 /* but as index in the 'long' field */ 292 #endif 293 #ifndef HAVE_SHIFTED_EXPONENTS 294 short pCompLowIndex; // better: use pCompareLowIndexL 295 #endif 296 short pCompHighIndex; /* use p->exp.l[pCompLowIndex..ppCompHighIndex] */ 279 short pCompHighIndex; /* use p->exp[pCompLowIndex..ppCompHighIndex] */ 297 280 /* for comparing monomials */ 298 281 short pCompLSize; // pCompHighIndex - pCompLowIndex + 1 299 282 300 283 short pCompIndex; /* p->exp.e[pCompIndex] is the component */ 301 short pOrdIndex; /* p->exp .l[pOrdIndex] is pGetOrd(p) */284 short pOrdIndex; /* p->exp[pOrdIndex] is pGetOrd(p) */ 302 285 303 286 short ExpESize; /* size of exponent vector in Exponent_t */
Note: See TracChangeset
for help on using the changeset viewer.