aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2022-06-01 17:24:51 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2022-06-01 17:24:51 +0200
commit21f5ae00e2f5d042ce887b5d6cf0450f42c3383c (patch)
treeac76f0e403a298c9fc9b3db75d17c63a1ab4fa83
parent036195651f74ae1707e4b5991e3d2252da7e1531 (diff)
downloadnissy-21f5ae00e2f5d042ce887b5d6cf0450f42c3383c.tar.gz
nissy-21f5ae00e2f5d042ce887b5d6cf0450f42c3383c.zip
Couple of fixes in coordinates
-rw-r--r--src/coord.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/coord.c b/src/coord.c
index 3812ae3..990ab11 100644
--- a/src/coord.c
+++ b/src/coord.c
@@ -364,7 +364,7 @@ move_cphtr(Move m, uint64_t ind)
364 for (ui = 0; ui < BINOM8ON4*6; ui++) 364 for (ui = 0; ui < BINOM8ON4*6; ui++)
365 for (j = U; j < NMOVES; j++) 365 for (j = U; j < NMOVES; j++)
366 aux[j][ui] = 366 aux[j][ui] =
367 cp_mtable[j][cphtr_right_rep[ind]]; 367 cp_mtable[j][cphtr_right_rep[ui]];
368 368
369 initialized = true; 369 initialized = true;
370 } 370 }
@@ -411,7 +411,7 @@ move_drud_eofb(Move m, uint64_t ind)
411 uint64_t a, b; 411 uint64_t a, b;
412 412
413 a = coud_mtable[m][ind % POW3TO7]; 413 a = coud_mtable[m][ind % POW3TO7];
414 b = epose_mtable[m][ind / POW3TO7]; 414 b = epose_mtable[m][(ind / POW3TO7) * 24] / 24;
415 415
416 return a + b * POW3TO7; 416 return a + b * POW3TO7;
417} 417}

Generated with cgit - Back to sebastiano.tronto.net