aboutsummaryrefslogtreecommitdiff
path: root/tools/001_derive_h48h0k2
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2024-09-27 16:37:55 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2024-09-27 16:37:55 +0200
commit41be2d294e5b6f55d485d635065096f274bc89c1 (patch)
treed1906840307eedc503e66f6aebf746717f57d1ed /tools/001_derive_h48h0k2
parent15fe089b3e625cb6d3a19dee661f4fc9c6224699 (diff)
downloadnissy-core-41be2d294e5b6f55d485d635065096f274bc89c1.tar.gz
nissy-core-41be2d294e5b6f55d485d635065096f274bc89c1.zip
Made table derivation tool more flexible
So apparently my RAM is broken. That took me a while to figure out. While I get a replacement, I have to restrict myself to a weaker test for the intermediate tables: instead of deriving them from the huge table and checking that they are the same, I have to derive a small h0k2 table from the intermediate ones and check that it is correct. This is not a 100% proof of correctness, but it is good enough (and much faster).
Diffstat (limited to 'tools/001_derive_h48h0k2')
-rw-r--r--tools/001_derive_h48h0k2/derive_h48h0k2.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/tools/001_derive_h48h0k2/derive_h48h0k2.c b/tools/001_derive_h48h0k2/derive_h48h0k2.c
deleted file mode 100644
index 73fab2e..0000000
--- a/tools/001_derive_h48h0k2/derive_h48h0k2.c
+++ /dev/null
@@ -1,21 +0,0 @@
1#include "../tool.h"
2
3uint64_t expected[21] = {
4 /* Base value is 8 */
5 [0] = 5473562,
6 [1] = 34776317,
7 [2] = 68566704,
8 [3] = 8750867,
9};
10
11void run(void) {
12 derivedata_run(0, "tables/h48h0k2_derived", expected);
13}
14
15int main(void) {
16 nissy_setlogger(log_stderr);
17
18 timerun(run, "benchmark derivedata_h48 h = 0, k = 2");
19
20 return 0;
21}

Generated with cgit - Back to sebastiano.tronto.net