reimplemented the GetSquare function + enabled compiler optimization

This commit is contained in:
rektdie committed 2024-05-15 00:15:37 +02:00
1 parent 986b49b503
commit f6c2b6a881
4 files changed
+12 -8

No files matched your search

+4
View File
@@ -22,6 +22,10 @@ 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;