16-byte Transposition Table entry for search results.
More...
#include <TT.h>
|
| bool | probe (uint64_t key, uint64_t &out_data) const |
| | Probes the entry to safely retrieve data if the key matches.
|
| void | save (uint64_t key, int16_t score, int16_t sEval, uint8_t depth, Bound bound, uint16_t move, uint8_t age) |
| | Atomically stores search data into the entry.
|
|
| uint64_t | data |
| | Packed search data.
|
| uint64_t | signature |
| | Checksum signature (Key ^ Data).
|
16-byte Transposition Table entry for search results.
Uses a lockless XOR signature approach to detect data tearing during concurrent reads and writes. Layout: [Move:16][Score:16][StaticEval:16][Depth:8][Bound:3][Age:5] = 64 bits.
◆ getAge()
| uint8_t TTEntry::getAge |
( |
uint64_t | d | ) |
|
|
inlinestatic |
◆ getBound()
| Bound TTEntry::getBound |
( |
uint64_t | d | ) |
|
|
inlinestatic |
◆ getDepth()
| uint8_t TTEntry::getDepth |
( |
uint64_t | d | ) |
|
|
inlinestatic |
◆ getMove()
| uint16_t TTEntry::getMove |
( |
uint64_t | d | ) |
|
|
inlinestatic |
◆ getScore()
| int16_t TTEntry::getScore |
( |
uint64_t | d | ) |
|
|
inlinestatic |
◆ getStaticEval()
| int16_t TTEntry::getStaticEval |
( |
uint64_t | d | ) |
|
|
inlinestatic |
◆ probe()
| bool TTEntry::probe |
( |
uint64_t | key, |
|
|
uint64_t & | out_data ) const |
|
inline |
Probes the entry to safely retrieve data if the key matches.
- Parameters
-
| key | The 64-bit Zobrist key of the position. |
| out_data | Output parameter for the packed data if successful. |
- Returns
- True if the entry belongs to the key and is not torn.
◆ save()
| void TTEntry::save |
( |
uint64_t | key, |
|
|
int16_t | score, |
|
|
int16_t | sEval, |
|
|
uint8_t | depth, |
|
|
Bound | bound, |
|
|
uint16_t | move, |
|
|
uint8_t | age ) |
|
inline |
Atomically stores search data into the entry.
- Parameters
-
| key | 64-bit Zobrist key. |
| score | Minimax score. |
| sEval | Static evaluation score. |
| depth | Remaining search depth. |
| bound | Score bound type. |
| move | Best move found. |
| age | Search generation age. |
◆ data
◆ signature
| uint64_t TTEntry::signature |
Checksum signature (Key ^ Data).
The documentation for this struct was generated from the following file: