Changeset 73a9ffb in git for libpolys/coeffs/rmodulo2m.cc
- Timestamp:
- May 26, 2011, 10:29:03 AM (12 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- 488808e90a9444d2ce5d16be059643fdd2e8629e
- Parents:
- e676cdf123bc41ae953d7fd58106263f5fd02d0c
- git-author:
- Frank Seelisch <seelisch@mathematik.uni-kl.de>2011-05-26 10:29:03+02:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:36:53+01:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/coeffs/rmodulo2m.cc
re676cd r73a9ffb 24 24 #include <string.h> 25 25 26 /// Our Type! 27 static const n_coeffType ID = n_Z2m; 28 26 29 extern omBin gmp_nrz_bin; /* init in rintegers*/ 27 30 … … 44 47 BOOLEAN nr2mInitChar (coeffs r, void* p) 45 48 { 49 assume( getCoeffType(r) == ID ); 46 50 nr2mInitExp((int)(long)(p), r); 47 51 r->cfKillChar = ndKillChar; /* dummy*/ … … 49 53 50 54 r->ringtype = 1; 51 r->type = n_Z2m; 55 56 /* next cast may yield an overflow as mod2mMask is an unsigned long */ 57 r->ch = (int)r->mod2mMask + 1; 52 58 53 59 r->cfInit = nr2mInit; … … 640 646 else 641 647 { 642 /* code unexpectedly called with m = 1; we go onwith m = 2: */648 /* code unexpectedly called with m = 1; we continue with m = 2: */ 643 649 r->mod2mMask = 3; /* i.e., '11' in binary representation */ 644 650 } 645 r->ch = r->mod2mMask + 1;646 651 } 647 652 … … 650 655 nr2mSetExp(m, r); 651 656 if (m < 2) 652 WarnS("nr2mInitExp unexpectedly called with m = 1 (we go onwith Z/2^2");657 WarnS("nr2mInitExp unexpectedly called with m = 1 (we continue with Z/2^2"); 653 658 } 654 659
Note: See TracChangeset
for help on using the changeset viewer.