From: Fabian Fichter Date: Mon, 1 Jun 2020 08:22:41 +0000 (+0200) Subject: Merge official-stockfish/master X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=c76778a9ebc336149bf2e62b1e595981f5963f9a;p=fairystockfish.git Merge official-stockfish/master No functional change. --- c76778a9ebc336149bf2e62b1e595981f5963f9a diff --cc src/tt.h index 40028c6,142afd9..2cb349b --- a/src/tt.h +++ b/src/tt.h @@@ -66,15 -65,14 +65,14 @@@ private class TranspositionTable { - static constexpr int CacheLineSize = 64; - static constexpr int ClusterSize = 3; + static constexpr int ClusterSize = 5; struct Cluster { TTEntry entry[ClusterSize]; - char padding[4]; // Align to a divisor of the cache line size - char padding[2]; // Pad to 32 bytes ++ char padding[4]; // Pad to 64 bytes }; - static_assert(CacheLineSize % sizeof(Cluster) == 0, "Cluster size incorrect"); - static_assert(sizeof(Cluster) == 32, "Unexpected Cluster size"); ++ static_assert(sizeof(Cluster) == 64, "Unexpected Cluster size"); public: ~TranspositionTable() { free(mem); }