diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2024-05-25 18:07:07 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2024-05-25 18:07:07 +0200 |
| commit | 6ec2e7d5413eda0671a20a0069aa8d89d8117c0a (patch) | |
| tree | 4a06f23e10bf45d73bf30efde05b9f32eac8ba18 | |
| parent | 1833e9c0ba37b90a5db84cecc66388d83f37d36a (diff) | |
| download | nissy-core-6ec2e7d5413eda0671a20a0069aa8d89d8117c0a.tar.gz nissy-core-6ec2e7d5413eda0671a20a0069aa8d89d8117c0a.zip | |
Minor improvement
| -rw-r--r-- | TODO.txt | 4 | ||||
| -rw-r--r-- | src/solve_h48.h | 6 |
2 files changed, 7 insertions, 3 deletions
| @@ -1,3 +1,7 @@ | |||
| 1 | Correctness | ||
| 2 | - Check all cases of bitwise operations for type mismatch, | ||
| 3 | force cast to same type. Change to ULL where appropriate. | ||
| 4 | |||
| 1 | Solver | 5 | Solver |
| 2 | - write a solver (how many tricks? some, but not all are needed) | 6 | - write a solver (how many tricks? some, but not all are needed) |
| 3 | 7 | ||
diff --git a/src/solve_h48.h b/src/solve_h48.h index a2e3184..ecb0863 100644 --- a/src/solve_h48.h +++ b/src/solve_h48.h | |||
| @@ -288,9 +288,9 @@ gendata_esep_bfs(bfsarg_esep_t *arg) | |||
| 288 | set_esep_pval(arg->buf32, j, arg->depth); | 288 | set_esep_pval(arg->buf32, j, arg->depth); |
| 289 | cc += x != arg->depth; | 289 | cc += x != arg->depth; |
| 290 | cocsep_coord = j / H48_ESIZE(arg->h); | 290 | cocsep_coord = j / H48_ESIZE(arg->h); |
| 291 | sim = arg->selfsim[cocsep_coord]; | 291 | sim = arg->selfsim[cocsep_coord] >> 1ULL; |
| 292 | for (t = 1; t < 48; t++) { /* Skip trivial trans */ | 292 | for (t = 1; t < 48 && sim; t++, sim >>= 1ULL) { |
| 293 | if (!(sim & (1ULL << t))) | 293 | if (!(sim & 1ULL)) |
| 294 | continue; | 294 | continue; |
| 295 | transd = transform(moved, t); | 295 | transd = transform(moved, t); |
| 296 | k = coord_h48(transd, arg->cocsepdata, arg->h); | 296 | k = coord_h48(transd, arg->cocsepdata, arg->h); |
