diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2024-10-03 18:28:04 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2024-10-03 18:28:04 +0200 |
| commit | 9de887d8f178cec5693cafb03b8715804669f65e (patch) | |
| tree | d908c65602a9e123182ea6e3bdd3a091205155d8 /src/solvers/h48/gendata_cocsep.h | |
| parent | 4ee7739d78889cef33d0c60a870922398e0b5e31 (diff) | |
| download | nissy-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.h | 4 |
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 *); | |||
| 27 | STATIC uint32_t gendata_cocsep_dfs(cocsep_dfs_arg_t *); | 27 | STATIC uint32_t gendata_cocsep_dfs(cocsep_dfs_arg_t *); |
| 28 | STATIC void getdistribution_cocsep(const uint32_t *, uint64_t [static 21]); | 28 | STATIC void getdistribution_cocsep(const uint32_t *, uint64_t [static 21]); |
| 29 | 29 | ||
| 30 | STATIC_INLINE int8_t get_h48_cdata(cube_t, uint32_t *, uint32_t *); | 30 | STATIC_INLINE int8_t get_h48_cdata(cube_t, const uint32_t *, uint32_t *); |
| 31 | 31 | ||
| 32 | /* | 32 | /* |
| 33 | Each element of the cocsep table is a uint32_t used as follows: | 33 | 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) | |||
| 182 | } | 182 | } |
| 183 | 183 | ||
| 184 | STATIC_INLINE int8_t | 184 | STATIC_INLINE int8_t |
| 185 | get_h48_cdata(cube_t cube, uint32_t *cocsepdata, uint32_t *cdata) | 185 | get_h48_cdata(cube_t cube, const uint32_t *cocsepdata, uint32_t *cdata) |
| 186 | { | 186 | { |
| 187 | int64_t coord; | 187 | int64_t coord; |
| 188 | 188 | ||
