aboutsummaryrefslogtreecommitdiff
path: root/test/112_gendata_h48short
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2024-10-04 14:29:00 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2024-10-04 14:29:00 +0200
commit283effb16646112ee9c6bba57e021e80f322b29f (patch)
tree3c0ad588e550f86df21687e82a17e9f1f60443be /test/112_gendata_h48short
parentfc150adaf3bff133da0e59d842f13b7b21297fc0 (diff)
downloadnissy-core-283effb16646112ee9c6bba57e021e80f322b29f.tar.gz
nissy-core-283effb16646112ee9c6bba57e021e80f322b29f.zip
Avoid repeating typedefs in tests
Diffstat (limited to 'test/112_gendata_h48short')
-rw-r--r--test/112_gendata_h48short/gendata_h48short_tests.c29
1 files changed, 1 insertions, 28 deletions
diff --git a/test/112_gendata_h48short/gendata_h48short_tests.c b/test/112_gendata_h48short/gendata_h48short_tests.c
index fb432d3..b6ff00e 100644
--- a/test/112_gendata_h48short/gendata_h48short_tests.c
+++ b/test/112_gendata_h48short/gendata_h48short_tests.c
@@ -1,33 +1,6 @@
1#include "../test.h" 1#include "../test.h"
2 2
3#define COCSEP_CLASSES 3393 3#define MAXPOS 200
4#define INFOSIZE 512
5#define MAXPOS 200
6
7typedef struct {
8 uint64_t n;
9 uint64_t capacity;
10 uint64_t randomizer;
11 uint64_t *table;
12 uint32_t *info;
13 uint32_t *cocsepdata;
14 uint32_t *h48data;
15 uint64_t selfsim[COCSEP_CLASSES];
16 cube_t crep[COCSEP_CLASSES];
17} h48map_t;
18
19typedef struct {
20 uint64_t key;
21 uint64_t val;
22} kvpair_t;
23
24typedef struct {
25 uint8_t maxdepth;
26 const uint32_t *cocsepdata;
27 const cube_t *crep;
28 const uint64_t *selfsim;
29 h48map_t *map;
30} gendata_h48short_arg_t;
31 4
32void h48map_create(h48map_t *, uint64_t, uint64_t); 5void h48map_create(h48map_t *, uint64_t, uint64_t);
33void h48map_destroy(h48map_t *); 6void h48map_destroy(h48map_t *);

Generated with cgit - Back to sebastiano.tronto.net