nissy-fmc

A Rubik's cube FMC assistant
git clone https://git.tronto.net/nissy-fmc
Download | Log | Files | Refs | README | LICENSE

commit d8a94976ebad9c55aca6b0443c5f92d892e12dd0
parent a0a229768a0adba0c7ac0b522a2c7d46a838c6fa
Author: Sebastiano Tronto <sebastiano.tronto@gmail.com>
Date:   Thu,  9 Dec 2021 08:36:06 +0100

Fixed genptable for small tables and tables that do not use symmetry

Diffstat:
Mnissy | 0
Msrc/pruning.c | 6+++++-
2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/nissy b/nissy Binary files differ. diff --git a/src/pruning.c b/src/pruning.c @@ -1,6 +1,7 @@ #include "pruning.h" /* Chunks for multithreading */ +/* TODO: try smaller */ #define NCHUNKS 100000 static int findchunk(PruneData *pd, int nchunks, uint64_t i); @@ -114,7 +115,7 @@ genptable(PruneData *pd, int nthreads) } pd->generated = true; - nchunks = MIN(pd->coord->max, NCHUNKS); + nchunks = MIN(pd->coord->max/2, NCHUNKS); fprintf(stderr, "Cannot load %s, generating it " "with %d threads and %d chunks\n", pd->filename, nthreads, nchunks); @@ -193,6 +194,9 @@ genptable_fixnasty(PruneData *pd, int d) Cube c, cc; Trans t[NTRANS]; + if (pd->coord->trans == NULL) + return; + for (i = 0; i < pd->coord->max; i++) { if (ptableval_index(pd, i) == d) { n = pd->coord->trans(i, t);