Changeset f003a9 in git for Singular/polys.cc
- Timestamp:
- Mar 23, 1998, 11:51:10 PM (26 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 427ba93431587575a0ada806631e26f2aa275abc
- Parents:
- 469bce4cdf3d9ed6f4f24673a0ac2fca1836d944
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/polys.cc
r469bce rf003a9 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: polys.cc,v 1.1 8 1998-03-19 16:05:50obachman Exp $ */4 /* $Id: polys.cc,v 1.19 1998-03-23 22:51:04 obachman Exp $ */ 5 5 6 6 /* … … 43 43 int pVarLowIndex; // lowest exponent index 44 44 int pVarHighIndex; // highest exponent index 45 int pVarCompIndex; // Location of component in exponent vector 45 46 46 47 /* 1 for polynomial ring, -1 otherwise */ … … 236 237 237 238 if (d) Mreturn(d, pOrdSgn); 238 _pMonComp_otEXPCOMP_nwTWO(p1, p2, d, goto NotEqual, return 0); 239 239 // _pMonComp_otEXPCOMP_nwTWO(p1, p2, d, goto NotEqual, return 0); 240 241 do 242 { 243 const long* s1 = (long*) &(p1->exp[0]); 244 const long* s2 = (long*) &(p2->exp[0]); 245 d = *s1 - *s2; 246 if (d) goto NotEqual; 247 d = *(s1 + 1) - *(s2 + 1); 248 if (d) 249 { 250 if (((long) (pGetComp(p1) - pGetComp(p2))) == d) 251 d = -d; 252 goto NotEqual; 253 } 254 return 0; 255 } 256 while(0); 257 240 258 NotEqual: 241 259 Mreturn(d, pLexSgn);
Note: See TracChangeset
for help on using the changeset viewer.