From 6ec2e7d5413eda0671a20a0069aa8d89d8117c0a Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Sat, 25 May 2024 18:07:07 +0200 Subject: Minor improvement --- src/solve_h48.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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) set_esep_pval(arg->buf32, j, arg->depth); cc += x != arg->depth; cocsep_coord = j / H48_ESIZE(arg->h); - sim = arg->selfsim[cocsep_coord]; - for (t = 1; t < 48; t++) { /* Skip trivial trans */ - if (!(sim & (1ULL << t))) + sim = arg->selfsim[cocsep_coord] >> 1ULL; + for (t = 1; t < 48 && sim; t++, sim >>= 1ULL) { + if (!(sim & 1ULL)) continue; transd = transform(moved, t); k = coord_h48(transd, arg->cocsepdata, arg->h); -- cgit v1.3