- TTEntry *tte = first_entry(posKey);
-
- for (int i = 0; i < 4; i++, tte++)
- if (tte->key() == posKey)
- return tte;
-
- return NULL;
-}
-
-
-/// TranspositionTable::first_entry returns a pointer to the first
-/// entry of a cluster given a position.
-
-inline TTEntry* TranspositionTable::first_entry(const Key posKey) const {
-
- return entries + (int(posKey & (size - 1)) << 2);
-}
-
-/// TranspositionTable::new_search() is called at the beginning of every new
-/// search. It increments the "generation" variable, which is used to
-/// distinguish transposition table entries from previous searches from
-/// entries from the current search.
-
-void TranspositionTable::new_search() {
-
- generation++;
- writes = 0;