commit 7f78e56994a824fc8364c91032c1be4ee767ec41 parent 4adeab7cdfb957db832bd6730060fa5eca952d82 Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Wed, 18 Sep 2024 13:58:31 +0200 Renamed tools; fixed solve tool; added gendata_h48h1k2 tool Diffstat:
6 files changed, 22 insertions(+), 1 deletion(-)
diff --git a/tools/002_gendata_h48h0k2/gendata_h48h0k2.c b/tools/0002_gendata_h48h0k2/gendata_h48h0k2.c diff --git a/tools/001_gendata_h48h0k4/gendata_h48h0k4.c b/tools/0004_gendata_h48h0k4/gendata_h48h0k4.c diff --git a/tools/0012_gendata_h48h1k2/gendata_h48h1k2.c b/tools/0012_gendata_h48h1k2/gendata_h48h1k2.c @@ -0,0 +1,21 @@ +#include "../tool.h" + +uint64_t expected[21] = { + /* Base value is 8 */ + [0] = 0, /* Unknown */ + [1] = 0, /* Unknown */ + [2] = 0, /* Unknown */ + [3] = 0, /* Unknown */ +}; + +void run(void) { + gendata_run("h48", "1;2;20", "tables/h48h1k2", expected); +} + +int main(void) { + nissy_setlogger(log_stderr); + + timerun(run, "benchmark gendata_h48 h = 1, k = 2"); + + return 0; +} diff --git a/tools/010_stats_tables_h48/stats_tables_h48.c b/tools/100_stats_tables_h48/stats_tables_h48.c diff --git a/tools/020_solve_small/solve_small.c b/tools/200_solve_small/solve_small.c diff --git a/tools/tool.h b/tools/tool.h @@ -129,7 +129,7 @@ getdata( case -2: goto getdata_error; default: - writetable(filename, size, *buf); + writetable(*buf, size, filename); break; } } else {