Changeset 603aebf in git
- Timestamp:
- Apr 15, 2010, 6:22:30 PM (13 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- a604c3a46abd7b2318d7828804705a9ca0a249bf
- Parents:
- ad36a11446cb8f65d69a1ca7d2db339062d69f59
- Location:
- kernel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/longrat.cc
rad36a1 r603aebf 1361 1361 return i%p; 1362 1362 } 1363 int iz=(int)mpz_ mmod_ui(NULL,&n->z,(unsigned long)p);1363 int iz=(int)mpz_fdiv_ui(&n->z,(unsigned long)p); 1364 1364 if (n->s!=3) 1365 1365 { 1366 int in=mpz_ mmod_ui(NULL,&n->n,(unsigned long)p);1366 int in=mpz_fdiv_ui(&n->n,(unsigned long)p); 1367 1367 #ifdef NV_OPS 1368 1368 if (npPrimeM>NV_MAX_PRIME) -
kernel/modulop.cc
rad36a1 r603aebf 469 469 ndest->_mp_alloc = ndest->_mp_size = bl; 470 470 res->s = 0; 471 in=mpz_ mmod_ui(NULL,ndest,npPrimeM);471 in=mpz_fdiv_ui(ndest,npPrimeM); 472 472 mpz_clear(ndest); 473 473 } … … 484 484 dest->_mp_d = dd; 485 485 dest->_mp_alloc = al; 486 iz=mpz_ mmod_ui(NULL,dest,npPrimeM);486 iz=mpz_fdiv_ui(dest,npPrimeM); 487 487 mpz_clear(dest); 488 488 omFreeBin((ADDRESS)res, rnumber_bin);
Note: See TracChangeset
for help on using the changeset viewer.