-inline void set_bit(Bitboard* b, Square s) {
- *b |= SquareBB[s];
-}
-
-inline void xor_bit(Bitboard* b, Square s) {
- *b ^= SquareBB[s];
-}
-
-
-/// Functions used to update a bitboard after a move. This is faster
-/// then calling a sequence of clear_bit() + set_bit()
-
-inline Bitboard make_move_bb(Square from, Square to) {
- return SquareBB[from] | SquareBB[to];
+inline Bitboard& operator|=(Bitboard& b, Square s) {
+ return b |= SquareBB[s], b;