]> git.sesse.net Git - stockfish/blobdiff - src/tt.h
TranspositionTable: add first_entry() helper
[stockfish] / src / tt.h
index f39d37dd4e664b3e865d7baa592fb20540eaae3e..4ca344123e5f070ec0a7c687d8cc45fbd05ddd67 100644 (file)
--- a/src/tt.h
+++ b/src/tt.h
@@ -6,12 +6,12 @@
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.
-  
+
   Glaurung is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
   Glaurung is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
-  
+
   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
@@ -47,7 +47,7 @@ public:
   ValueType type() const;
   int generation() const;
 
   ValueType type() const;
   int generation() const;
 
-private:  
+private:
   Key key_;
   uint32_t data;
   int16_t value_;
   Key key_;
   uint32_t data;
   int16_t value_;
@@ -74,6 +74,8 @@ public:
   int full();
 
 private:
   int full();
 
 private:
+  TTEntry* first_entry(const Position &pos) const;
+
   unsigned size;
   int writes;
   TTEntry* entries;
   unsigned size;
   int writes;
   TTEntry* entries;