summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
ed0fb0b)
This could be a limit on some platforms (as it seems
to be in Native Client). Patch from a SF fork on github:
https://github.com/ccherng/Stockfish/commit/
47374afd6fdfabd9de183a7a67d645daad45fb21
No functional change.
void Bitbases::init_kpk() {
void Bitbases::init_kpk() {
+ Result* db = new Result[IndexMax]; // Avoid to hit stack limit on some platforms
KPKPosition pos;
int idx, bit, repeat = 1;
KPKPosition pos;
int idx, bit, repeat = 1;
for (bit = 0; bit < 32; bit++)
if (db[32 * idx + bit] == WIN)
KPKBitbase[idx] |= 1 << bit;
for (bit = 0; bit < 32; bit++)
if (db[32 * idx + bit] == WIN)
KPKBitbase[idx] |= 1 << bit;