X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbitboard.h;h=6a1755b662891b26051dad911b1c42bcf2c7de86;hp=cd6c280c8c444d9e349c1895b4c792ef8325d77d;hb=15e21911110f9d459c4fef2bb17903d97345d0b9;hpb=c556fe1d716fcef3215c239f02b314ec7b42f0d1 diff --git a/src/bitboard.h b/src/bitboard.h index cd6c280c..6a1755b6 100644 --- a/src/bitboard.h +++ b/src/bitboard.h @@ -21,9 +21,9 @@ #ifndef BITBOARD_H_INCLUDED #define BITBOARD_H_INCLUDED -#include "types.h" +#include -extern Bitboard pext(Bitboard b, Bitboard mask); +#include "types.h" namespace Bitboards { @@ -244,7 +244,7 @@ FORCE_INLINE unsigned magic_index(Square s, Bitboard occ) { unsigned* const Shifts = Pt == ROOK ? RShifts : BShifts; if (HasPext) - return unsigned(pext(occ, Masks[s])); + return unsigned(_pext_u64(occ, Masks[s])); if (Is64Bit) return unsigned(((occ & Masks[s]) * Magics[s]) >> Shifts[s]);