From dd6078288b5d7af4a4c0cdd1377a2976af569c9a Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Wed, 11 Sep 2024 10:25:39 +0200 Subject: Better way to read tables for solver --- src/solvers/h48/solve.h | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src/solvers/h48/solve.h') diff --git a/src/solvers/h48/solve.h b/src/solvers/h48/solve.h index 1c9328b..26847b2 100644 --- a/src/solvers/h48/solve.h +++ b/src/solvers/h48/solve.h @@ -192,8 +192,8 @@ solve_h48( .maxsolutions = maxsolutions, .h = h, .k = k, - .cocsepdata = (uint32_t *)((char *)data + INFOSIZE), - .h48data = (uint8_t *)data + COCSEP_FULLSIZE, + .cocsepdata = get_cocsepdata_ptr(data), + .h48data = get_h48data_ptr(data), .nextsol = &solutions }; @@ -276,15 +276,12 @@ solve_h48stats( ) { int i; - size_t cocsepsize; dfsarg_solveh48stats_t arg; - cocsepsize = gendata_cocsep(NULL, NULL, NULL); - arg = (dfsarg_solveh48stats_t) { .cube = cube, - .cocsepdata = (uint32_t *)((char *)data + INFOSIZE), - .h48data = (uint8_t *)data + cocsepsize, + .cocsepdata = get_cocsepdata_ptr(data), + .h48data = get_h48data_ptr(data), .s = solutions }; -- cgit v1.3