Changeset 29fc71e in git


Ignore:
Timestamp:
Dec 15, 2016, 5:01:48 PM (7 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'd08f5f0bb3329b8ca19f23b74cb1473686415c3a')
Children:
de0827163dab3593d0c9fc510d88e5dae470ee9f
Parents:
d4074372de7adff86fa2669958131b9b4b479376
Message:
code cleanup: remoived unused stuff: longrat0, modulop
Location:
libpolys/coeffs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libpolys/coeffs/longrat0.cc

    rd40743 r29fc71e  
    1717#include "numbers.h"
    1818#include "longrat.h"
    19 
    20 /// Our Type!
    21 static const n_coeffType ID = n_Q;
    2219
    2320omBin rnumber_bin = omGetSpecBin(sizeof(snumber)); // TODO: move this into coeffs-struct (for Q)?!
     
    173170}
    174171#endif
    175 
  • 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.