commit 21f5ae00e2f5d042ce887b5d6cf0450f42c3383c
parent 036195651f74ae1707e4b5991e3d2252da7e1531
Author: Sebastiano Tronto <sebastiano@tronto.net>
Date: Wed, 1 Jun 2022 17:24:51 +0200
Couple of fixes in coordinates
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/coord.c b/src/coord.c
@@ -364,7 +364,7 @@ move_cphtr(Move m, uint64_t ind)
for (ui = 0; ui < BINOM8ON4*6; ui++)
for (j = U; j < NMOVES; j++)
aux[j][ui] =
- cp_mtable[j][cphtr_right_rep[ind]];
+ cp_mtable[j][cphtr_right_rep[ui]];
initialized = true;
}
@@ -411,7 +411,7 @@ move_drud_eofb(Move m, uint64_t ind)
uint64_t a, b;
a = coud_mtable[m][ind % POW3TO7];
- b = epose_mtable[m][ind / POW3TO7];
+ b = epose_mtable[m][(ind / POW3TO7) * 24] / 24;
return a + b * POW3TO7;
}