1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 08:43: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:
Marco Costalba 2009-08-10 09:35:46 +02:00
parent 55c46b2399
commit 60b5da4cc8
2 changed files with 2 additions and 1 deletions

View file

@ -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;

View file

@ -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