Revert "storing shorter hashKey in TTEntry | bench 1132682"

This reverts commit f83f3a5b8f.
This commit is contained in:
rektdie committed 2025-05-10 23:52:05 +02:00
1 parent f83f3a5b8f
commit a52cfbf839
3 files changed
+5 -5

No files matched your search

+2 -2
View File
@@ -3,7 +3,7 @@
SearchResults TTable::ReadEntry(U64 &hashKey, int depth, int alpha, int beta) {
TTEntry *current = &table[hashKey % table.size()];
if (current->hashKey == static_cast<uint16_t>(hashKey)) {
if (current->hashKey == hashKey) {
if (current->depth >= depth) {
if (current->nodeType == PV){
return {current->score, current->bestMove};
@@ -22,7 +22,7 @@ SearchResults TTable::ReadEntry(U64 &hashKey, int depth, int alpha, int beta) {
void TTable::WriteEntry(U64 &hashKey, int depth, int score, int nodeType, Move bestMove) {
TTEntry *current = &table[hashKey % table.size()];
current->hashKey = static_cast<uint16_t>(hashKey);
current->hashKey = hashKey;
current->nodeType = nodeType;
current->score = score;
current->depth = depth;