aboutsummaryrefslogtreecommitdiff
path: root/test/112_gen_h48short
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2024-09-10 19:43:05 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2024-09-10 19:43:05 +0200
commit70d3a3de3a2fdef7e47b2bd510261d69390a3a9c (patch)
tree2c545953d0b61b37c4f281cd47981e9350b5c09b /test/112_gen_h48short
parent1f4900a3cc6ca74f94b73e224d14a09d52c4549c (diff)
downloadnissy-core-70d3a3de3a2fdef7e47b2bd510261d69390a3a9c.tar.gz
nissy-core-70d3a3de3a2fdef7e47b2bd510261d69390a3a9c.zip
New tableinfo for gendata_h48, still work to do
Diffstat (limited to 'test/112_gen_h48short')
-rw-r--r--test/112_gen_h48short/gen_h48short_tests.c (renamed from test/112_gen_h48short/gen_h48short.c)9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/112_gen_h48short/gen_h48short.c b/test/112_gen_h48short/gen_h48short_tests.c
index 335821a..a706dff 100644
--- a/test/112_gen_h48short/gen_h48short.c
+++ b/test/112_gen_h48short/gen_h48short_tests.c
@@ -1,7 +1,8 @@
1#include "../test.h" 1#include "../test.h"
2 2
3#define COCSEP_CLASSES 3393 3#define COCSEP_CLASSES 3393
4#define MAXPOS 200 4#define INFOSIZE 512
5#define MAXPOS 200
5 6
6typedef struct { 7typedef struct {
7 uint64_t n; 8 uint64_t n;
@@ -51,7 +52,7 @@ uint64_t readl(void) {
51} 52}
52 53
53void run(void) { 54void run(void) {
54 uint32_t cocsepdata[300000]; 55 char buf[2000000];
55 h48map_t map; 56 h48map_t map;
56 uint64_t i, j, capacity, randomizer, selfsim[COCSEP_CLASSES]; 57 uint64_t i, j, capacity, randomizer, selfsim[COCSEP_CLASSES];
57 kvpair_t kv, b[MAXPOS]; 58 kvpair_t kv, b[MAXPOS];
@@ -61,13 +62,13 @@ void run(void) {
61 capacity = readl(); 62 capacity = readl();
62 randomizer = readl(); 63 randomizer = readl();
63 arg.maxdepth = readl(); 64 arg.maxdepth = readl();
64 arg.cocsepdata = cocsepdata;
65 arg.crep = crep; 65 arg.crep = crep;
66 arg.selfsim = selfsim; 66 arg.selfsim = selfsim;
67 arg.map = &map; 67 arg.map = &map;
68 68
69 h48map_create(&map, capacity, randomizer); 69 h48map_create(&map, capacity, randomizer);
70 gendata_cocsep(cocsepdata, selfsim, crep); 70 gendata_cocsep(buf, selfsim, crep);
71 arg.cocsepdata = (uint32_t *)((char *)buf + INFOSIZE);
71 gen_h48short(&arg); 72 gen_h48short(&arg);
72 73
73 i = 0; 74 i = 0;

Generated with cgit - Back to sebastiano.tronto.net