convert piece_t, square_t etc. to u8 (no more typed enum. See C23 ?).

This commit is contained in:
2024-07-03 08:49:54 +02:00
parent 902c224aa9
commit 91abc3e26d
9 changed files with 58 additions and 30 deletions

View File

@@ -1,2 +1,18 @@
** Some current ideas
- hmmm. Empty brain.
- Test popbit/square_of with intrinsincs, something like :
bitboard_t popbit64(bitboard_t *bb)
{
bitboard_t first = _blsi_u64(*bb);
*bb ^= lsb;
return first;
}
square_t square_of(bitboard_t bb) {
return _tzcnt_u64(bb);
}
loop:
while (bb) {
bitboard_t first = popbit(bb);
square_t sq = square_of(first);
}