Changeset aa07a0 in git
- Timestamp:
- Feb 14, 2005, 1:31:34 PM (18 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '00e2e9c41af3fde1273eb3633f4c0c7c3db2579d')
- Children:
- 9cb26468351fcd4a821d55df6f9e83599d693eb9
- Parents:
- c70e58e289e0fb70ec18f904a7b46f4640a32101
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/fast_mult.cc
rc70e58 raa07a0 1 1 #include "fast_mult.h" 2 2 #include "kbuckets.h" 3 typedef poly fastmultrec(poly f, poly g); 3 4 static const int pass_option=1; 4 5 static void degsplit(poly p,int n,poly &p1,poly&p2, int vn){ … … 41 42 } 42 43 43 poly do_unifastmult(poly f,int df,poly g,int dg, int vn ){44 poly do_unifastmult(poly f,int df,poly g,int dg, int vn, fastmultrec rec){ 44 45 int n=1; 45 46 if ((f==NULL)||(g==NULL)) return NULL; … … 77 78 78 79 //p00, p11 79 poly p00= unifastmult(f0,g0);80 poly p11= unifastmult(f1,g1);80 poly p00=rec(f0,g0);//unifastmult(f0,g0); 81 poly p11=rec(f1,g1); 81 82 82 83 //construct erg, factor … … 92 93 93 94 94 // if((f1!=NULL) &&(f0!=NULL) &&(g0!=NULL) && (g1!=NULL)){ 95 if(true){ 96 //eat up f0,f1,g0,g1 97 poly pbig=unifastmult(pAdd(f0,f1),pAdd(g0,g1)); 98 95 if((f1!=NULL) &&(f0!=NULL) &&(g0!=NULL) && (g1!=NULL)){ 96 //if(true){ 97 //eat up f0,f1,g0,g1 98 poly s1=pAdd(f0,f1); 99 poly s2=pAdd(g0,g1); 100 poly pbig=rec(s1,s2); 101 pDelete(&s1); 102 pDelete(&s2); 99 103 100 104 … … 232 236 // do_unifastmult_buckets(f,g); 233 237 //else 234 return do_unifastmult(f,df,g,dg,vn );235 236 } 237 238 return do_unifastmult(f,df,g,dg,vn,unifastmult); 239 240 } 241
Note: See TracChangeset
for help on using the changeset viewer.