diff options
Diffstat (limited to 'test/103_cocsep_ttrep')
| -rw-r--r-- | test/103_cocsep_ttrep/00_all.in | 0 | ||||
| -rw-r--r-- | test/103_cocsep_ttrep/00_all.out | 0 | ||||
| -rw-r--r-- | test/103_cocsep_ttrep/cocsep_ttrep_tests.c | 36 |
3 files changed, 0 insertions, 36 deletions
diff --git a/test/103_cocsep_ttrep/00_all.in b/test/103_cocsep_ttrep/00_all.in deleted file mode 100644 index e69de29..0000000 --- a/test/103_cocsep_ttrep/00_all.in +++ /dev/null | |||
diff --git a/test/103_cocsep_ttrep/00_all.out b/test/103_cocsep_ttrep/00_all.out deleted file mode 100644 index e69de29..0000000 --- a/test/103_cocsep_ttrep/00_all.out +++ /dev/null | |||
diff --git a/test/103_cocsep_ttrep/cocsep_ttrep_tests.c b/test/103_cocsep_ttrep/cocsep_ttrep_tests.c deleted file mode 100644 index f0da151..0000000 --- a/test/103_cocsep_ttrep/cocsep_ttrep_tests.c +++ /dev/null | |||
| @@ -1,36 +0,0 @@ | |||
| 1 | #include "../test.h" | ||
| 2 | |||
| 3 | #define COCSEP_CLASSES 3393 | ||
| 4 | #define TTREP_MASK (UINT32_C(0xFF) << UINT32_C(8)) | ||
| 5 | #define TTREP(x) (((x) & TTREP_MASK) >> UINT32_C(8)) | ||
| 6 | |||
| 7 | uint8_t inverse_trans(uint8_t); | ||
| 8 | cube_t transform_corners(cube_t, uint8_t); | ||
| 9 | int64_t coord_cocsep(cube_t); | ||
| 10 | size_t gendata_cocsep(void *, uint64_t *, cube_t *); | ||
| 11 | |||
| 12 | void run(void) { | ||
| 13 | uint8_t t; | ||
| 14 | uint32_t buf[300000], tt; | ||
| 15 | uint64_t selfsim[COCSEP_CLASSES]; | ||
| 16 | int64_t i, j, k, l; | ||
| 17 | cube_t rep[COCSEP_CLASSES], c, d; | ||
| 18 | |||
| 19 | gendata_cocsep(buf, selfsim, rep); | ||
| 20 | |||
| 21 | for (i = 0; i < COCSEP_CLASSES; i++) { | ||
| 22 | c = rep[i]; | ||
| 23 | for (t = 0; t < 48; t++) { | ||
| 24 | d = transform_corners(c, t); | ||
| 25 | j = coord_cocsep(d); | ||
| 26 | tt = TTREP(buf[j]); | ||
| 27 | d = transform_corners(d, tt); | ||
| 28 | k = coord_cocsep(d); | ||
| 29 | l = coord_cocsep(c); | ||
| 30 | if (k != l) | ||
| 31 | printf("cocsep %" PRId64 " (%" PRId64 "): " | ||
| 32 | "%" PRId64 " ttrep %" PRIu8 | ||
| 33 | " -> %" PRId64 "\n", i, l, j, tt, k); | ||
| 34 | } | ||
| 35 | } | ||
| 36 | } | ||
