diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2024-05-10 09:53:19 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2024-05-10 09:53:19 +0200 |
| commit | 88577f1ad03bde81ff56914fd6b05c3cec3aba19 (patch) | |
| tree | 113d851d67e0d7c008904eeb9db17b3ea067513d /test/100_gendata_cocsep | |
| parent | a660922d738b78b11fc78207daabea031058f710 (diff) | |
| download | nissy-core-88577f1ad03bde81ff56914fd6b05c3cec3aba19.tar.gz nissy-core-88577f1ad03bde81ff56914fd6b05c3cec3aba19.zip | |
Small refactor for pruning table cocsep, preparing for big refactor
Diffstat (limited to 'test/100_gendata_cocsep')
| -rw-r--r-- | test/100_gendata_cocsep/gendata_cocsep_tests.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/100_gendata_cocsep/gendata_cocsep_tests.c b/test/100_gendata_cocsep/gendata_cocsep_tests.c index 36dd5ce..4e0dce5 100644 --- a/test/100_gendata_cocsep/gendata_cocsep_tests.c +++ b/test/100_gendata_cocsep/gendata_cocsep_tests.c | |||
| @@ -1,12 +1,16 @@ | |||
| 1 | #include "../test.h" | 1 | #include "../test.h" |
| 2 | 2 | ||
| 3 | size_t gendata_cocsep(void *); | 3 | #define COCSEP_CLASSES 3393U |
| 4 | |||
| 5 | size_t gendata_cocsep(void *, uint64_t *, cube_fast_t *); | ||
| 4 | 6 | ||
| 5 | int main(void) { | 7 | int main(void) { |
| 6 | uint32_t buf[300000], i; | 8 | uint32_t buf[300000], i; |
| 9 | uint64_t selfsim[COCSEP_CLASSES]; | ||
| 10 | cube_fast_t rep[COCSEP_CLASSES]; | ||
| 7 | size_t result; | 11 | size_t result; |
| 8 | 12 | ||
| 9 | result = gendata_cocsep(buf); | 13 | result = gendata_cocsep(buf, selfsim, rep); |
| 10 | 14 | ||
| 11 | printf("%zu\n", result); | 15 | printf("%zu\n", result); |
| 12 | printf("Classes: %" PRIu32 "\n", buf[result/4-12]); | 16 | printf("Classes: %" PRIu32 "\n", buf[result/4-12]); |
