X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftypes.h;fp=src%2Ftypes.h;h=c77d804037ee7a094b54843b1482801baa2c6aed;hp=6af0368720313d4c8cb7260566a92726f5256daa;hb=302e0f70c653bfcca4338d7be71dfdd1166da910;hpb=7756344d5d2b93970e7cd423f8cbf6fb1da11b74 diff --git a/src/types.h b/src/types.h index 6af03687..c77d8040 100644 --- a/src/types.h +++ b/src/types.h @@ -366,10 +366,6 @@ constexpr Piece operator~(Piece pc) { return Piece(pc ^ 8); // Swap color of piece B_KNIGHT -> W_KNIGHT } -inline File map_to_queenside(File f) { - return std::min(f, File(FILE_H - f)); // Map files ABCDEFGH to files ABCDDCBA -} - constexpr CastlingRights operator&(Color c, CastlingRights cr) { return CastlingRights((c == WHITE ? WHITE_CASTLING : BLACK_CASTLING) & cr); }