Changeset 1b078e in git
- Timestamp:
- Aug 27, 2010, 4:48:16 PM (13 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '0604212ebb110535022efecad887940825b97c3f')
- Children:
- 7f7b2ae08d4ef302906c949966fc7a88fe8d895f
- Parents:
- a5cd69539ad1429c09a8881386628bbf8d1fc2fc
- git-author:
- Martin Lee <mlee@fifi.mathematik.uni-kl.de>2010-08-27 16:48:16+02:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 11:55:28+01:00
- Location:
- coeffs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
coeffs/ffields.cc
ra5cd69 r1b078e 21 21 //unsigned short *nfPlus1Table=NULL; /* the table i=log(z^i) -> log(z^i+1) */ 22 22 23 const double sixteenlog2= 11.09035489; 23 24 /* the q's from the table 'fftable' */ 24 25 unsigned short fftable[]={ … … 612 613 /*this field is already set*/ return; 613 614 int i=0; 614 while ((fftable[i]!=c) && (fftable[i]!=0)) i++; 615 616 while ((fftable[i]!=c) && (fftable[i]!=0)) 617 i++; 618 615 619 if (fftable[i]==0) 620 { 621 Werror("illegal GF-table size: %d", c); 616 622 return; 623 } 624 617 625 if (r->m_nfCharQ > 1) 618 626 { … … 839 847 r->has_simple_Alloc=TRUE; 840 848 r->has_simple_Inverse=TRUE; 841 const int c = pow (p->GFChar, p->GFDegree); 849 850 assume (p->GFChar > 0); 851 assume (p->GFDegree > 0); 852 853 if(p->GFChar > (2<<15)) 854 { 855 Werror("illegal characteristic"); // no exceptions :((( 856 return; 857 } 858 859 const double check= log ((double) (p->GFChar)); 860 861 if( (p->GFDegree * check) > sixteenlog2 ) 862 { 863 Werror("illegal size"); 864 return; 865 } 866 867 int c = pow (p->GFChar, p->GFDegree); 868 842 869 nfReadTable(c, r); 870 871 assume (r -> m_nfCharQ > 0); 872 843 873 r->ch = r->m_nfCharP; 844 874 -
coeffs/test.cc
ra5cd69 r1b078e 282 282 283 283 param.GFChar= 5; 284 param.GFDegree= 2;284 param.GFDegree= 12; 285 285 286 286 param.GFPar_name= (const char*)"q";
Note: See TracChangeset
for help on using the changeset viewer.