blob: 3a6ac07c3282b900bd113f6ab483d8b10cdb7338 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
/*
Pruning table values (from nissy):
0: 1
1: 2
2: 25
3: 202
4: 620
5: 900
6: 285
7: 13
*/
#include "../test.h"
#define ISIZE 512
#define FULLSIZE (ISIZE + 1024)
char buf[FULLSIZE];
size_t gendata_coordinate_name(const char *, void *);
bool readtableinfo(uint64_t, const char *, tableinfo_t *);
void run(void) {
uint32_t i;
size_t result;
tableinfo_t info;
result = gendata_coordinate_name("EO", buf);
if (readtableinfo(FULLSIZE, buf, &info) != NISSY_OK) {
printf("Error reading info from table\n");
return;
}
printf("%zu\n", result);
for (i = 0; i <= 10; i++)
printf("%" PRIu32 ": %" PRIu64 "\n", i, info.distribution[i]);
}
|