- // Remove pieces from destination squares:
- clear_bit(&(byColorBB[us]), kto);
- clear_bit(&(byTypeBB[KING]), kto);
- clear_bit(&(byTypeBB[0]), kto); // HACK: byTypeBB[0] == occupied squares
- clear_bit(&(byColorBB[us]), rto);
- clear_bit(&(byTypeBB[ROOK]), rto);
- clear_bit(&(byTypeBB[0]), rto); // HACK: byTypeBB[0] == occupied squares
-
- // Put pieces on source squares:
- set_bit(&(byColorBB[us]), kfrom);
- set_bit(&(byTypeBB[KING]), kfrom);
- set_bit(&(byTypeBB[0]), kfrom); // HACK: byTypeBB[0] == occupied squares
- set_bit(&(byColorBB[us]), rfrom);
- set_bit(&(byTypeBB[ROOK]), rfrom);
- set_bit(&(byTypeBB[0]), rfrom); // HACK: byTypeBB[0] == occupied squares
+ // Remove pieces from destination squares
+ clear_bit(&byColorBB[us], kto);
+ clear_bit(&byTypeBB[KING], kto);
+ clear_bit(&byTypeBB[0], kto);
+ clear_bit(&byColorBB[us], rto);
+ clear_bit(&byTypeBB[ROOK], rto);
+ clear_bit(&byTypeBB[0], rto);
+
+ // Put pieces on source squares
+ set_bit(&byColorBB[us], kfrom);
+ set_bit(&byTypeBB[KING], kfrom);
+ set_bit(&byTypeBB[0], kfrom);
+ set_bit(&byColorBB[us], rfrom);
+ set_bit(&byTypeBB[ROOK], rfrom);
+ set_bit(&byTypeBB[0], rfrom);