Skip to content

Commit

Permalink
Avoid to use pext
Browse files Browse the repository at this point in the history
  • Loading branch information
primenumber committed Feb 23, 2024
1 parent 7f02d32 commit 5a175c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/engine/last_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,11 @@ impl LastCache {
if diff_first > 0 {
(pcnt - ocnt + 2 * diff_first + 1, 1)
} else {
let diag1_bits_second = board.opponent.pext(diag1_mask);
let diag1_bits_second = Self::get_diag1_bits(board.opponent, diag1_mask, row, col);
let &diag1_score_second = self
.table
.get_unchecked((diag1_bits_second as usize) * 8 + diag1_idx as usize);
let diag2_bits_second = board.opponent.pext(diag2_mask);
let diag2_bits_second = Self::get_diag2_bits(board.opponent, diag2_mask, row, col);
let &diag2_score_second = self
.table
.get_unchecked((diag2_bits_second as usize) * 8 + diag2_idx as usize);
Expand Down

0 comments on commit 5a175c9

Please sign in to comment.