diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2024-10-04 14:29:00 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2024-10-04 14:29:00 +0200 |
| commit | 283effb16646112ee9c6bba57e021e80f322b29f (patch) | |
| tree | 3c0ad588e550f86df21687e82a17e9f1f60443be /test/104_cocsep_ttrep | |
| parent | fc150adaf3bff133da0e59d842f13b7b21297fc0 (diff) | |
| download | nissy-core-283effb16646112ee9c6bba57e021e80f322b29f.tar.gz nissy-core-283effb16646112ee9c6bba57e021e80f322b29f.zip | |
Avoid repeating typedefs in tests
Diffstat (limited to 'test/104_cocsep_ttrep')
| -rw-r--r-- | test/104_cocsep_ttrep/cocsep_ttrep_tests.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/test/104_cocsep_ttrep/cocsep_ttrep_tests.c b/test/104_cocsep_ttrep/cocsep_ttrep_tests.c index efe5a26..0b853c3 100644 --- a/test/104_cocsep_ttrep/cocsep_ttrep_tests.c +++ b/test/104_cocsep_ttrep/cocsep_ttrep_tests.c | |||
| @@ -1,11 +1,5 @@ | |||
| 1 | #include "../test.h" | 1 | #include "../test.h" |
| 2 | 2 | ||
| 3 | #define TTREP_MASK (UINT32_C(0xFF) << UINT32_C(8)) | ||
| 4 | #define TTREP(x) (((x) & TTREP_MASK) >> UINT32_C(8)) | ||
| 5 | |||
| 6 | #define COCSEP_CLASSES 3393 | ||
| 7 | #define INFOSIZE 512 | ||
| 8 | |||
| 9 | uint8_t inverse_trans(uint8_t); | 3 | uint8_t inverse_trans(uint8_t); |
| 10 | cube_t transform_corners(cube_t, uint8_t); | 4 | cube_t transform_corners(cube_t, uint8_t); |
| 11 | int64_t coord_cocsep(cube_t); | 5 | int64_t coord_cocsep(cube_t); |
| @@ -15,8 +9,8 @@ void run(void) { | |||
| 15 | uint8_t t; | 9 | uint8_t t; |
| 16 | char buf[2000000]; | 10 | char buf[2000000]; |
| 17 | uint32_t *cocsepdata, tt; | 11 | uint32_t *cocsepdata, tt; |
| 18 | uint64_t selfsim[COCSEP_CLASSES]; | 12 | uint64_t i, selfsim[COCSEP_CLASSES]; |
| 19 | int64_t i, j, k, l; | 13 | int64_t j, k, l; |
| 20 | cube_t rep[COCSEP_CLASSES], c, d; | 14 | cube_t rep[COCSEP_CLASSES], c, d; |
| 21 | 15 | ||
| 22 | gendata_cocsep(buf, selfsim, rep); | 16 | gendata_cocsep(buf, selfsim, rep); |
