X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftypes.h;h=444d7afd3d08eeab3132c389c155cae066a1ccd5;hp=c5b901a98d4e64603b60446c522ec4884fa04627;hb=8cff4862a65bdbf156609fea14f47ea4bdf42df3;hpb=908d98820b9f055d3089cc947f6901a2d6fe0d81 diff --git a/src/types.h b/src/types.h index c5b901a9..444d7afd 100644 --- a/src/types.h +++ b/src/types.h @@ -310,7 +310,6 @@ inline Score operator/(Score s, int i) { #undef ENABLE_SAFE_OPERATORS_ON extern Value PieceValue[PHASE_NB][PIECE_NB]; -extern int SquareDistance[SQUARE_NB][SQUARE_NB]; struct MoveStack { Move move; @@ -391,18 +390,6 @@ inline bool opposite_colors(Square s1, Square s2) { return ((s >> 3) ^ s) & 1; } -inline int file_distance(Square s1, Square s2) { - return abs(file_of(s1) - file_of(s2)); -} - -inline int rank_distance(Square s1, Square s2) { - return abs(rank_of(s1) - rank_of(s2)); -} - -inline int square_distance(Square s1, Square s2) { - return SquareDistance[s1][s2]; -} - inline char file_to_char(File f, bool tolower = true) { return char(f - FILE_A + (tolower ? 'a' : 'A')); }