aboutsummaryrefslogtreecommitdiff
path: root/src/steps.c
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano.tronto@gmail.com>2021-11-20 16:08:43 +0100
committerSebastiano Tronto <sebastiano.tronto@gmail.com>2021-11-20 16:08:43 +0100
commita8c4da5b955eab2eed9ebb03ee4b1212ec6fe042 (patch)
tree3fe233ce2883545ec42d2c3cf5661fba3818fb9d /src/steps.c
parent0df4f6f98101bb3be192ce892aa1452f2c6de1a4 (diff)
downloadnissy-a8c4da5b955eab2eed9ebb03ee4b1212ec6fe042.tar.gz
nissy-a8c4da5b955eab2eed9ebb03ee4b1212ec6fe042.zip
Multithreading seems to be working now, it was easier than expected!
Diffstat (limited to '')
-rw-r--r--src/steps.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/steps.c b/src/steps.c
index 012e4cd..34ddcc2 100644
--- a/src/steps.c
+++ b/src/steps.c
@@ -1063,21 +1063,10 @@ detect_pretrans_drud(Cube cube)
1063/* Public functions **********************************************************/ 1063/* Public functions **********************************************************/
1064 1064
1065void 1065void
1066prepare_step(Step *step, DfsData *dd) 1066prepare_step(Step *step)
1067{ 1067{
1068 int i; 1068 int i;
1069 1069
1070 dd->m = 0;
1071 dd->niss = false;
1072 dd->lb = -1;
1073 dd->last1 = NULLMOVE;
1074 dd->last2 = NULLMOVE;
1075 dd->sols = new_alglist();
1076 dd->current_alg = new_alg("");
1077
1078 moveset_to_list(step->moveset, dd->sorted_moves);
1079 movelist_to_position(dd->sorted_moves, dd->move_position);
1080
1081 for (i = 0; i < step->ntables; i++) 1070 for (i = 0; i < step->ntables; i++)
1082 genptable(step->tables[i]); 1071 genptable(step->tables[i]);
1083} 1072}

Generated with cgit - Back to sebastiano.tronto.net