Changeset 2336d0 in git
- Timestamp:
- May 5, 2010, 3:32:25 PM (13 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- afdd5549fb47d9704dd9bc0d475fe4fb12126213
- Parents:
- 8c484ed8f3ff767d800560901766fe5a4d8eccda
- git-author:
- Hans Schoenemann <hannes@mathematik.uni-kl.de>2010-05-05 15:32:25+02:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 11:51:39+01:00
- Location:
- coeffs
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
coeffs/coeffs.h
r8c484e r2336d0 131 131 void (*cfKillChar)(coeffs r); // undo all initialisations 132 132 // or NULL 133 void (*cfSetChar)(co effs r); // initialisations after each ring change133 void (*cfSetChar)(const coeffs r); // initialisations after each ring change 134 134 // or NULL 135 135 // general stuff … … 183 183 /// Inline: a := b 184 184 void (*nInpMult)(number &a, number b, const coeffs r); 185 number (*nInit_bigint)(number i, const coeffs r);185 number (*nInit_bigint)(number i, const coeffs src, const coeffs dummy); 186 186 187 187 #ifdef LDEBUG -
coeffs/modulop.cc
r8c484e r2336d0 289 289 */ 290 290 291 void npSetChar(int c, coeffs r) 292 { 293 294 // if (c==npPrimeM) return; 295 if ((c>1) || (c<(-1))) 296 { 297 if (c>1) r->npPrimeM = c; 298 else r->npPrimeM = -c; 299 r->npPminus1M = r->npPrimeM - 1; 300 #ifdef NV_OPS 301 if (r->npPrimeM >NV_MAX_PRIME) return; 302 #endif 291 void npSetChar(const coeffs r) 292 { 303 293 #if !defined(HAVE_DIV_MOD) || !defined(HAVE_MULT_MOD) 304 294 npGen = npExpTable[1]; 305 295 #endif 306 }307 296 } 308 297 … … 373 362 } 374 363 r->cfKillChar=npKillChar; 364 r->cfSetChar=npSetChar; 365 npSetChar(r); 375 366 r->cfSetChar=NULL; 376 367 r->cfInit = npInit; 368 r->nInit_bigint=npMap0; 377 369 r->n_Int = npInt; 378 370 r->nAdd = npAdd; -
coeffs/modulop.h
r8c484e r2336d0 23 23 24 24 extern int npGen; 25 extern long npMapPrime;26 25 27 26 void npInitChar(coeffs r, int ch); … … 50 49 #define npTest(A,r) (0) 51 50 #endif 52 void npSetChar(int c, coeffs r);53 void npInitChar(int c, coeffs r);54 51 55 52 //int npGetChar(); 56 53 57 54 nMapFunc npSetMap(const coeffs src, const coeffs dst); 58 number npMapP(number from, const coeffs r);59 number npMap0(number from, const coeffs r);55 number npMapP(number from, const coeffs src, const coeffs r); 56 number npMap0(number from, const coeffs src, const coeffs r); 60 57 /*-------specials for spolys, do NOT use otherwise--------------------------*/ 61 58 /* for npMultM, npSubM, npNegM, npEqualM : */ -
coeffs/numbers.cc
r8c484e r2336d0 115 115 r->nInit_bigint=nl_Copy; 116 116 } 117 #if 0 /* vertagt*/ 117 118 /*--------------------- Q_a/ Zp_a -----------------*/ 118 119 else if (nField_is_Extension(r)) … … 131 132 } 132 133 } 134 #endif 133 135 #ifdef HAVE_RINGS 134 136 /*----------------------ring Z / 2^m----------------*/ … … 161 163 { 162 164 npSetChar(c, r); 163 r->nInit_bigint=npMap0;164 165 } 165 166 /* -------------- GF(p^m) -----------------------*/
Note: See TracChangeset
for help on using the changeset viewer.