diff options
author | eug-vs <eugene@eug-vs.xyz> | 2022-09-14 17:25:09 +0300 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2022-09-14 17:25:09 +0300 |
commit | 1373e30387bf5e8e7858e10c9dee4413bf20d71c (patch) | |
tree | 21ec9888a613cfe454ccdefa3de2d37854a112f1 /src/bitboard.h | |
parent | 2dfa7cecdacacf7ef84e1ca768db6d636e225a0c (diff) | |
download | j1chess-1373e30387bf5e8e7858e10c9dee4413bf20d71c.tar.gz |
refactor: separate bitboard functionality
Diffstat (limited to 'src/bitboard.h')
-rw-r--r-- | src/bitboard.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/bitboard.h b/src/bitboard.h new file mode 100644 index 0000000..b90bd8f --- /dev/null +++ b/src/bitboard.h @@ -0,0 +1,12 @@ +#include "types.h" + +typedef U64 Bitboard; +#define BIT (U64)1 + +int pop_count(Bitboard bb); + +void print_bitboard(Bitboard bb); + +Bitboard ls1b(Bitboard bb); + +Bitboard bitscan(Bitboard bb); |