Changeset dd8d5d in git
- Timestamp:
- Jul 12, 2010, 7:17:33 PM (13 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'f875bbaccd0831e36aaed09ff6adeb3eb45aeb94')
- Children:
- c33f4e1e651e9c7348e3ee67fe6bc7e975dbbe6f
- Parents:
- 29d1bf21200e88af831c550f2dce8fb241b8b95e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/iparith.cc
r29d1bf rdd8d5d 3188 3188 int bound = (int)(long)v->Data(); 3189 3189 number n; 3190 if (u->Typ() == BIGINT_CMD) n = m; 3190 if ((u->Typ() == BIGINT_CMD) 3191 || ((u->Typ()==NUMBER_CMD) && rField_is_Q())) 3192 { 3193 n = nlCopy(m); 3194 } 3191 3195 else 3192 3196 { … … 3197 3201 } 3198 3202 lists l = primeFactorisation(n, bound); 3203 nlDelete(&n,NULL); 3199 3204 res->data=(char*)l; 3200 3205 return FALSE; … … 4464 4469 static BOOLEAN jjPFAC1(leftv res, leftv v) 4465 4470 { 4466 number m = (number)v->Data(); 4467 number n; 4468 if (v->Typ() == BIGINT_CMD) n = m; 4469 else 4470 { 4471 /* then, we expect some other type of number inside m; 4472 it needs to be converted to bigint; we do this via 'int' */ 4473 int i = n_Int(m, currRing); 4474 n = nlInit(i, NULL); 4475 } 4476 lists l = primeFactorisation(n, 0); 4477 res->data=(char*)l; 4478 return FALSE; 4471 sleftv tmp; 4472 memset(&tmp,0,sizeof(tmp)); 4473 tmp.rtyp=INT_CMD; 4474 return jjPFAC2(res,v,&tmp); 4479 4475 } 4480 4476 static BOOLEAN jjLU_DECOMP(leftv res, leftv v)
Note: See TracChangeset
for help on using the changeset viewer.