Changeset 9af51a9 in git for libpolys


Ignore:
Timestamp:
Mar 3, 2021, 8:15:44 PM (3 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '2a584933abf2a2d3082034c7586d38bb6de1a30a')
Children:
ed88662fc73fa44031d15c9da35b0018e4b6e78e
Parents:
8bf51f59b9dcce7af6334bc9dc6ad15a2a523002
Message:
compilöer warning: unused var/param/func
Location:
libpolys/coeffs
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • libpolys/coeffs/ffields.cc

    r8bf51f r9af51a9  
    721721}
    722722
    723 static number nfMapMPZ(number c, const coeffs src, const coeffs dst)
     723static number nfMapMPZ(number c, const coeffs, const coeffs dst)
    724724{
    725725  mpz_t tmp;
  • libpolys/coeffs/flintcf_Q.cc

    r8bf51f r9af51a9  
    4444}
    4545
    46 static BOOLEAN CoeffIsEqual(const coeffs r, n_coeffType n, void * parameter)
     46static BOOLEAN CoeffIsEqual(const coeffs r, n_coeffType n, void *)
    4747{
    4848  return (r->type==n);
    4949}
    50 static void SetChar(const coeffs r)
     50static void SetChar(const coeffs)
    5151{
    5252  // dummy
    5353}
    54 static number Mult(number a, number b, const coeffs c)
     54static number Mult(number a, number b, const coeffs)
    5555{
    5656  fmpq_poly_ptr res=(fmpq_poly_ptr)omAlloc(sizeof(fmpq_poly_t));
     
    5959  return (number)res;
    6060}
    61 static number Sub(number a, number b, const coeffs c)
     61static number Sub(number a, number b, const coeffs)
    6262{
    6363  fmpq_poly_ptr res=(fmpq_poly_ptr)omAlloc(sizeof(fmpq_poly_t));
     
    6666  return (number)res;
    6767}
    68 static number Add(number a, number b, const coeffs c)
     68static number Add(number a, number b, const coeffs)
    6969{
    7070  fmpq_poly_ptr res=(fmpq_poly_ptr)omAlloc(sizeof(fmpq_poly_t));
     
    7373  return (number)res;
    7474}
    75 static number Div(number a, number b, const coeffs c)
     75static number Div(number a, number b, const coeffs)
    7676{
    7777  fmpq_poly_ptr res=(fmpq_poly_ptr)omAlloc(sizeof(fmpq_poly_t));
     
    9595  return (number)res;
    9696}
    97 static number ExactDiv(number a, number b, const coeffs c)
     97static number ExactDiv(number a, number b, const coeffs)
    9898{
    9999  fmpq_poly_ptr res=(fmpq_poly_ptr)omAlloc(sizeof(fmpq_poly_t));
     
    107107  return (number)res;
    108108}
    109 static number IntMod(number a, number b, const coeffs c)
     109#if 0
     110static number IntMod(number a, number b, const coeffs)
    110111{
    111112  fmpq_poly_ptr res=(fmpq_poly_ptr)omAlloc(sizeof(fmpq_poly_t));
     
    114115  return (number)res;
    115116}
    116 static number Init (long i, const coeffs r)
     117#endif
     118static number Init (long i, const coeffs)
    117119{
    118120  fmpq_poly_ptr res=(fmpq_poly_ptr)omAlloc(sizeof(fmpq_poly_t));
     
    121123  return (number)res;
    122124}
    123 static number InitMPZ (mpz_t i, const coeffs r)
     125static number InitMPZ (mpz_t i, const coeffs)
    124126{
    125127  fmpq_poly_ptr res=(fmpq_poly_ptr)omAlloc(sizeof(fmpq_poly_t));
     
    128130  return (number)res;
    129131}
    130 static int Size (number n, const coeffs r)
     132static int Size (number n, const coeffs)
    131133{
    132134  return fmpq_poly_degree((fmpq_poly_ptr)n);
    133135}
    134 static long Int (number &n, const coeffs r)
     136static long Int (number &n, const coeffs)
    135137{
    136138  if (fmpq_poly_degree((fmpq_poly_ptr)n)==0)
     
    155157  return 0;
    156158}
    157 static void MPZ(mpz_t result, number &n, const coeffs r)
     159static void MPZ(mpz_t result, number &n, const coeffs)
    158160{
    159161  mpz_init(result);
     
    173175  }
    174176}
    175 static number Neg(number a, const coeffs r)
     177static number Neg(number a, const coeffs)
    176178{
    177179  fmpq_poly_neg((fmpq_poly_ptr)a,(fmpq_poly_ptr)a);
    178180  return a;
    179181}
    180 static number Invers(number a, const coeffs r)
     182static number Invers(number a, const coeffs)
    181183{
    182184  if(fmpq_poly_is_zero((fmpq_poly_ptr)a))
     
    198200  }
    199201}
    200 static number Copy(number a, const coeffs r)
     202static number Copy(number a, const coeffs)
    201203{
    202204 fmpq_poly_ptr res=(fmpq_poly_ptr)omAlloc(sizeof(fmpq_poly_t));
     
    205207 return (number)res;
    206208}
    207 //static number RePart(number a, const coeffs r)
     209//static number RePart(number a, const coeffs)
    208210//{
    209211//}
    210 //static number ImPart(number a, const coeffs r)
     212//static number ImPart(number a, const coeffs)
    211213//{
    212214//}
    213 static BOOLEAN IsOne (number a, const coeffs r);
    214 static BOOLEAN IsZero (number a, const coeffs r);
    215 //static void WriteLong(number &a, const coeffs r)
     215static BOOLEAN IsOne (number a, const coeffs);
     216static BOOLEAN IsZero (number a, const coeffs);
     217//static void WriteLong(number &a, const coeffs)
    216218//{
    217219//}
     
    312314  return s;
    313315}
    314 static void Normalize(number &a, const coeffs r)
     316static void Normalize(number &a, const coeffs)
    315317{
    316318  fmpq_poly_canonicalise((fmpq_poly_ptr)a);
    317319}
    318 static BOOLEAN Greater (number a, number b, const coeffs r)
     320static BOOLEAN Greater (number a, number b, const coeffs)
    319321{
    320322  return (fmpq_poly_cmp((fmpq_poly_ptr)a,(fmpq_poly_ptr)b)>0);
    321323}
    322 static BOOLEAN Equal (number a, number b, const coeffs r)
     324static BOOLEAN Equal (number a, number b, const coeffs)
    323325{
    324326  return (fmpq_poly_equal((fmpq_poly_ptr)a,(fmpq_poly_ptr)b));
    325327}
    326 static BOOLEAN IsZero (number a, const coeffs r)
     328static BOOLEAN IsZero (number a, const coeffs)
    327329{
    328330  return fmpq_poly_is_zero((fmpq_poly_ptr)a);
    329331}
    330 static BOOLEAN IsOne (number a, const coeffs r)
     332static BOOLEAN IsOne (number a, const coeffs)
    331333{
    332334  return fmpq_poly_is_one((fmpq_poly_ptr)a);
    333335}
    334 static BOOLEAN IsMOne (number k, const coeffs r)
     336static BOOLEAN IsMOne (number k, const coeffs)
    335337{
    336338  if (fmpq_poly_length((fmpq_poly_ptr)k)>0) return FALSE;
     
    356358  return (result);
    357359}
    358 static BOOLEAN GreaterZero (number k, const coeffs r)
     360static BOOLEAN GreaterZero (number, const coeffs)
    359361{
    360362  // does it have a leading sign?
     
    362364  return TRUE;
    363365}
    364 static void Power(number a, int i, number * result, const coeffs r)
     366static void Power(number a, int i, number * result, const coeffs)
    365367{
    366368  fmpq_poly_ptr res=(fmpq_poly_ptr)omAlloc(sizeof(fmpq_poly_t));
     
    369371  fmpq_poly_pow((fmpq_poly_ptr)(*result),(fmpq_poly_ptr)a,i);
    370372}
    371 static number GetDenom(number &n, const coeffs r)
     373static number GetDenom(number &n, const coeffs)
    372374{
    373375 fmpq_poly_ptr res=(fmpq_poly_ptr)omAlloc(sizeof(fmpq_poly_t));
    374376 fmpq_poly_init(res);
    375  fmpz_ptr den=fmpq_poly_denref(res);
     377 fmpz_ptr den=fmpq_poly_denref((fmpq_poly_ptr)n);
    376378 fmpq_poly_set_fmpz(res,den);
    377379 return (number)res;
    378380}
    379 static number GetNumerator(number &n, const coeffs r)
     381static number GetNumerator(number &n, const coeffs)
    380382{
    381383 fmpq_poly_ptr res=(fmpq_poly_ptr)omAlloc(sizeof(fmpq_poly_t));
     
    386388 return (number)res;
    387389}
    388 static number Gcd(number a, number b, const coeffs r)
     390static number Gcd(number a, number b, const coeffs)
    389391{
    390392  fmpq_poly_ptr res=(fmpq_poly_ptr)omAlloc(sizeof(fmpq_poly_t));
     
    393395  return (number)res;
    394396}
    395 static number ExtGcd(number a, number b, number *s, number *t,const coeffs r)
     397static number ExtGcd(number a, number b, number *s, number *t,const coeffs)
    396398{
    397399  fmpq_poly_ptr res=(fmpq_poly_ptr)omAlloc(sizeof(fmpq_poly_t));
     
    402404  return (number)res;
    403405}
    404 static number Lcm(number a, number b, const coeffs r)
     406static number Lcm(number, number, const coeffs)
    405407{
    406408  WerrorS("not yet: Lcm");
    407 }
    408 static void Delete(number * a, const coeffs r)
     409  return NULL;
     410}
     411static void Delete(number * a, const coeffs)
    409412{
    410413  if ((*a)!=NULL)
     
    415418  }
    416419}
    417 static nMapFunc SetMap(const coeffs src, const coeffs dst)
     420static nMapFunc SetMap(const coeffs, const coeffs)
    418421{
    419422  WerrorS("not yet: SetMap");
    420423  return NULL;
    421424}
    422 //static void InpMult(number &a, number b, const coeffs r)
     425//static void InpMult(number &a, number b, const coeffs)
    423426//{
    424427//}
    425 //static void InpAdd(number &a, number b, const coeffs r)
     428//static void InpAdd(number &a, number b, const coeffs)
    426429//{
    427430//}
    428 static number Init_bigint(number i, const coeffs dummy, const coeffs dst)
     431#if 0
     432static number Init_bigint(number i, const coeffs, const coeffs)
    429433{
    430434  fmpq_poly_ptr res=(fmpq_poly_ptr)omAlloc(sizeof(fmpq_poly_t));
     
    438442  return (number)res;
    439443}
    440 static number Farey(number p, number n, const coeffs)
     444#endif
     445static number Farey(number, number, const coeffs)
    441446{
    442447  WerrorS("not yet: Farey");
    443 }
    444 static number ChineseRemainder(number *x, number *q,int rl, BOOLEAN sym,CFArray &inv_cache,const coeffs)
     448  return NULL;
     449}
     450static number ChineseRemainder(number *, number *,int , BOOLEAN ,CFArray &,const coeffs)
    445451{
    446452  WerrorS("not yet: ChineseRemainder");
    447 }
    448 static int ParDeg(number x,const coeffs r)
     453  return NULL;
     454}
     455static int ParDeg(number x,const coeffs)
    449456{
    450457  return fmpq_poly_degree((fmpq_poly_ptr)x);
    451458}
    452 static number Parameter(const int i, const coeffs r)
     459static number Parameter(const int, const coeffs)
    453460{
    454461  fmpq_poly_ptr res=(fmpq_poly_ptr)omAlloc(sizeof(fmpq_poly_t));
     
    507514// cfClearContent
    508515// cfClearDenominators
    509 static number ConvFactoryNSingN( const CanonicalForm n, const coeffs r)
     516static number ConvFactoryNSingN( const CanonicalForm, const coeffs)
    510517{
    511518  WerrorS("not yet: ConvFactoryNSingN");
    512 }
    513 static CanonicalForm ConvSingNFactoryN( number n, BOOLEAN setChar, const coeffs r )
     519  return NULL;
     520}
     521static CanonicalForm ConvSingNFactoryN( number, BOOLEAN, const coeffs )
    514522{
    515523  WerrorS("not yet: ConvSingNFactoryN");
     524  return CanonicalForm(0);
    516525}
    517526char * CoeffName(const coeffs r)
     
    540549}
    541550#ifdef LDEBUG
    542 static BOOLEAN DBTest(number a, const char *f, const int l, const coeffs r)
     551static BOOLEAN DBTest(number, const char *, const int, const coeffs)
    543552{
    544553  return TRUE;
  • libpolys/coeffs/modulop.cc

    r8bf51f r9af51a9  
    327327
    328328#ifndef HAVE_GENERIC_MULT
    329 static number npPar(int i, coeffs r)
     329static number npPar(int, coeffs r)
    330330{
    331331  return (number)(long)r->npExpTable[1];
     
    607607}
    608608
    609 nMapFunc npSetMap(const coeffs src, const coeffs dst)
     609nMapFunc npSetMap(const coeffs src, const coeffs)
    610610{
    611611#ifdef HAVE_RINGS
  • libpolys/coeffs/ntupel.cc

    r8bf51f r9af51a9  
    519519}
    520520
    521 nMapFunc nnSetMap(const coeffs src, const coeffs dst)
     521nMapFunc nnSetMap(const coeffs, const coeffs)
    522522{
    523523  return nnMap;
     
    579579
    580580
    581 static number nnChineseRemainder(number *x, number *q,int rl, BOOLEAN sym, CFArray &inv_cache,const coeffs CF)
     581static number nnChineseRemainder(number *, number *,int , BOOLEAN , CFArray &,const coeffs )
    582582{
    583583  WerrorS("not yet");
Note: See TracChangeset for help on using the changeset viewer.