aboutsummaryrefslogtreecommitdiff
path: root/src/bitboard.h
blob: 02298d3b55ecccff58faa50bdd405dcec89b6cef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "types.h"

typedef U64 Bitboard;

int popCount(Bitboard bb);

void printBitboard(Bitboard bb);

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);