aboutsummaryrefslogtreecommitdiff
path: root/tools/001_derive_h48h0k2
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2024-09-27 09:11:00 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2024-09-27 09:11:00 +0200
commit388b55b4ea644aa1b6074a70652b8f62e7755280 (patch)
treee0be13d902e31ccecdaf4de0aa052ec9810c2552 /tools/001_derive_h48h0k2
parentcee9856b2cb151f705acf6d27454ec08ef2b9a4e (diff)
downloadnissy-core-388b55b4ea644aa1b6074a70652b8f62e7755280.tar.gz
nissy-core-388b55b4ea644aa1b6074a70652b8f62e7755280.zip
Use constant instead of magic number
Diffstat (limited to 'tools/001_derive_h48h0k2')
-rw-r--r--tools/001_derive_h48h0k2/derive_h48h0k2.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/tools/001_derive_h48h0k2/derive_h48h0k2.c b/tools/001_derive_h48h0k2/derive_h48h0k2.c
new file mode 100644
index 0000000..73fab2e
--- /dev/null
+++ b/tools/001_derive_h48h0k2/derive_h48h0k2.c
@@ -0,0 +1,21 @@
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