mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-19 16:46:30 +08:00
Use aligned prefetch address
Prefetch always form a chache line boundary. It seems that if prefetch address is not cache line aligned then performance is adversely impacted. Hopefully we will resuse that 32 bits of padding for something useful in the future. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -34,7 +34,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// This is the number of TTEntry slots for each position
|
// This is the number of TTEntry slots for each position
|
||||||
static const int ClusterSize = 5;
|
static const int ClusterSize = 4;
|
||||||
|
|
||||||
// The main transposition table
|
// The main transposition table
|
||||||
TranspositionTable TT;
|
TranspositionTable TT;
|
||||||
|
|||||||
1
src/tt.h
1
src/tt.h
@@ -70,6 +70,7 @@ private:
|
|||||||
uint32_t data;
|
uint32_t data;
|
||||||
int16_t value_;
|
int16_t value_;
|
||||||
int16_t depth_;
|
int16_t depth_;
|
||||||
|
uint32_t pad_to_16_bytes;
|
||||||
};
|
};
|
||||||
|
|
||||||
/// The transposition table class. This is basically just a huge array
|
/// The transposition table class. This is basically just a huge array
|
||||||
|
|||||||
Reference in New Issue
Block a user