|
@@ -36,7 +36,7 @@ void treat(Polygon* P){
|
|
|
delete P;
|
|
|
}
|
|
|
int main(){
|
|
|
- cout<<std::setprecision(4);
|
|
|
+ cout<<std::setprecision(20);
|
|
|
disp_info();
|
|
|
compute_coeffs();
|
|
|
size_t nb[max_len/2];
|
|
@@ -52,13 +52,11 @@ int main(){
|
|
|
while(gen.next()){
|
|
|
P=new Polygon;
|
|
|
gen.set(*P);
|
|
|
- // if(P->length==4){
|
|
|
- //cilk_spawn
|
|
|
+ cilk_spawn
|
|
|
treat(P);
|
|
|
- //}
|
|
|
++total;
|
|
|
}
|
|
|
- // cilk_sync;
|
|
|
+ cilk_sync;
|
|
|
Reel d=256;
|
|
|
for(size_t i=1;2*i<max_len;++i){
|
|
|
Reel l=2*i+2;
|
|
@@ -67,7 +65,7 @@ int main(){
|
|
|
Reel n=2*l;
|
|
|
coeff[i]=(n*r)/d;
|
|
|
cout<<" > number : "<<cilk_result.numbers(i)<<endl;
|
|
|
- cout<<" > value : "<<coeff[i]<<endl;
|
|
|
+ cout<<" > value : "<<coeff[i]<<endl;
|
|
|
d*=16;
|
|
|
}
|
|
|
cout<<endl<<">>> Total : "<<total<<endl;
|