X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftypes.h;fp=src%2Ftypes.h;h=71893c0ffd644acef9d5611b7591e40f57b1de95;hp=d4937fd65cd6b7c1425156a8ea853ad068aa0472;hb=47be966d3028ca9b5c4d095f266663eb205c0c07;hpb=37e38639279bf58558b92932739da57e7c2e3bdc diff --git a/src/types.h b/src/types.h index d4937fd6..71893c0f 100644 --- a/src/types.h +++ b/src/types.h @@ -370,10 +370,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); }