From 9de887d8f178cec5693cafb03b8715804669f65e Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Thu, 3 Oct 2024 18:28:04 +0200 Subject: Improve gendata performance by replacing locks with atomic operations --- src/solvers/h48/gendata_cocsep.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/solvers/h48/gendata_cocsep.h') diff --git a/src/solvers/h48/gendata_cocsep.h b/src/solvers/h48/gendata_cocsep.h index 262793b..5f0fae9 100644 --- a/src/solvers/h48/gendata_cocsep.h +++ b/src/solvers/h48/gendata_cocsep.h @@ -27,7 +27,7 @@ STATIC size_t gendata_cocsep(void *, uint64_t *, cube_t *); STATIC uint32_t gendata_cocsep_dfs(cocsep_dfs_arg_t *); STATIC void getdistribution_cocsep(const uint32_t *, uint64_t [static 21]); -STATIC_INLINE int8_t get_h48_cdata(cube_t, uint32_t *, uint32_t *); +STATIC_INLINE int8_t get_h48_cdata(cube_t, const uint32_t *, uint32_t *); /* Each element of the cocsep table is a uint32_t used as follows: @@ -182,7 +182,7 @@ set_visited(uint8_t *a, int64_t i) } STATIC_INLINE int8_t -get_h48_cdata(cube_t cube, uint32_t *cocsepdata, uint32_t *cdata) +get_h48_cdata(cube_t cube, const uint32_t *cocsepdata, uint32_t *cdata) { int64_t coord; -- cgit v1.3