Changeset 0f93f5 in git


Ignore:
Timestamp:
Apr 11, 2011, 11:51:46 AM (13 years ago)
Author:
Frank Seelisch <seelisch@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '0bc2210f8055033868008a3836878db65ec6f89e')
Children:
e1375d3317dc56c03a4c242a459ec4e46e17f1cd
Parents:
71a8ba465806f6d73667800a0f72b86ac41d93c8
Message:
changed nCopy for Z/2^m*Z

git-svn-id: file:///usr/local/Singular/svn/trunk@14133 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/rmodulo2m.cc

    r71a8ba r0f93f5  
    460460}
    461461
    462 number nr2mCopy(number a)
    463 {
    464   return a;
    465 }
    466 
    467462number nr2mMapMachineInt(number from)
    468463{
    469464  NATNUMBER i = ((NATNUMBER) from) & currRing->nr2mModul;
    470465  return (number) i;
     466}
     467
     468number nr2mCopy(number a)
     469{
     470  /* This method is obviously redundant. But in /kernel/maps.cc a check
     471     is performed whether nSetMap(some ring) and nCopy are identical
     472     function pointers. For that check to work correctly, we need to
     473     implement a version of nCopy for rings of the form Z/2^m*Z, i.e.
     474     this method. */
     475  return nr2mMapMachineInt(a);
    471476}
    472477
     
    520525     && (src->ringflagb >= dst->ringflagb))
    521526  {
    522     //return nr2mCopy;
    523     return nr2mMapMachineInt;
     527    return nr2mCopy;
    524528  }
    525529  if (rField_is_Ring_Z(src))
Note: See TracChangeset for help on using the changeset viewer.