diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-12-14 12:20:37 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-12-14 12:23:33 +0100 |
| commit | 21fdf9697ddfab0a9c082a91ae0a79b1b574774c (patch) | |
| tree | 94215ceaf85f2e7efc85ea1f8ae9c13bd7550a99 /src/solvers/h48/distribution_h48.h | |
| parent | b25989e47adfadabcf0dabfd58d615622887cee0 (diff) | |
| download | nissy-core-21fdf9697ddfab0a9c082a91ae0a79b1b574774c.tar.gz nissy-core-21fdf9697ddfab0a9c082a91ae0a79b1b574774c.zip | |
Bye bye h0k4
Diffstat (limited to 'src/solvers/h48/distribution_h48.h')
| -rw-r--r-- | src/solvers/h48/distribution_h48.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/solvers/h48/distribution_h48.h b/src/solvers/h48/distribution_h48.h index 8b66c06..93a6933 100644 --- a/src/solvers/h48/distribution_h48.h +++ b/src/solvers/h48/distribution_h48.h | |||
| @@ -44,11 +44,9 @@ getdistribution_h48( | |||
| 44 | ) { | 44 | ) { |
| 45 | getdistribution_data_t targ[THREADS]; | 45 | getdistribution_data_t targ[THREADS]; |
| 46 | wrapthread_define_var_thread_t(thread[THREADS]); | 46 | wrapthread_define_var_thread_t(thread[THREADS]); |
| 47 | uint8_t pval, k; | ||
| 48 | uint64_t local_distr[THREADS][INFO_DISTRIBUTION_LEN]; | 47 | uint64_t local_distr[THREADS][INFO_DISTRIBUTION_LEN]; |
| 49 | uint64_t i, j, lines, lines_per_thread, c, cc; | 48 | uint64_t i, j, lines, lines_per_thread, c; |
| 50 | 49 | ||
| 51 | k = info->bits; | ||
| 52 | lines = H48_LINES(info->h48h); | 50 | lines = H48_LINES(info->h48h); |
| 53 | lines_per_thread = DIV_ROUND_UP(lines, THREADS); | 51 | lines_per_thread = DIV_ROUND_UP(lines, THREADS); |
| 54 | 52 | ||
| @@ -56,7 +54,7 @@ getdistribution_h48( | |||
| 56 | targ[i] = (getdistribution_data_t) { | 54 | targ[i] = (getdistribution_data_t) { |
| 57 | .min = i * lines_per_thread, | 55 | .min = i * lines_per_thread, |
| 58 | .max = MIN((i+1) * lines_per_thread, lines), | 56 | .max = MIN((i+1) * lines_per_thread, lines), |
| 59 | .bits = k, | 57 | .bits = info->bits, |
| 60 | .distr = local_distr[i], | 58 | .distr = local_distr[i], |
| 61 | .table = table, | 59 | .table = table, |
| 62 | }; | 60 | }; |
