Changeset 9bb5457 in git for libpolys/coeffs/longrat.cc


Ignore:
Timestamp:
May 27, 2011, 2:56:51 PM (13 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'b324714bf5073469800caef737deba1366fbd81f')
Children:
2c7f28850c274452c6d4f324225864e2331412ed
Parents:
7af488ec51790060979537b35a03fb345e053f90
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2011-05-27 14:56:51+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:39:06+01:00
Message:
fixed warning about unused paramaters in coeffs
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/coeffs/longrat.cc

    r7af488e r9bb5457  
    151151  assume( getCoeffType(dst) == ID );
    152152  assume( getCoeffType(src) == n_Zp );
    153  
     153
    154154  number to;
    155155  to = nlInit(npInt(from,src), dst);
     
    164164* convert from a GMP integer
    165165*/
    166 number nlMapGMP(number from, const coeffs src, const coeffs dst)
     166number nlMapGMP(number from, const coeffs /*src*/, const coeffs /*dst*/)
    167167{
    168168  number z=ALLOC_RNUMBER();
     
    180180* convert from an machine long
    181181*/
    182 number nlMapMachineInt(number from, const coeffs src, const coeffs dst)
     182number nlMapMachineInt(number from, const coeffs /*src*/, const coeffs /*dst*/)
    183183{
    184184  number z=ALLOC_RNUMBER();
     
    195195
    196196#ifdef LDEBUG
    197 BOOLEAN nlDBTest(number a, const char *f,const int l, const coeffs r)
     197BOOLEAN nlDBTest(number a, const char *f,const int l, const coeffs /*r*/)
    198198{
    199199  if (a==NULL)
     
    284284
    285285#ifdef HAVE_FACTORY
    286 CanonicalForm nlConvSingNFactoryN( number n, BOOLEAN setChar, const coeffs r )
     286CanonicalForm nlConvSingNFactoryN( number n, BOOLEAN setChar, const coeffs /*r*/ )
    287287{
    288288  if (setChar) setCharacteristic( 0 );
     
    345345  assume( getCoeffType(dst) == ID );
    346346  assume( getCoeffType(src) == n_R );
    347  
     347
    348348  double f=nrFloat(from);
    349349  if (f==0.0) return INT_TO_SR(0);
     
    372372}
    373373
    374 static number nlMapLongR(number from, const coeffs src, const coeffs dst) 
     374static number nlMapLongR(number from, const coeffs src, const coeffs dst)
    375375{
    376376  assume( getCoeffType(dst) == ID );
    377377  assume( getCoeffType(src) == n_long_R );
    378  
     378
    379379  gmp_float *ff=(gmp_float*)from;
    380380  mpf_t *f=ff->_mpfp();
     
    522522     return 1; /* immidiate int */
    523523  int s=a->z[0]._mp_alloc;
    524 //  while ((s>0) &&(a->z._mp_d[s]==0L)) s--; 
     524//  while ((s>0) &&(a->z._mp_d[s]==0L)) s--;
    525525//#if SIZEOF_LONG == 8
    526526//  if (a->z._mp_d[s] < (unsigned long)0x100000000L) s=s*2-1;
     
    531531  {
    532532    int d=a->n[0]._mp_alloc;
    533 //    while ((d>0) && (a->n._mp_d[d]==0L)) d--; 
     533//    while ((d>0) && (a->n._mp_d[d]==0L)) d--;
    534534//#if SIZEOF_LONG == 8
    535535//    if (a->n._mp_d[d] < (unsigned long)0x100000000L) d=d*2-1;
     
    19711971  assume( getCoeffType(dst) == ID );
    19721972  assume( getCoeffType(src) == ID );
    1973  
     1973
    19741974  if ((SR_HDL(a) & SR_INT)||(a==NULL))
    19751975  {
     
    19831983  assume( getCoeffType(dst) == ID );
    19841984//  assume( getCoeffType(src) == ID );
    1985  
     1985
    19861986  if (nCoeff_is_Q(src))
    19871987  {
     
    23642364    nlTest(u, R);
    23652365    return u;
    2366    
     2366
    23672367  }
    23682368  number u = _nlMult_aNoImm_OR_bNoImm(a, b);
    23692369  nlTest(u, R);
    23702370  return u;
    2371  
     2371
    23722372}
    23732373
     
    23912391  nlTest(u, r);
    23922392  return u;
    2393  
     2393
    23942394}
    23952395
     
    25392539}
    25402540
    2541 void    nlCoeffWrite  (const coeffs r)
     2541void    nlCoeffWrite  (const coeffs)
    25422542{
    25432543  PrintS("//   characteristic : 0\n");
    25442544}
    25452545
    2546 BOOLEAN nlInitChar(coeffs r, void* p)
     2546BOOLEAN nlInitChar(coeffs r, void*)
    25472547{
    25482548  assume( getCoeffType(r) == ID );
    25492549  //const int ch = (int)(long)(p);
    2550  
     2550
    25512551  r->cfKillChar=NULL;
    25522552  r->cfSetChar=NULL;
     
    26092609  r->has_simple_Alloc=FALSE;
    26102610  r->has_simple_Inverse=FALSE;
    2611  
     2611
    26122612  // variables for this type of coeffs:
    26132613  // (none)
Note: See TracChangeset for help on using the changeset viewer.