+ std::memset(table, 0, (hashMask + ClusterSize) * sizeof(TTEntry));
+}
+
+
+/// TranspositionTable::probe() looks up the current position in the
+/// transposition table. Returns a pointer to the TTEntry or NULL if
+/// position is not found.
+
+const TTEntry* TranspositionTable::probe(const Key key) const {
+
+ const TTEntry* tte = first_entry(key);
+ uint32_t key32 = key >> 32;
+
+ for (unsigned i = 0; i < ClusterSize; ++i, ++tte)
+ if (tte->key() == key32)
+ return tte;
+
+ return NULL;