Changeset 7a8011 in git for libpolys/coeffs/rmodulon.cc
- Timestamp:
- Apr 21, 2011, 2:12:11 PM (12 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- 9b9ae7fadb61129e98f779cff3f5ea3435f370a7
- Parents:
- 8167afd5e92aaed2ba8a54e3c1566fd86d339aa8
- git-author:
- Hans Schoenemann <hannes@mathematik.uni-kl.de>2011-04-21 14:12:11+02:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:31:25+01:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/coeffs/rmodulon.cc
r8167af r7a8011 25 25 26 26 extern omBin gmp_nrz_bin; 27 28 void nrnCoeffWrite (const coeffs r) 29 { 30 long l = (long)mpz_sizeinbase(r->modBase, 10) + 2; 31 char* s = (char*) omAlloc(l); 32 if (nCoeff_is_Ring_ModN(r)) Print("// Z/%s\n", s); 33 else if (nCoeff_is_Ring_PtoM(r)) Print("// Z/%s^%lu\n", s, r->modExponent); 34 omFreeSize((ADDRESS)s, l); 35 } 27 36 28 37 /* for initializing function pointers */ … … 65 74 r->cfExtGcd = nrnExtGcd; 66 75 r->cfName = ndName; 76 r->cfCoeffWrite = nrnCoeffWrite; 67 77 #ifdef LDEBUG 68 78 r->cfDBTest = nrnDBTest;
Note: See TracChangeset
for help on using the changeset viewer.