diff --git a/src/precompute_ecmult_gen.c b/src/precompute_ecmult_gen.c index 11ab8ba089..ec54d2b154 100644 --- a/src/precompute_ecmult_gen.c +++ b/src/precompute_ecmult_gen.c @@ -53,6 +53,7 @@ int main(int argc, char **argv) { const char outfile[] = "src/precomputed_ecmult_gen.c"; FILE* fp; size_t config; + int did_current_config = 0; (void)argc; (void)argv; @@ -77,6 +78,12 @@ int main(int argc, char **argv) { fprintf(fp, "#if 0\n"); for (config = 0; config < sizeof(CONFIGS) / sizeof(*CONFIGS); ++config) { print_table(fp, CONFIGS[config][0], CONFIGS[config][1]); + if (CONFIGS[config][0] == COMB_BLOCKS && CONFIGS[config][1] == COMB_TEETH) { + did_current_config = 1; + } + } + if (!did_current_config) { + print_table(fp, COMB_BLOCKS, COMB_TEETH); } fprintf(fp, "#else\n"); fprintf(fp, "# error Configuration mismatch, invalid COMB_* parameters. Try deleting precomputed_ecmult_gen.c before the build.\n");