made some optimizations in PopBit and other parts
This commit is contained in:
1 parent
119a87f227
commit
986b49b503
8 files changed
+32
-37
No files matched your search
+2
-6
@@ -11,7 +11,7 @@ public:
|
||||
|
||||
Bitboard(const U64& board)
|
||||
: m_board(board) {}
|
||||
|
||||
|
||||
U64 GetBoard() const;
|
||||
bool IsSet(int square) const;
|
||||
void SetBit(int square);
|
||||
@@ -22,10 +22,6 @@ public:
|
||||
int getLS1BIndex() const;
|
||||
static Bitboard getOccupancy(int index, Bitboard attackMask);
|
||||
|
||||
static Bitboard GetSquare(int square) {
|
||||
return (1ULL << square);
|
||||
};
|
||||
|
||||
Bitboard operator&(const Bitboard& other) const;
|
||||
Bitboard operator|(const Bitboard& other) const;
|
||||
Bitboard operator^(const Bitboard& other) const;
|
||||
@@ -38,4 +34,4 @@ public:
|
||||
Bitboard operator<<(int other);
|
||||
Bitboard operator>>(int other);
|
||||
Bitboard operator~();
|
||||
};
|
||||
};
|
||||
Reference in new issue
Block a user