io-chess
UCI chess engine
Loading...
Searching...
No Matches
EvalEntry Struct Reference

16-byte entry dedicated exclusively to caching static evaluations. More...

#include <TT.h>

Public Member Functions

void store (uint64_t key, int16_t score)
 Stores the static evaluation atomically.
bool probe (uint64_t key, int16_t &score) const
 Probes for a cached static evaluation.

Public Attributes

std::atomic< uint64_t > payload
 Packed static evaluation score.
std::atomic< uint64_t > signature
 Checksum signature.

Detailed Description

16-byte entry dedicated exclusively to caching static evaluations.

Helps offload the expensive neural network evaluations without evicting valuable search trees. Uses the same XOR checksum mechanism.

Member Function Documentation

◆ probe()

bool EvalEntry::probe ( uint64_t key,
int16_t & score ) const
inline

Probes for a cached static evaluation.

Here is the caller graph for this function:

◆ store()

void EvalEntry::store ( uint64_t key,
int16_t score )
inline

Stores the static evaluation atomically.

Member Data Documentation

◆ payload

std::atomic<uint64_t> EvalEntry::payload

Packed static evaluation score.

◆ signature

std::atomic<uint64_t> EvalEntry::signature

Checksum signature.


The documentation for this struct was generated from the following file:
  • engine/src/search/TT.h