Precompute max_scale

This commit is contained in:
Ramana Kumar 2022-10-20 08:36:59 +01:00
parent a1e5304cbc
commit bd183d2cd6
No known key found for this signature in database
GPG Key ID: ED471C788B900433
1 changed files with 3 additions and 3 deletions

View File

@ -799,9 +799,9 @@ C_KZG_RET load_trusted_setup(KZGSettings *out, FILE *in) {
blst_p2_from_affine(&out->g2_values[i], &g2_affine);
}
// TODO: precompute
unsigned int max_scale = 0;
while (((uint64_t)1 << max_scale) < FIELD_ELEMENTS_PER_BLOB) max_scale++;
unsigned int max_scale = 12;
// no-op
// while (((uint64_t)1 << max_scale) < FIELD_ELEMENTS_PER_BLOB) max_scale++;
out->fs = (FFTSettings*)malloc(sizeof(FFTSettings));