]> git.sesse.net Git - stockfish/blobdiff - src/bitboard.h
Add bonuses for Minors attacking enemy pieces(except pawns) even when they are protec...
[stockfish] / src / bitboard.h
index cd6c280c8c444d9e349c1895b4c792ef8325d77d..9814268327afdd9c269d728077d1f82770035c87 100644 (file)
@@ -23,8 +23,6 @@
 
 #include "types.h"
 
-extern Bitboard pext(Bitboard b, Bitboard mask);
-
 namespace Bitboards {
 
 void init();
@@ -244,7 +242,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]);