Changeset cc16f0 in git
 Timestamp:
 Jul 22, 2014, 11:14:12 AM (9 years ago)
 Branches:
 (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
 Children:
 1936fb556581f3c446e8ec8cb14b9081d4aa5d2739ed94e4ba176b9cdda63c31fb26f14e2627ad3c
 Parents:
 0c42a847c2651462997b32adb623b79f38d133f5
 Location:
 libpolys/coeffs
 Files:

 3 edited
Legend:
 Unmodified
 Added
 Removed

libpolys/coeffs/ffields.cc
r0c42a8 rcc16f0 502 502 if (i==0) 503 503 { 504 //*result=nfInit(1);505 504 *result = (number)0L; 506 505 } … … 511 510 else 512 511 { 513 nfPower(a,i1,result, r); 514 *result = nfMult(a,*result, r); 512 long rl; 513 if ((long)a == (long)r>m_nfCharQ) rl=(long)r>m_nfCharQ; 514 else rl=((long)a*(long)i) % (long)r>m_nfCharQ1; 515 *result = (number)rl; 515 516 } 516 517 #ifdef LDEBUG … … 687 688 while ( i < r>m_nfCharQ ) 688 689 { 689 fgets( buf, sizeof(buf), fp);690 (void)fgets( buf, sizeof(buf), fp); 690 691 //( strlen( buffer ) == (size_t)digs * 30, "illegal table" ); 691 692 bufptr = buf; 
libpolys/coeffs/modulop.cc
r0c42a8 rcc16f0 46 46 number nvDiv (number a, number b, const coeffs r); 47 47 number nvInvers (number c, const coeffs r); 48 void nvPower (number a, int i, number * result, const coeffs r);48 //void nvPower (number a, int i, number * result, const coeffs r); 49 49 #endif 50 50 … … 311 311 } 312 312 313 #if 0 313 314 void npPower (number a, int i, number * result, const coeffs r) 314 315 { … … 330 331 } 331 332 } 333 #endif 332 334 333 335 static const char* npEati(const char *s, int *i, const coeffs r) … … 495 497 r>cfIsMOne = npIsMOne; 496 498 r>cfGreaterZero = npGreaterZero; 497 r>cfPower = npPower;499 //r>cfPower = npPower; 498 500 r>cfGetDenom = ndGetDenom; 499 501 r>cfGetNumerator = ndGetNumerator; … … 511 513 r>cfExactDiv= nvDiv; 512 514 r>cfInvers= nvInvers; 513 r>cfPower= nvPower;515 //r>cfPower= nvPower; 514 516 } 515 517 #endif … … 849 851 return nvInversM(c,r); 850 852 } 853 #if 0 851 854 void nvPower (number a, int i, number * result, const coeffs r) 852 855 { … … 867 870 } 868 871 #endif 872 #endif 869 873 870 874 void npCoeffWrite (const coeffs r, BOOLEAN /*details*/) 
libpolys/coeffs/shortfl.cc
r0c42a8 rcc16f0 269 269 } 270 270 271 #if 0 271 272 void nrPower (number a, int i, number * result, const coeffs r) 272 273 { … … 286 287 *result = nf(nf(a).F() * nf(*result).F()).N(); 287 288 } 289 #endif 288 290 289 291 namespace { … … 729 731 n>cfWriteLong = nrWrite; 730 732 n>cfRead = nrRead; 731 n>cfPower = nrPower;733 //n>cfPower = nrPower; 732 734 n>cfSetMap = nrSetMap; 733 735 n>cfCoeffWrite = nrCoeffWrite;
Note: See TracChangeset
for help on using the changeset viewer.