aboutsummaryrefslogtreecommitdiff
path: root/test/111_h48map/h48map_tests.c
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/111_h48map/h48map_tests.c
parentfc150adaf3bff133da0e59d842f13b7b21297fc0 (diff)
downloadnissy-core-283effb16646112ee9c6bba57e021e80f322b29f.tar.gz
nissy-core-283effb16646112ee9c6bba57e021e80f322b29f.zip
Avoid repeating typedefs in tests
Diffstat (limited to 'test/111_h48map/h48map_tests.c')
-rw-r--r--test/111_h48map/h48map_tests.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/test/111_h48map/h48map_tests.c b/test/111_h48map/h48map_tests.c
index d70bc3a..7fdfb3d 100644
--- a/test/111_h48map/h48map_tests.c
+++ b/test/111_h48map/h48map_tests.c
@@ -1,20 +1,7 @@
1#include "../test.h" 1#include "../test.h"
2 2
3#define MAP_KEYSHIFT UINT64_C(40)
4#define MAXPOS 1000 3#define MAXPOS 1000
5 4
6typedef struct {
7 uint64_t n;
8 uint64_t capacity;
9 uint64_t randomizer;
10 uint64_t *table;
11} h48map_t;
12
13typedef struct {
14 uint64_t key;
15 uint64_t val;
16} kvpair_t;
17
18void h48map_create(h48map_t *, uint64_t, uint64_t); 5void h48map_create(h48map_t *, uint64_t, uint64_t);
19void h48map_destroy(h48map_t *); 6void h48map_destroy(h48map_t *);
20void h48map_insertmin(h48map_t *, uint64_t, uint64_t); 7void h48map_insertmin(h48map_t *, uint64_t, uint64_t);

Generated with cgit - Back to sebastiano.tronto.net