Changeset c262d5 in git
- Timestamp:
- May 10, 2011, 6:05:36 PM (12 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- 19cbad8b674bba814480e714d429181b1ecf46e4
- Parents:
- 189f834f5306268cf155678ca0f3265c2568599c
- git-author:
- Hans Schoenemann <hannes@mathematik.uni-kl.de>2011-05-10 18:05:36+02:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:34:44+01:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/coeffs/modulop.cc
r189f83 rc262d5 77 77 } 78 78 79 BOOLEAN npIsZero (number a, const coeffs r)79 BOOLEAN npIsZero (number a, const coeffs) 80 80 { 81 81 return 0 == (long)a; 82 82 } 83 83 84 BOOLEAN npIsOne (number a, const coeffs r)84 BOOLEAN npIsOne (number a, const coeffs) 85 85 { 86 86 return 1 == (long)a; … … 194 194 } 195 195 196 BOOLEAN npGreater (number a,number b, const coeffs r)196 BOOLEAN npGreater (number a,number b, const coeffs) 197 197 { 198 198 //return (long)a != (long)b; … … 283 283 */ 284 284 285 void npSetChar(const coeffs r)285 void npSetChar(const coeffs) 286 286 { 287 287 #if !defined(HAVE_DIV_MOD) || !defined(HAVE_MULT_MOD) … … 328 328 { 329 329 assume(0); 330 return NULL; 330 331 } 331 332 } … … 495 496 } 496 497 497 static number npMapLongR(number from, const coeffs src, const coeffs dst_r)498 static number npMapLongR(number from, const coeffs /*src*/, const coeffs dst_r) 498 499 { 499 500 gmp_float *ff=(gmp_float*)from; … … 502 503 mpz_ptr dest,ndest; 503 504 int size,i; 504 int e,al,bl ,in;505 int e,al,bl; 505 506 long iz; 506 507 mp_ptr qp,dd,nn; … … 529 530 dest = res->z; 530 531 532 int in=0; 531 533 if (e<0) 532 534 { … … 570 572 * convert from a GMP integer 571 573 */ 572 number npMapGMP(number from, const coeffs src, const coeffs dst)574 number npMapGMP(number from, const coeffs /*src*/, const coeffs dst) 573 575 { 574 576 int_number erg = (int_number) omAlloc(sizeof(mpz_t)); // evtl. spaeter mit bin … … 586 588 * convert from an machine long 587 589 */ 588 number npMapMachineInt(number from, const coeffs src,const coeffs dst)590 number npMapMachineInt(number from, const coeffs /*src*/,const coeffs dst) 589 591 { 590 592 long i = (long) (((unsigned long) from) % dst->npPrimeM); … … 594 596 595 597 #ifdef HAVE_FACTORY 596 number npMapCanonicalForm (number a, const coeffs src, const coeffs dst)598 number npMapCanonicalForm (number a, const coeffs /*src*/, const coeffs dst) 597 599 { 598 600 setCharacteristic (dst ->npPrimeM); … … 664 666 long nvInvMod(long a, const coeffs R) 665 667 { 666 long s , t;668 long s; 667 669 668 670 long u, v, u0, v0, u1, v1, u2, v2, q, r;
Note: See TracChangeset
for help on using the changeset viewer.