- clear_bit(&byColorBB[us], kfrom);
- clear_bit(&byTypeBB[KING], kfrom);
- clear_bit(&occupied, kfrom);
- clear_bit(&byColorBB[us], rfrom);
- clear_bit(&byTypeBB[ROOK], rfrom);
- clear_bit(&occupied, rfrom);
+ xor_bit(&byColorBB[us], kfrom);
+ xor_bit(&byTypeBB[KING], kfrom);
+ xor_bit(&occupied, kfrom);
+ xor_bit(&byColorBB[us], rfrom);
+ xor_bit(&byTypeBB[ROOK], rfrom);
+ xor_bit(&occupied, rfrom);