mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-19 00:26:33 +08:00
A move needs 17 bits not 19
Fix a bug in the way a move is stored and read in a TT entry. We use a mask of 19 bits insteaad of 17 so that the last two bits in the TT entry end up to be random data. This bug will bite us when we will use these two until now unused bits. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -206,5 +206,5 @@ TTEntry::TTEntry() {
|
||||
|
||||
TTEntry::TTEntry(Key k, Value v, ValueType t, Depth d, Move m,
|
||||
int generation) :
|
||||
key_ (k), data((m & 0x7FFFF) | (t << 20) | (generation << 23)),
|
||||
key_ (k), data((m & 0x1FFFF) | (t << 20) | (generation << 23)),
|
||||
value_(int16_t(v)), depth_(int16_t(d)) {}
|
||||
|
||||
Reference in New Issue
Block a user