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/solve.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/solve.h')
| -rw-r--r-- | src/solvers/h48/solve.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/solvers/h48/solve.h b/src/solvers/h48/solve.h index c2dce91..3948b15 100644 --- a/src/solvers/h48/solve.h +++ b/src/solvers/h48/solve.h | |||
| @@ -8,8 +8,8 @@ typedef struct { | |||
| 8 | int64_t maxsolutions; | 8 | int64_t maxsolutions; |
| 9 | uint8_t h; | 9 | uint8_t h; |
| 10 | uint8_t k; | 10 | uint8_t k; |
| 11 | uint32_t *cocsepdata; | 11 | const uint32_t *cocsepdata; |
| 12 | uint8_t *h48data; | 12 | const uint8_t *h48data; |
| 13 | char **nextsol; | 13 | char **nextsol; |
| 14 | uint8_t nissbranch; | 14 | uint8_t nissbranch; |
| 15 | int8_t npremoves; | 15 | int8_t npremoves; |
| @@ -183,8 +183,8 @@ solve_h48( | |||
| 183 | .maxsolutions = maxsolutions, | 183 | .maxsolutions = maxsolutions, |
| 184 | .h = info.h48h, | 184 | .h = info.h48h, |
| 185 | .k = info.bits, | 185 | .k = info.bits, |
| 186 | .cocsepdata = get_cocsepdata_ptr(data), | 186 | .cocsepdata = get_cocsepdata_constptr(data), |
| 187 | .h48data = get_h48data_ptr(data), | 187 | .h48data = get_h48data_constptr(data), |
| 188 | .nextsol = &solutions | 188 | .nextsol = &solutions |
| 189 | }; | 189 | }; |
| 190 | 190 | ||
