Skip to content

Commit 0d28f4a

Browse files
Add DroidFish modifications to Stockfish
1 parent 1a81595 commit 0d28f4a

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

DroidFishApp/src/main/cpp/stockfish/evaluate.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ namespace Eval {
113113
currentEvalFileName = eval_file;
114114
}
115115
}
116+
if (currentEvalFileName != eval_file)
117+
currentEvalFileName = "";
116118
}
117119

118120
/// NNUE::verify() verifies that the last net used was loaded successfully

DroidFishApp/src/main/cpp/stockfish/syzygy/tbprobe.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,8 @@ TBTables TBTables;
471471
// If the corresponding file exists two new objects TBTable<WDL> and TBTable<DTZ>
472472
// are created and added to the lists and hash table. Called at init time.
473473
void TBTables::add(const std::vector<PieceType>& pieces) {
474+
if (sizeof(char*) < 8 && pieces.size() >= 6)
475+
return; // Not enough address space to support 6-men TB on 32-bit OS
474476

475477
std::string code;
476478

0 commit comments

Comments
 (0)