Changeset 9c115e1 in git for factory/cf_gcd_charp.cc
- Timestamp:
- May 7, 2010, 7:11:37 PM (14 years ago)
- Branches:
- (u'spielwiese', '2a584933abf2a2d3082034c7586d38bb6de1a30a')
- Children:
- 0d020e3d4fdcdeca020189f7662a7b5c8692382b
- Parents:
- 88f36448cb6c1a7a2ad8cb4d70d0b24ae8faee61
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/cf_gcd_charp.cc
r88f3644 r9c115e1 26 26 #include <cf_algorithm.h> 27 27 #include <cf_map.h> 28 #include <cf_util.h> 28 29 29 30 static CanonicalForm contentWRT(const CanonicalForm & F, const int lev); … … 232 233 CanonicalForm result = 0; 233 234 int i, j; 234 int fieldSize = (int) ::pow(getCharacteristic(), getGFDegree());235 int fieldSize = ipower(getCharacteristic(), getGFDegree()); 235 236 CanonicalForm g; 236 237 for(i = 0; i <= degree(A); i++) … … 353 354 { 354 355 k=getGFDegree(); 355 fieldSize = (int) ::pow(p, k);356 fieldSize = ipower(p, k); 356 357 } 357 358 … … 361 362 // cout << "k: " << k << endl; 362 363 // cout << "fieldSize: " << fieldSize << endl; 363 // cout << "pow: " << pow(p, k) << endl;364 // cout << "pow: " << ipower(p, k) << endl; 364 365 //} 365 366 … … 510 511 } 511 512 int expon = 2; // expon <= will not extend the field 512 while( ::pow(fieldSize, expon) < degMax)513 while(ipower(fieldSize, expon) < degMax) 513 514 { 514 515 expon++; … … 517 518 if(k > 1) 518 519 { 519 if( ::pow(p,k * expon) < (1<<16))520 if(ipower(p,k * expon) < (1<<16)) 520 521 { 521 522 setCharacteristic(p, k * expon, 'b'); … … 541 542 else 542 543 { 543 if( ::pow(p,k * expon) < (1<<16))544 if(ipower(p,k * expon) < (1<<16)) 544 545 { 545 546 setCharacteristic(p, k * expon, 'a'); … … 627 628 int k = getGFDegree(); 628 629 int p = getCharacteristic(); 629 int fieldSize = pow(p, k);630 int fieldSize = ipower(p, k); 630 631 cout << "p: " << p << endl; 631 632 cout << "GFDegree: " << k << endl;
Note: See TracChangeset
for help on using the changeset viewer.