From c5c5017a335208881e27fc8f72c1d0145a04622a Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Sun, 9 Jun 2024 12:43:49 +0200 Subject: Remvoed cube_fast_t and more. More cleaning up to do. --- test/102_coord_invcoord_h48/coord_invcoord_h48_tests.c | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'test/102_coord_invcoord_h48') diff --git a/test/102_coord_invcoord_h48/coord_invcoord_h48_tests.c b/test/102_coord_invcoord_h48/coord_invcoord_h48_tests.c index 5022608..b0668df 100644 --- a/test/102_coord_invcoord_h48/coord_invcoord_h48_tests.c +++ b/test/102_coord_invcoord_h48/coord_invcoord_h48_tests.c @@ -2,10 +2,10 @@ #define COCSEP_CLASSES 3393 -size_t gendata_cocsep(void *, uint64_t *, cube_fast_t *); -int64_t coord_h48(cube_fast_t, const uint32_t *, uint8_t); -cube_fast_t invcoord_h48(int64_t, const cube_fast_t *, uint8_t); -cube_fast_t transform(cube_fast_t, uint8_t); +size_t gendata_cocsep(void *, uint64_t *, cube_t *); +int64_t coord_h48(cube_t, const uint32_t *, uint8_t); +cube_t invcoord_h48(int64_t, const cube_t *, uint8_t); +cube_t transform(cube_t, uint8_t); int main(void) { char str[STRLENMAX]; @@ -15,8 +15,7 @@ int main(void) { uint32_t cocsepdata[300000]; uint64_t selfsim[COCSEP_CLASSES]; int64_t c, cc; - cube_t cube; - cube_fast_t fast, invc, rep[COCSEP_CLASSES]; + cube_t cube, invc, rep[COCSEP_CLASSES]; gendata_cocsep(cocsepdata, selfsim, rep); @@ -24,12 +23,11 @@ int main(void) { h = 11; while (fgets(str, STRLENMAX, stdin) != NULL) { cube = readcube("H48", str); - fast = cubetofast(cube); - c = coord_h48(fast, cocsepdata, h); + c = coord_h48(cube, cocsepdata, h); invc = invcoord_h48(c, rep, h); for (t = 0, found = false; t < 48; t++) { - fast = transform(invc, t); - cc = coord_h48(fast, cocsepdata, h); + cube = transform(invc, t); + cc = coord_h48(cube, cocsepdata, h); found = found || cc == c; } printf("%d %s\n", i, found ? "ok" : "ERROR"); -- cgit v1.3