From 70d3a3de3a2fdef7e47b2bd510261d69390a3a9c Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Tue, 10 Sep 2024 19:43:05 +0200 Subject: New tableinfo for gendata_h48, still work to do --- test/104_cocsep_ttrep/cocsep_ttrep_tests.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'test/104_cocsep_ttrep') diff --git a/test/104_cocsep_ttrep/cocsep_ttrep_tests.c b/test/104_cocsep_ttrep/cocsep_ttrep_tests.c index f692ca8..efe5a26 100644 --- a/test/104_cocsep_ttrep/cocsep_ttrep_tests.c +++ b/test/104_cocsep_ttrep/cocsep_ttrep_tests.c @@ -1,9 +1,11 @@ #include "../test.h" -#define COCSEP_CLASSES 3393 #define TTREP_MASK (UINT32_C(0xFF) << UINT32_C(8)) #define TTREP(x) (((x) & TTREP_MASK) >> UINT32_C(8)) +#define COCSEP_CLASSES 3393 +#define INFOSIZE 512 + uint8_t inverse_trans(uint8_t); cube_t transform_corners(cube_t, uint8_t); int64_t coord_cocsep(cube_t); @@ -11,19 +13,21 @@ size_t gendata_cocsep(void *, uint64_t *, cube_t *); void run(void) { uint8_t t; - uint32_t buf[300000], tt; + char buf[2000000]; + uint32_t *cocsepdata, tt; uint64_t selfsim[COCSEP_CLASSES]; int64_t i, j, k, l; cube_t rep[COCSEP_CLASSES], c, d; gendata_cocsep(buf, selfsim, rep); + cocsepdata = (uint32_t *)((char *)buf + INFOSIZE); for (i = 0; i < COCSEP_CLASSES; i++) { c = rep[i]; for (t = 0; t < 48; t++) { d = transform_corners(c, t); j = coord_cocsep(d); - tt = TTREP(buf[j]); + tt = TTREP(cocsepdata[j]); d = transform_corners(d, tt); k = coord_cocsep(d); l = coord_cocsep(c); -- cgit v1.3