aboutsummaryrefslogtreecommitdiff
path: root/test/101_cocsep_selfsim
diff options
context:
space:
mode:
Diffstat (limited to 'test/101_cocsep_selfsim')
-rw-r--r--test/101_cocsep_selfsim/cocsep_selfsim_tests.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/101_cocsep_selfsim/cocsep_selfsim_tests.c b/test/101_cocsep_selfsim/cocsep_selfsim_tests.c
index 02b5377..195f9ba 100644
--- a/test/101_cocsep_selfsim/cocsep_selfsim_tests.c
+++ b/test/101_cocsep_selfsim/cocsep_selfsim_tests.c
@@ -9,23 +9,23 @@
9 9
10#define COCSEP_CLASSES 3393 10#define COCSEP_CLASSES 3393
11 11
12size_t gendata_cocsep(void *, uint64_t *, cube_fast_t *); 12size_t gendata_cocsep(void *, uint64_t *, cube_t *);
13int64_t coord_fast_cocsep(cube_fast_t); 13int64_t coord_cocsep(cube_t);
14 14
15int main(void) { 15int main(void) {
16 char str[STRLENMAX]; 16 char str[STRLENMAX];
17 uint32_t buf[300000], data; 17 uint32_t buf[300000], data;
18 int64_t coord, coclass; 18 int64_t coord, coclass;
19 uint64_t selfsim[COCSEP_CLASSES], sim, t; 19 uint64_t selfsim[COCSEP_CLASSES], sim, t;
20 cube_fast_t fast, rep[COCSEP_CLASSES]; 20 cube_t cube, rep[COCSEP_CLASSES];
21 21
22 gendata_cocsep(buf, selfsim, rep); 22 gendata_cocsep(buf, selfsim, rep);
23 23
24 /* All cases in the same test so we do not generate data many times */ 24 /* All cases in the same test so we do not generate data many times */
25 25
26 while (fgets(str, STRLENMAX, stdin) != NULL) { 26 while (fgets(str, STRLENMAX, stdin) != NULL) {
27 fast = cubetofast(readcube("H48", str)); 27 cube = readcube("H48", str);
28 coord = coord_fast_cocsep(fast); 28 coord = coord_cocsep(cube);
29 data = buf[coord]; 29 data = buf[coord];
30 coclass = (data & (0xFFFU << 16)) >> 16; 30 coclass = (data & (0xFFFU << 16)) >> 16;
31 sim = selfsim[coclass]; 31 sim = selfsim[coclass];

Generated with cgit - Back to sebastiano.tronto.net