From 60b5da4cc8639d907d0beeee67055271b464779f Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Mon, 10 Aug 2009 09:35:46 +0200 Subject: [PATCH] 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 --- src/tt.cpp | 2 +- src/tt.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tt.cpp b/src/tt.cpp index 862842f2..770e38b7 100644 --- a/src/tt.cpp +++ b/src/tt.cpp @@ -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; diff --git a/src/tt.h b/src/tt.h index 0b7ccbe8..e838b090 100644 --- a/src/tt.h +++ b/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 -- 2.39.2