mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-22 01:56:58 +08:00
Increase TT size limit to 8 GB
We had an overflow due to use an integer for hash size, now we use a size_t as we should, so we can increase to an higher limit. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
4
src/tt.h
4
src/tt.h
@@ -95,7 +95,7 @@ class TranspositionTable {
|
||||
public:
|
||||
TranspositionTable();
|
||||
~TranspositionTable();
|
||||
void set_size(unsigned mbSize);
|
||||
void set_size(size_t mbSize);
|
||||
void clear();
|
||||
void store(const Key posKey, Value v, ValueType type, Depth d, Move m);
|
||||
TTEntry* retrieve(const Key posKey) const;
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user