aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2024-09-18 13:58:31 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2024-09-18 13:58:31 +0200
commit7f78e56994a824fc8364c91032c1be4ee767ec41 (patch)
treefeb20ee002a415b80a827f24188ef4ed239a8bf5 /tools
parent4adeab7cdfb957db832bd6730060fa5eca952d82 (diff)
downloadnissy-core-7f78e56994a824fc8364c91032c1be4ee767ec41.tar.gz
nissy-core-7f78e56994a824fc8364c91032c1be4ee767ec41.zip
Renamed tools; fixed solve tool; added gendata_h48h1k2 tool
Diffstat (limited to '')
-rw-r--r--tools/0002_gendata_h48h0k2/gendata_h48h0k2.c (renamed from tools/002_gendata_h48h0k2/gendata_h48h0k2.c)0
-rw-r--r--tools/0004_gendata_h48h0k4/gendata_h48h0k4.c (renamed from tools/001_gendata_h48h0k4/gendata_h48h0k4.c)0
-rw-r--r--tools/0012_gendata_h48h1k2/gendata_h48h1k2.c21
-rw-r--r--tools/100_stats_tables_h48/stats_tables_h48.c (renamed from tools/010_stats_tables_h48/stats_tables_h48.c)0
-rw-r--r--tools/200_solve_small/solve_small.c (renamed from tools/020_solve_small/solve_small.c)0
-rw-r--r--tools/tool.h2
6 files changed, 22 insertions, 1 deletions
diff --git a/tools/002_gendata_h48h0k2/gendata_h48h0k2.c b/tools/0002_gendata_h48h0k2/gendata_h48h0k2.c
index 14f99ee..14f99ee 100644
--- 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
index ff34bb9..ff34bb9 100644
--- 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
new file mode 100644
index 0000000..0ebdcaa
--- /dev/null
+++ b/tools/0012_gendata_h48h1k2/gendata_h48h1k2.c
@@ -0,0 +1,21 @@
1#include "../tool.h"
2
3uint64_t expected[21] = {
4 /* Base value is 8 */
5 [0] = 0, /* Unknown */
6 [1] = 0, /* Unknown */
7 [2] = 0, /* Unknown */
8 [3] = 0, /* Unknown */
9};
10
11void run(void) {
12 gendata_run("h48", "1;2;20", "tables/h48h1k2", expected);
13}
14
15int main(void) {
16 nissy_setlogger(log_stderr);
17
18 timerun(run, "benchmark gendata_h48 h = 1, k = 2");
19
20 return 0;
21}
diff --git a/tools/010_stats_tables_h48/stats_tables_h48.c b/tools/100_stats_tables_h48/stats_tables_h48.c
index adac8fa..adac8fa 100644
--- 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
index 4d07728..4d07728 100644
--- 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
index eaee704..5ca1f04 100644
--- a/tools/tool.h
+++ b/tools/tool.h
@@ -129,7 +129,7 @@ getdata(
129 case -2: 129 case -2:
130 goto getdata_error; 130 goto getdata_error;
131 default: 131 default:
132 writetable(filename, size, *buf); 132 writetable(*buf, size, filename);
133 break; 133 break;
134 } 134 }
135 } else { 135 } else {

Generated with cgit - Back to sebastiano.tronto.net