aboutsummaryrefslogtreecommitdiff
path: root/test/102_cocsep_selfsim/cocsep_selfsim_tests.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/102_cocsep_selfsim/cocsep_selfsim_tests.c')
-rw-r--r--test/102_cocsep_selfsim/cocsep_selfsim_tests.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/102_cocsep_selfsim/cocsep_selfsim_tests.c b/test/102_cocsep_selfsim/cocsep_selfsim_tests.c
index 9966321..1a1c6f2 100644
--- a/test/102_cocsep_selfsim/cocsep_selfsim_tests.c
+++ b/test/102_cocsep_selfsim/cocsep_selfsim_tests.c
@@ -16,7 +16,8 @@ void run(void) {
16 uint32_t *cocsepdata, data; 16 uint32_t *cocsepdata, data;
17 int64_t coord, coclass; 17 int64_t coord, coclass;
18 uint64_t selfsim[COCSEP_CLASSES], sim, t; 18 uint64_t selfsim[COCSEP_CLASSES], sim, t;
19 cube_t cube, rep[COCSEP_CLASSES]; 19 oriented_cube_t cube;
20 cube_t rep[COCSEP_CLASSES];
20 21
21 gendata_cocsep(buf, selfsim, rep); 22 gendata_cocsep(buf, selfsim, rep);
22 cocsepdata = (uint32_t *)(buf + INFOSIZE); 23 cocsepdata = (uint32_t *)(buf + INFOSIZE);
@@ -25,7 +26,7 @@ void run(void) {
25 26
26 while (fgets(str, STRLENMAX, stdin) != NULL) { 27 while (fgets(str, STRLENMAX, stdin) != NULL) {
27 cube = readcube(str); 28 cube = readcube(str);
28 coord = coord_cocsep(cube); 29 coord = coord_cocsep(cube.cube);
29 data = cocsepdata[coord]; 30 data = cocsepdata[coord];
30 coclass = (data & (0xFFFU << 16)) >> 16; 31 coclass = (data & (0xFFFU << 16)) >> 16;
31 sim = selfsim[coclass]; 32 sim = selfsim[coclass];

Generated with cgit - Back to sebastiano.tronto.net