]> git.sesse.net Git - stockfish/blobdiff - src/bitboard.h
Inline pinned_pieces() and discovered_check_candidates()
[stockfish] / src / bitboard.h
index 59de12886e513f55b6ba2ffae18cfe4ce96986bd..fa1f9d20ad9d0dae3dc8a7f501655a3a4157bd22 100644 (file)
@@ -84,11 +84,11 @@ inline Bitboard bit_is_set(Bitboard b, Square s) {
   return b & SetMaskBB[s];
 }
 
-inline void set_bit(Bitboard *b, Square s) {
+inline void set_bit(Bitboardb, Square s) {
   *b |= SetMaskBB[s];
 }
 
-inline void clear_bit(Bitboard *b, Square s) {
+inline void clear_bit(Bitboardb, Square s) {
   *b &= ClearMaskBB[s];
 }
 
@@ -100,7 +100,7 @@ inline Bitboard make_move_bb(Square from, Square to) {
   return SetMaskBB[from] | SetMaskBB[to];
 }
 
-inline void do_move_bb(Bitboard *b, Bitboard move_bb) {
+inline void do_move_bb(Bitboardb, Bitboard move_bb) {
   *b ^= move_bb;
 }