Changeset 29fc71e in git for libpolys/coeffs/modulop.cc


Ignore:
Timestamp:
Dec 15, 2016, 5:01:48 PM (7 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '2a584933abf2a2d3082034c7586d38bb6de1a30a')
Children:
de0827163dab3593d0c9fc510d88e5dae470ee9f
Parents:
d4074372de7adff86fa2669958131b9b4b479376
Message:
code cleanup: remoived unused stuff: longrat0, modulop
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/coeffs/modulop.cc

    rd40743 r29fc71e  
    4848#endif
    4949
    50 //int     npGetChar();
    51 
    5250nMapFunc npSetMap(const coeffs src, const coeffs dst);
    53 number  npMapP(number from, const coeffs src, const coeffs r);
    54 
    55 // extern int npGen; // obsolete
    56 
    57 // int npGen=0;
    58 
    59 /*-------specials for spolys, do NOT use otherwise--------------------------*/
    60 /* for npMultM, npSubM, npNegM, npEqualM : */
    61 #ifdef HAVE_DIV_MOD
    62 extern unsigned short *npInvTable;
    63 #else
    64 #ifndef HAVE_MULT_MOD
    65 extern long npPminus1M;
    66 extern unsigned short *npExpTable;
    67 extern unsigned short *npLogTable;
    68 #endif
    69 #endif
    7051
    7152#ifdef NV_OPS
     
    8869//void    nvPower       (number a, int i, number * result, const coeffs r);
    8970#endif
    90 
    91 
    92 
    9371
    9472BOOLEAN npGreaterZero (number k, const coeffs r)
     
    131109  n_Test(c, r);
    132110  return c;
    133 
    134111}
    135112
     
    304281  n_Test(d, r);
    305282  return d;
    306 
    307283}
    308284
     
    375351static const char* npEati(const char *s, int *i, const coeffs r)
    376352{
    377 
    378353  if (((*s) >= '0') && ((*s) <= '9'))
    379354  {
     
    644619#endif
    645620
    646 number npMapP(number from, const coeffs src, const coeffs dst_r)
     621static number npMapP(number from, const coeffs src, const coeffs dst_r)
    647622{
    648623  long i = (long)from;
     
    732707* convert from a GMP integer
    733708*/
    734 number npMapGMP(number from, const coeffs /*src*/, const coeffs dst)
     709static number npMapGMP(number from, const coeffs /*src*/, const coeffs dst)
    735710{
    736711  mpz_ptr erg = (mpz_ptr) omAlloc(sizeof(mpz_t)); // evtl. spaeter mit bin
     
    745720}
    746721
    747 number npMapZ(number from, const coeffs src, const coeffs dst)
     722static number npMapZ(number from, const coeffs src, const coeffs dst)
    748723{
    749724  if (SR_HDL(from) & SR_INT)
     
    758733* convert from an machine long
    759734*/
    760 number npMapMachineInt(number from, const coeffs /*src*/,const coeffs dst)
     735static number npMapMachineInt(number from, const coeffs /*src*/,const coeffs dst)
    761736{
    762737  long i = (long) (((unsigned long) from) % dst->ch);
     
    765740#endif
    766741
    767 number npMapCanonicalForm (number a, const coeffs /*src*/, const coeffs dst)
     742static number npMapCanonicalForm (number a, const coeffs /*src*/, const coeffs dst)
    768743{
    769744  setCharacteristic (dst ->ch);
Note: See TracChangeset for help on using the changeset viewer.