mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-17 23:56:23 +08:00
Rename first_1 / last_1 in lsb / msb
It seems more accurate: lsb is clear while 'first bit' depends from where you look at the bitboard. And fix compile in case of 64 bits platforms that do not use BSFQ intrinsics. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -196,8 +196,8 @@ namespace {
|
||||
|
||||
while (b)
|
||||
{
|
||||
r |= Us == WHITE ? db[index(pop_1st_bit(&b), bksq, psq, BLACK)]
|
||||
: db[index(wksq, pop_1st_bit(&b), psq, WHITE)];
|
||||
r |= Us == WHITE ? db[index(pop_lsb(&b), bksq, psq, BLACK)]
|
||||
: db[index(wksq, pop_lsb(&b), psq, WHITE)];
|
||||
|
||||
if (Us == WHITE && (r & WIN))
|
||||
return WIN;
|
||||
|
||||
Reference in New Issue
Block a user