diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-07-29 12:12:43 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-07-29 12:12:43 +0200 |
| commit | ea0387796a349c91032fbcb10f50c6ad8607b0f6 (patch) | |
| tree | aed484690d24c0c28c7695d4b5389f2e3c341b96 /test/112_cocsep_selfsim/cocsep_selfsim_tests.c | |
| parent | 52c21640508c3fc668107778ae027ff4428ebd89 (diff) | |
| download | nissy-core-ea0387796a349c91032fbcb10f50c6ad8607b0f6.tar.gz nissy-core-ea0387796a349c91032fbcb10f50c6ad8607b0f6.zip | |
All coordinates unsigned
Diffstat (limited to 'test/112_cocsep_selfsim/cocsep_selfsim_tests.c')
| -rw-r--r-- | test/112_cocsep_selfsim/cocsep_selfsim_tests.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/112_cocsep_selfsim/cocsep_selfsim_tests.c b/test/112_cocsep_selfsim/cocsep_selfsim_tests.c index 1a1c6f2..2abe476 100644 --- a/test/112_cocsep_selfsim/cocsep_selfsim_tests.c +++ b/test/112_cocsep_selfsim/cocsep_selfsim_tests.c | |||
| @@ -8,13 +8,13 @@ | |||
| 8 | #include "../test.h" | 8 | #include "../test.h" |
| 9 | 9 | ||
| 10 | size_t gendata_cocsep(unsigned char *, uint64_t *, cube_t *); | 10 | size_t gendata_cocsep(unsigned char *, uint64_t *, cube_t *); |
| 11 | int64_t coord_cocsep(cube_t); | 11 | uint64_t coord_cocsep(cube_t); |
| 12 | 12 | ||
| 13 | void run(void) { | 13 | void run(void) { |
| 14 | char str[STRLENMAX]; | 14 | char str[STRLENMAX]; |
| 15 | unsigned char buf[2000000]; | 15 | unsigned char buf[2000000]; |
| 16 | uint32_t *cocsepdata, data; | 16 | uint32_t *cocsepdata, data; |
| 17 | int64_t coord, coclass; | 17 | uint64_t coord, coclass; |
| 18 | uint64_t selfsim[COCSEP_CLASSES], sim, t; | 18 | uint64_t selfsim[COCSEP_CLASSES], sim, t; |
| 19 | oriented_cube_t cube; | 19 | oriented_cube_t cube; |
| 20 | cube_t rep[COCSEP_CLASSES]; | 20 | cube_t rep[COCSEP_CLASSES]; |
| @@ -32,7 +32,7 @@ void run(void) { | |||
| 32 | sim = selfsim[coclass]; | 32 | sim = selfsim[coclass]; |
| 33 | for (t = 0; t < 48 && sim; t++, sim >>= 1) { | 33 | for (t = 0; t < 48 && sim; t++, sim >>= 1) { |
| 34 | if (sim & 1) | 34 | if (sim & 1) |
| 35 | printf("%" PRId64 " ", t); | 35 | printf("%" PRIu64 " ", t); |
| 36 | } | 36 | } |
| 37 | printf("\n"); | 37 | printf("\n"); |
| 38 | } | 38 | } |
