diff options
author | eug-vs <eugene@eug-vs.xyz> | 2023-06-26 20:01:36 +0300 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2023-06-26 20:01:36 +0300 |
commit | 72761f770a73e3e8fac9b57043ed19f084bfb230 (patch) | |
tree | bc482dc87dfbddd4cd9a71461d37e9dde41cfb45 /src/bitboard.h | |
parent | c3474b1481a02baefda1abe286d4fbef39597bce (diff) | |
download | j1chess-72761f770a73e3e8fac9b57043ed19f084bfb230.tar.gz |
tmp: save progress from @black-pearltmp
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); |