mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 16:53:09 +00: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:
parent
55c46b2399
commit
60b5da4cc8
2 changed files with 2 additions and 1 deletions
|
@ -34,7 +34,7 @@
|
|||
#endif
|
||||
|
||||
// This is the number of TTEntry slots for each position
|
||||
static const int ClusterSize = 5;
|
||||
static const int ClusterSize = 4;
|
||||
|
||||
// The main transposition table
|
||||
TranspositionTable TT;
|
||||
|
|
1
src/tt.h
1
src/tt.h
|
@ -70,6 +70,7 @@ private:
|
|||
uint32_t data;
|
||||
int16_t value_;
|
||||
int16_t depth_;
|
||||
uint32_t pad_to_16_bytes;
|
||||
};
|
||||
|
||||
/// The transposition table class. This is basically just a huge array
|
||||
|
|
Loading…
Add table
Reference in a new issue