X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fpawns.h;h=77a09f29acae57eeb95273f3c3dcecd8d28139e2;hp=e41044091566050567d413cb2d5888dba6585538;hb=95212222c7444538b84326208e433ac12f15e9fb;hpb=0ddf84870ad9f7fb4309e992e1e5eae968577958 diff --git a/src/pawns.h b/src/pawns.h index e4104409..77a09f29 100644 --- a/src/pawns.h +++ b/src/pawns.h @@ -93,6 +93,10 @@ private: //// Inline functions //// +inline Square pawn_push(Color c) { + return c == WHITE ? DELTA_N : DELTA_S; +} + inline void PawnInfoTable::prefetch(Key key) const { unsigned index = unsigned(key & (PawnTableSize - 1));