Small tweaks in do_move and friends

Also remove useless StateCopySize64 optimization:
compiler uses SSE movups instruction anyhow and
does not need this trick (verified with fishbench).

No functional change.
This commit is contained in:
Marco Costalba
2015-02-07 19:34:24 +01:00
parent 99c9cae586
commit 3184852bdc
3 changed files with 31 additions and 42 deletions

View File

@@ -417,7 +417,7 @@ inline MoveType type_of(Move m) {
}
inline PieceType promotion_type(Move m) {
return PieceType(((m >> 12) & 3) + 2);
return PieceType(((m >> 12) & 3) + KNIGHT);
}
inline Move make_move(Square from, Square to) {