X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftt.h;h=32b4036e39dea085974410867b7212facfc6c625;hp=4df015c07cbc34c5f847f4a91202b64b79a90b3f;hb=cb2111f0b62afec5fd977e1dd4ca5843bd006956;hpb=05cb58f4fc585bb7776acfda2eb761a27959d6e5 diff --git a/src/tt.h b/src/tt.h index 4df015c0..32b4036e 100644 --- a/src/tt.h +++ b/src/tt.h @@ -81,11 +81,14 @@ class TranspositionTable { char padding[2]; // Align to the cache line size }; + static_assert(sizeof(Cluster) == CacheLineSize / 2, "Cluster size incorrect"); + public: ~TranspositionTable() { free(mem); } void new_search() { generation8 += 4; } // Lower 2 bits are used by Bound uint8_t generation() const { return generation8; } TTEntry* probe(const Key key, bool& found) const; + int hashfull() const; void resize(size_t mbSize); void clear();