Changeset 613794 in git


Ignore:
Timestamp:
May 11, 2011, 7:44:47 PM (13 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '648d28f488f6ff08f5607ff229b9ad9e4a5b93c2')
Children:
9a90342ac6c7e2f12bfda27f0321e45d10c13c82
Parents:
529fa4949959b00e5797a75be00fe6738a132f14
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2011-05-11 19:44:47+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:36:06+01:00
Message:
add: CoeffIsEqual/KillChar for n_Z2m, n_Z
Location:
libpolys/coeffs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libpolys/coeffs/rintegers.cc

    r529fa4 r613794  
    382382{
    383383  r->cfSetChar= NULL;
     384  r->nCoeffIsEqual = ndCoeffIsEqual;
     385  r->cfKillChar = ndKillChar;
    384386  r->cfMult  = nrzMult;
    385387  r->cfSub   = nrzSub;
    386   r->nCoeffIsEqual = ndCoeffIsEqual;
    387388  r->cfAdd   = nrzAdd;
    388389  r->cfDiv   = nrzDiv;
  • libpolys/coeffs/rmodulo2m.cc

    r529fa4 r613794  
    2828void    nr2mCoeffWrite  (const coeffs r)
    2929{
    30   Print("//   Z/2^%lu\n", r->modExponent);
    31 }
    32 
     30  Print("//   Z/2^%lu\n", r->modExponent);
     31}
     32
     33BOOLEAN nr2mCoeffIsEqual(const coeffs r, n_coeffType n, void * p)
     34{
     35  if (n==n_Z2m)
     36  {
     37    int m=(int)(long)(p);
     38    unsigned long mm=r->mod2mMask;
     39    if ((mm>>m)==1L) return TRUE;
     40  }
     41  return FALSE;
     42}
    3343/* for initializing function pointers */
    3444BOOLEAN nr2mInitChar (coeffs r, void* p)
    3545{
    36  
    3746  nr2mInitExp((int)(long)(p), r);
     47  r->cfKillChar    = ndKillChar; /* dummy*/
     48  r->nCoeffIsEqual = nr2mCoeffIsEqual;
    3849
    3950  r->cfInit        = nr2mInit;
Note: See TracChangeset for help on using the changeset viewer.