mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 17:46:26 +08:00
TranspositionTable: add first_entry() helper
An inline function to retrieve the first TT entry given a position. Plus usual whitespace noise. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
8
src/tt.h
8
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.
|
||||
|
||||
|
||||
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/>.
|
||||
*/
|
||||
@@ -47,7 +47,7 @@ public:
|
||||
ValueType type() const;
|
||||
int generation() const;
|
||||
|
||||
private:
|
||||
private:
|
||||
Key key_;
|
||||
uint32_t data;
|
||||
int16_t value_;
|
||||
@@ -74,6 +74,8 @@ public:
|
||||
int full();
|
||||
|
||||
private:
|
||||
TTEntry* first_entry(const Position &pos) const;
|
||||
|
||||
unsigned size;
|
||||
int writes;
|
||||
TTEntry* entries;
|
||||
|
||||
Reference in New Issue
Block a user