Changeset f489bea in git
- Timestamp:
- Dec 14, 2012, 4:46:09 PM (10 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a657104b677b4c461d018cbf3204d72d34ad66a9')
- Children:
- 0486a3f557b13057ce2046dfee2f6fabc0dad2ac
- Parents:
- ea25bc7eab91185a4ce3010da5a5cdc016da2dbf
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/coeffs/rmodulo2m.cc
rea25bc rf489bea 51 51 r->nCoeffIsEqual = nr2mCoeffIsEqual; 52 52 53 r->modBase = (int_number) omAlloc(sizeof(mpz_t)); 54 mpz_init_set_si (r->modBase, 2L); 53 55 r->ringtype = 1; 54 56 … … 649 651 /* we want mod2mMask to be the bit pattern 650 652 '111..1' consisting of m one's: */ 653 r->modExponent= m; 651 654 r->mod2mMask = 1; 652 655 for (int i = 1; i < m; i++) r->mod2mMask = (r->mod2mMask << 1) + 1; … … 654 657 else 655 658 { 659 r->modExponent= 2; 656 660 /* code unexpectedly called with m = 1; we continue with m = 2: */ 657 661 r->mod2mMask = 3; /* i.e., '11' in binary representation */
Note: See TracChangeset
for help on using the changeset viewer.