aboutsummaryrefslogtreecommitdiff
path: root/src/solvers/h48/gendata_cocsep.h
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2024-10-03 18:28:04 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2024-10-03 18:28:04 +0200
commit9de887d8f178cec5693cafb03b8715804669f65e (patch)
treed908c65602a9e123182ea6e3bdd3a091205155d8 /src/solvers/h48/gendata_cocsep.h
parent4ee7739d78889cef33d0c60a870922398e0b5e31 (diff)
downloadnissy-core-9de887d8f178cec5693cafb03b8715804669f65e.tar.gz
nissy-core-9de887d8f178cec5693cafb03b8715804669f65e.zip
Improve gendata performance by replacing locks with atomic operations
Diffstat (limited to 'src/solvers/h48/gendata_cocsep.h')
-rw-r--r--src/solvers/h48/gendata_cocsep.h4
1 files changed, 2 insertions, 2 deletions
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 *);
27STATIC uint32_t gendata_cocsep_dfs(cocsep_dfs_arg_t *); 27STATIC uint32_t gendata_cocsep_dfs(cocsep_dfs_arg_t *);
28STATIC void getdistribution_cocsep(const uint32_t *, uint64_t [static 21]); 28STATIC void getdistribution_cocsep(const uint32_t *, uint64_t [static 21]);
29 29
30STATIC_INLINE int8_t get_h48_cdata(cube_t, uint32_t *, uint32_t *); 30STATIC_INLINE int8_t get_h48_cdata(cube_t, const uint32_t *, uint32_t *);
31 31
32/* 32/*
33Each element of the cocsep table is a uint32_t used as follows: 33Each element of the cocsep table is a uint32_t used as follows:
@@ -182,7 +182,7 @@ set_visited(uint8_t *a, int64_t i)
182} 182}
183 183
184STATIC_INLINE int8_t 184STATIC_INLINE int8_t
185get_h48_cdata(cube_t cube, uint32_t *cocsepdata, uint32_t *cdata) 185get_h48_cdata(cube_t cube, const uint32_t *cocsepdata, uint32_t *cdata)
186{ 186{
187 int64_t coord; 187 int64_t coord;
188 188

Generated with cgit - Back to sebastiano.tronto.net