Changeset 907843 in git
- Timestamp:
- Nov 19, 1999, 4:07:51 PM (24 years ago)
- Branches:
- (u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
- Children:
- 571625f3655da7276034893dfe074bab4dfa7900
- Parents:
- cf3993f4588628542776dbe4c4371af7a59d5c74
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/ring.cc
rcf3993 r907843 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: ring.cc,v 1.8 6 1999-11-18 14:47:01 obachmanExp $ */4 /* $Id: ring.cc,v 1.87 1999-11-19 15:07:51 Singular Exp $ */ 5 5 6 6 /* … … 2790 2790 rO_WDegree(j,r->block0[i],r->block1[i],tmp_ordsgn,tmp_typ[typ_i], 2791 2791 r->wvhdl[i]); 2792 if (r->OrdIndex== -1) 2793 { 2794 r->OrdIndex= (j-1)*sizeof(Exponent_t)/sizeof(long); 2795 } 2792 2796 r->pVarLowIndex=j; 2793 2797 typ_i++; … … 2812 2816 typ_i++; 2813 2817 } 2818 if (r->OrdIndex== -1) 2819 { 2820 r->OrdIndex= (j-1)*sizeof(Exponent_t)/sizeof(long); 2821 } 2814 2822 r->pVarLowIndex=j; 2815 2823 break; … … 2818 2826 case ringorder_lp: 2819 2827 rO_LexVars(j, r->block0[i],r->block1[i], prev_ordsgn,tmp_ordsgn,v); 2828 if (r->OrdIndex== -1) 2829 { 2830 r->OrdIndex= (j-1)*sizeof(Exponent_t)/sizeof(long); 2831 } 2820 2832 break; 2821 2833 2822 2834 case ringorder_ls: 2823 2835 rO_LexVars_neg(j, r->block0[i],r->block1[i], prev_ordsgn,tmp_ordsgn,v); 2836 if (r->OrdIndex== -1) 2837 { 2838 r->OrdIndex= (j-1)*sizeof(Exponent_t)/sizeof(long); 2839 } 2824 2840 break; 2825 2841 … … 3070 3086 #endif 3071 3087 r->pCompIndex=r->VarOffset[0]; 3072 // HANNES--think of s,c,dp; s, dp, C,3073 3088 #ifdef WORDS_BIGENDIAN 3074 if(r->pCompIndex==0) r->pOrdIndex=1; 3075 else r->pOrdIndex=0; 3089 if (r->order[0] == ringorder_s) 3090 { 3091 if (r->pCompIndex == 1) 3092 r->pOrdIndex = 2; 3093 else 3094 r->pOrdIndex = 1; 3095 } 3096 else if (r->pCompIndex == 0) 3097 r->pOrdIndex=1; 3098 else 3099 r->pOrdIndex=0; 3076 3100 #else 3077 3101 if (r->order[0] == ringorder_s) … … 3174 3198 #ifdef HAVE_SHIFTED_EXPONENTS 3175 3199 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, 3200 { Print("v%d at e[%d], bit %d; ", i,r->VarOffset[i] & 0xffffff, 3177 3201 r->VarOffset[i] >>24 ); } 3178 3202 #else … … 3506 3530 if (r->order[i] == ringorder_M) length *= length; 3507 3531 assume(mmSizeL(wvhdl) >= length*sizeof(int)); 3508 3532 3509 3533 for (j=0; j< length; j++) 3510 3534 { … … 3515 3539 return TRUE; 3516 3540 } 3517 3518
Note: See TracChangeset
for help on using the changeset viewer.