tabs to spaces

This commit is contained in:
Radim Kolar 2024-07-08 12:14:15 +02:00
parent d6c3aa5e03
commit 8428f5fd6c

View File

@ -75,9 +75,9 @@ static void print_bitcount(void)
ratio=(float)bitcount[i]/rounds; ratio=(float)bitcount[i]/rounds;
if(fabs(ratio-0.5f)>worst) if(fabs(ratio-0.5f)>worst)
worst=fabs(ratio-0.5f); worst=fabs(ratio-0.5f);
printf("%.2f ",ratio); printf("%.2f ", ratio);
} }
printf(" Worst: %.3f\n",worst); printf(" Worst: %.3f\n", worst);
if(worst>MAX_WORST_ALLOWED) result++; if(worst>MAX_WORST_ALLOWED) result++;
} }
@ -113,5 +113,6 @@ int main(int argc,const char *argv[])
printf("Generator: Numerical Recipes\n"); printf("Generator: Numerical Recipes\n");
run_randomtest(nr); run_randomtest(nr);
print_bitcount(); print_bitcount();
return result; return result;
} }