diff options
Diffstat (limited to 'src/bitboard.h')
-rw-r--r-- | src/bitboard.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/bitboard.h b/src/bitboard.h index 6b89c84..02298d3 100644 --- a/src/bitboard.h +++ b/src/bitboard.h @@ -1,7 +1,6 @@ #include "types.h" typedef U64 Bitboard; -#define BIT (U64)1 int popCount(Bitboard bb); @@ -12,3 +11,8 @@ Bitboard ls1b(Bitboard bb); int bitscan(Bitboard bb); int bitscanAndReset(Bitboard* bb); + +Bitboard rankMask(enumSquare sq); +Bitboard fileMask(enumSquare sq); +Bitboard diagMask(enumSquare sq); +Bitboard antiDiasMask(enumSquare sq); |