Changeset 790096 in git
- Timestamp:
- Jul 27, 2007, 9:37:53 AM (17 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 933871af039b13f2d88c1b7e79b84eb0d4fcc521
- Parents:
- 34f579d74be005a72ab482b2155215f93851a854
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/longrat.cc
r34f579 r790096 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: longrat.cc,v 1.2 2 2007-07-25 15:18:20Singular Exp $ */4 /* $Id: longrat.cc,v 1.23 2007-07-27 07:37:53 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: computation with long rational numbers (Hubert Grassmann) … … 400 400 if (SR_HDL(a) & SR_INT) 401 401 return 1; /* immidiate int */ 402 int s=a->z._mp_alloc -1;403 while ((s>0) &&(a->z._mp_d[s]==0L)) s--;402 int s=a->z._mp_alloc; 403 // while ((s>0) &&(a->z._mp_d[s]==0L)) s--; 404 404 //#if SIZEOF_LONG == 8 405 405 // if (a->z._mp_d[s] < (unsigned long)0x100000000L) s=s*2-1; 406 406 // else s *=2; 407 407 //#endif 408 s++;408 // s++; 409 409 if (a->s<2) 410 410 { 411 int d=a->n._mp_alloc -1;412 while ((d>0) && (a->n._mp_d[d]==0L)) d--;411 int d=a->n._mp_alloc; 412 // while ((d>0) && (a->n._mp_d[d]==0L)) d--; 413 413 //#if SIZEOF_LONG == 8 414 414 // if (a->n._mp_d[d] < (unsigned long)0x100000000L) d=d*2-1;
Note: See TracChangeset
for help on using the changeset viewer.