#include "../movegen.h"
#include "../bitboard.h"
#include "../search.h"
-#include "../bitcount.h"
#include "tbprobe.h"
#include "tbcore.h"
color = !mirror ? WHITE : BLACK;
for (pt = KING; pt >= PAWN; --pt)
- for (i = popcount<Max15>(pos.pieces(color, pt)); i > 0; i--)
+ for (i = popcount(pos.pieces(color, pt)); i > 0; i--)
*str++ = pchr[6 - pt];
*str++ = 'v';
color = ~color;
for (pt = KING; pt >= PAWN; --pt)
- for (i = popcount<Max15>(pos.pieces(color, pt)); i > 0; i--)
+ for (i = popcount(pos.pieces(color, pt)); i > 0; i--)
*str++ = pchr[6 - pt];
*str++ = 0;
}
color = !mirror ? WHITE : BLACK;
for (pt = PAWN; pt <= KING; ++pt)
- for (i = popcount<Max15>(pos.pieces(color, pt)); i > 0; i--)
+ for (i = popcount(pos.pieces(color, pt)); i > 0; i--)
key ^= Zobrist::psq[WHITE][pt][i - 1];
color = ~color;
for (pt = PAWN; pt <= KING; ++pt)
- for (i = popcount<Max15>(pos.pieces(color, pt)); i > 0; i--)
+ for (i = popcount(pos.pieces(color, pt)); i > 0; i--)
key ^= Zobrist::psq[BLACK][pt][i - 1];
return key;
if (v1 >= 0)
v = v1;
} else if (v < 0) {
- if (v1 >= 0 || v1 < 100)
+ if (v1 >= 0 || v1 < -100)
v = v1;
} else if (v > 100) {
if (v1 > 0)
//
// A return value false indicates that not all probes were successful and that
// no moves were filtered out.
-bool Tablebases::root_probe(Position& pos, Search::RootMoveVector& rootMoves, Value& score)
+bool Tablebases::root_probe(Position& pos, Search::RootMoves& rootMoves, Value& score)
{
int success;
//
// A return value false indicates that not all probes were successful and that
// no moves were filtered out.
-bool Tablebases::root_probe_wdl(Position& pos, Search::RootMoveVector& rootMoves, Value& score)
+bool Tablebases::root_probe_wdl(Position& pos, Search::RootMoves& rootMoves, Value& score)
{
int success;