- 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);
+ byColorBB[us] ^= kfrom;
+ byTypeBB[KING] ^= kfrom;
+ occupied ^= kfrom;
+ byColorBB[us] ^= rfrom;
+ byTypeBB[ROOK] ^= rfrom;
+ occupied ^= rfrom;