mirror of
https://github.com/sockspls/badfish
synced 2025-07-11 19:49:14 +00:00
Extend maximum hash size to 8 GB
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
e0a8b36436
commit
647b79b556
3 changed files with 4 additions and 4 deletions
|
@ -55,9 +55,9 @@ TranspositionTable::~TranspositionTable() {
|
|||
|
||||
void TranspositionTable::set_size(unsigned mbSize) {
|
||||
|
||||
assert(mbSize >= 4 && mbSize <= 2048);
|
||||
assert(mbSize >= 4 && mbSize <= 8192);
|
||||
|
||||
unsigned newSize = 1024;
|
||||
size_t newSize = 1024;
|
||||
|
||||
// We store a cluster of ClusterSize number of TTEntry for each position
|
||||
// and newSize is the maximum number of storable positions.
|
||||
|
|
2
src/tt.h
2
src/tt.h
|
@ -114,7 +114,7 @@ private:
|
|||
unsigned writes; // heavy SMP read/write access here
|
||||
unsigned char pad_after[64];
|
||||
|
||||
unsigned size;
|
||||
size_t size;
|
||||
TTCluster* entries;
|
||||
uint8_t generation;
|
||||
};
|
||||
|
|
|
@ -123,7 +123,7 @@ namespace {
|
|||
o["Minimum Split Depth"] = Option(4, 4, 7);
|
||||
o["Maximum Number of Threads per Split Point"] = Option(5, 4, 8);
|
||||
o["Threads"] = Option(1, 1, THREAD_MAX);
|
||||
o["Hash"] = Option(32, 4, 2048);
|
||||
o["Hash"] = Option(32, 4, 8192);
|
||||
o["Clear Hash"] = Option(false, BUTTON);
|
||||
o["New Game"] = Option(false, BUTTON);
|
||||
o["Ponder"] = Option(true);
|
||||
|
|
Loading…
Add table
Reference in a new issue