Changeset 3922e33 in git
- Timestamp:
- Nov 18, 1999, 12:19:16 PM (24 years ago)
- Branches:
- (u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
- Children:
- e7b4b466d9e0586b348f176ff415c7bd30227da8
- Parents:
- cf74099cd4e3289c268dfffa7cac3bb755132714
- Location:
- Singular
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/ring.cc
rcf74099 r3922e33 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: ring.cc,v 1.8 4 1999-11-17 18:22:55 Singular Exp $ */4 /* $Id: ring.cc,v 1.85 1999-11-18 11:19:15 Singular Exp $ */ 5 5 6 6 /* … … 2600 2600 // ---------------------------- 2601 2601 // other indicies 2602 #ifdef LONG_MONOMS 2602 2603 r->pDivLow=r->pVarLowIndex/(sizeof(long)/sizeof(Exponent_t)); 2603 2604 r->pDivHigh=r->pVarHighIndex/(sizeof(long)/sizeof(Exponent_t)); 2605 #endif 2604 2606 r->pCompIndex=r->VarOffset[0]; 2605 2607 #ifdef WORDS_BIGENDIAN … … 3063 3065 // ---------------------------- 3064 3066 // other indicies 3067 #ifdef LONG_MONOMS 3065 3068 r->pDivLow=r->pVarLowIndex/(sizeof(long)/sizeof(Exponent_t)); 3066 3069 r->pDivHigh=r->pVarHighIndex/(sizeof(long)/sizeof(Exponent_t)); 3070 #endif 3067 3071 r->pCompIndex=r->VarOffset[0]; 3068 3072 // HANNES--think of s,c,dp; s, dp, C, … … 3111 3115 void rDebugPrint(ring r) 3112 3116 { 3113 int j; 3117 char *TYP[]={"ro_dp","ro_wp","ro_cp","ro_syzcomp", "ro_syz", "ro_none"}; 3118 int i,j; 3114 3119 PrintS("varoffset:\n"); 3115 3120 #ifdef HAVE_SHIFTED_EXPONENTS 3116 for(j=0;j<=r->N;j++) Print(" v%d at pos %d, bit %d\n",3121 for(j=0;j<=r->N;j++) Print(" v%d at e-pos %d, bit %d\n", 3117 3122 j,r->VarOffset[j] & 0xffffff, r->VarOffset[j] >>24); 3118 3123 Print("bitmask=0x%x\n",r->bitmask); 3119 3124 #else 3120 3125 for(j=0;j<=r->N;j++) 3121 Print(" v%d at pos %d\n",j,r->VarOffset[j]);3126 Print(" v%d at e-pos %d\n",j,r->VarOffset[j]); 3122 3127 #endif 3123 3128 PrintS("ordsgn:\n"); … … 3128 3133 for(j=0;j<r->OrdSize;j++) 3129 3134 { 3130 char *TYP[]={"ro_dp","ro_wp","ro_cp","ro_syzcomp", "ro_syz", "ro_none"};3131 3135 Print(" typ %s",TYP[r->typ[j].ord_typ]); 3132 3136 Print(" place %d",r->typ[j].data.dp.place); … … 3147 3151 Print("pVarLowIndex:%d ",r->pVarLowIndex); 3148 3152 Print("pVarHighIndex:%d\n",r->pVarHighIndex); 3153 #ifdef LONG_MONOMS 3149 3154 Print("pDivLow:%d ",r->pDivLow); 3150 3155 Print("pDivHigh:%d\n",r->pDivHigh); 3156 #endif 3151 3157 Print("pCompLowIndex:%d ",r->pCompLowIndex); 3152 3158 Print("pCompHighIndex:%d\n",r->pCompHighIndex); … … 3155 3161 Print("ExpLSize:%d ",r->ExpLSize); 3156 3162 Print("OrdSize:%d\n",r->OrdSize); 3163 PrintS("--------------------\n"); 3164 for(j=0;j<r->ExpLSize;j++) 3165 { 3166 Print("L[%d]: ",j); 3167 #ifdef HAVE_SHIFTED_EXPONENTS 3168 i=1; 3169 #else 3170 i=0; 3171 #endif 3172 for(;i<=r->N;i++) 3173 { 3174 #ifdef HAVE_SHIFTED_EXPONENTS 3175 if( (r->VarOffset[i] & 0xffffff)*sizeof(Exponent_t)/sizeof(long) == j ) 3176 { Print("v%d at e[%d], bit %d; ", i,r->VarOffset[i] & 0xffffff, 3177 r->VarOffset[i] >>24 ); } 3178 #else 3179 if( r->VarOffset[i]*sizeof(Exponent_t)/sizeof(long) == j ) 3180 { Print("v%d at e[%d]; ", i, r->VarOffset[i]); } 3181 #endif 3182 } 3183 #ifdef HAVE_SHIFTED_EXPONENTS 3184 if( r->pCompIndex==j ) Print("v0; "); 3185 #endif 3186 for(i=0;i<r->OrdSize;i++) 3187 { 3188 if (r->typ[i].data.dp.place == j) 3189 { 3190 Print("ordrec:%s (start:%d, end:%d) ",TYP[r->typ[i].ord_typ], 3191 r->typ[i].data.dp.start, r->typ[i].data.dp.end); 3192 } 3193 } 3194 if (j<r->pCompLSize) 3195 Print("ordsgn %d\n", r->ordsgn[j]); 3196 else 3197 PrintLn(); 3198 } 3157 3199 } 3158 3200 -
Singular/structs.h
rcf74099 r3922e33 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: structs.h,v 1. 29 1999-11-15 17:20:51 obachmanExp $ */6 /* $Id: structs.h,v 1.30 1999-11-18 11:19:16 Singular Exp $ */ 7 7 /* 8 8 * ABSTRACT … … 274 274 // contains component, but no weight fields in E */ 275 275 // better: pVarLowIndexE / pVarLowIndexL 276 #ifdef LONG_MONOMS 276 277 short pDivLow; 277 278 short pDivHigh; /* the same as pVarLow..pVarHigh, */ 278 279 /* but as index in the 'long' field */ 279 280 #endif 280 281 short pCompLowIndex; // better: use pCompareLowIndexL 281 282 short pCompHighIndex; /* use p->exp.l[pCompLowIndex..ppCompHighIndex] */
Note: See TracChangeset
for help on using the changeset viewer.