Merge official-stockfish/master
authorFabian Fichter <ianfab@users.noreply.github.com>
Mon, 1 Jun 2020 08:22:41 +0000 (10:22 +0200)
committerFabian Fichter <ianfab@users.noreply.github.com>
Mon, 1 Jun 2020 08:22:41 +0000 (10:22 +0200)
No functional change.

1  2 
src/misc.cpp
src/tt.cpp
src/tt.h

diff --cc src/misc.cpp
Simple merge
diff --cc src/tt.cpp
Simple merge
diff --cc 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); }