Changeset 29fc71e in git for libpolys/coeffs/modulop.cc
- Timestamp:
- Dec 15, 2016, 5:01:48 PM (7 years ago)
- Branches:
- (u'spielwiese', '2a584933abf2a2d3082034c7586d38bb6de1a30a')
- Children:
- de0827163dab3593d0c9fc510d88e5dae470ee9f
- Parents:
- d4074372de7adff86fa2669958131b9b4b479376
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/coeffs/modulop.cc
rd40743 r29fc71e 48 48 #endif 49 49 50 //int npGetChar();51 52 50 nMapFunc npSetMap(const coeffs src, const coeffs dst); 53 number npMapP(number from, const coeffs src, const coeffs r);54 55 // extern int npGen; // obsolete56 57 // int npGen=0;58 59 /*-------specials for spolys, do NOT use otherwise--------------------------*/60 /* for npMultM, npSubM, npNegM, npEqualM : */61 #ifdef HAVE_DIV_MOD62 extern unsigned short *npInvTable;63 #else64 #ifndef HAVE_MULT_MOD65 extern long npPminus1M;66 extern unsigned short *npExpTable;67 extern unsigned short *npLogTable;68 #endif69 #endif70 51 71 52 #ifdef NV_OPS … … 88 69 //void nvPower (number a, int i, number * result, const coeffs r); 89 70 #endif 90 91 92 93 71 94 72 BOOLEAN npGreaterZero (number k, const coeffs r) … … 131 109 n_Test(c, r); 132 110 return c; 133 134 111 } 135 112 … … 304 281 n_Test(d, r); 305 282 return d; 306 307 283 } 308 284 … … 375 351 static const char* npEati(const char *s, int *i, const coeffs r) 376 352 { 377 378 353 if (((*s) >= '0') && ((*s) <= '9')) 379 354 { … … 644 619 #endif 645 620 646 number npMapP(number from, const coeffs src, const coeffs dst_r)621 static number npMapP(number from, const coeffs src, const coeffs dst_r) 647 622 { 648 623 long i = (long)from; … … 732 707 * convert from a GMP integer 733 708 */ 734 number npMapGMP(number from, const coeffs /*src*/, const coeffs dst)709 static number npMapGMP(number from, const coeffs /*src*/, const coeffs dst) 735 710 { 736 711 mpz_ptr erg = (mpz_ptr) omAlloc(sizeof(mpz_t)); // evtl. spaeter mit bin … … 745 720 } 746 721 747 number npMapZ(number from, const coeffs src, const coeffs dst)722 static number npMapZ(number from, const coeffs src, const coeffs dst) 748 723 { 749 724 if (SR_HDL(from) & SR_INT) … … 758 733 * convert from an machine long 759 734 */ 760 number npMapMachineInt(number from, const coeffs /*src*/,const coeffs dst)735 static number npMapMachineInt(number from, const coeffs /*src*/,const coeffs dst) 761 736 { 762 737 long i = (long) (((unsigned long) from) % dst->ch); … … 765 740 #endif 766 741 767 number npMapCanonicalForm (number a, const coeffs /*src*/, const coeffs dst)742 static number npMapCanonicalForm (number a, const coeffs /*src*/, const coeffs dst) 768 743 { 769 744 setCharacteristic (dst ->ch);
Note: See TracChangeset
for help on using the changeset viewer.