@@ -61,8 +61,8 @@ namespace {
6161 // Different node types, used as a template parameter
6262 enum NodeType { NonPV, PV };
6363
64- constexpr uint64_t ttHitAverageWindow = 4096 ;
65- constexpr uint64_t ttHitAverageResolution = 1024 ;
64+ constexpr uint64_t TtHitAverageWindow = 4096 ;
65+ constexpr uint64_t TtHitAverageResolution = 1024 ;
6666
6767 // Razor and futility margins
6868 constexpr int RazorMargin = 531 ;
@@ -378,7 +378,7 @@ void Thread::search() {
378378 multiPV = std::max (multiPV, (size_t )4 );
379379
380380 multiPV = std::min (multiPV, rootMoves.size ());
381- ttHitAverage = ttHitAverageWindow * ttHitAverageResolution / 2 ;
381+ ttHitAverage = TtHitAverageWindow * TtHitAverageResolution / 2 ;
382382
383383 int ct = int (Options[" Contempt" ]) * PawnValueEg / 100 ; // From centipawns
384384
@@ -702,8 +702,8 @@ namespace {
702702 thisThread->lowPlyHistory [ss->ply - 1 ][from_to ((ss-1 )->currentMove )] << stat_bonus (depth - 5 );
703703
704704 // thisThread->ttHitAverage can be used to approximate the running average of ttHit
705- thisThread->ttHitAverage = (ttHitAverageWindow - 1 ) * thisThread->ttHitAverage / ttHitAverageWindow
706- + ttHitAverageResolution * ttHit;
705+ thisThread->ttHitAverage = (TtHitAverageWindow - 1 ) * thisThread->ttHitAverage / TtHitAverageWindow
706+ + TtHitAverageResolution * ttHit;
707707
708708 // At non-PV nodes we check for an early TT cutoff
709709 if ( !PvNode
@@ -1170,12 +1170,12 @@ namespace {
11701170 || moveCountPruning
11711171 || ss->staticEval + PieceValue[EG][pos.captured_piece ()] <= alpha
11721172 || cutNode
1173- || thisThread->ttHitAverage < 375 * ttHitAverageResolution * ttHitAverageWindow / 1024 ))
1173+ || thisThread->ttHitAverage < 375 * TtHitAverageResolution * TtHitAverageWindow / 1024 ))
11741174 {
11751175 Depth r = reduction (improving, depth, moveCount);
11761176
11771177 // Decrease reduction if the ttHit running average is large
1178- if (thisThread->ttHitAverage > 500 * ttHitAverageResolution * ttHitAverageWindow / 1024 )
1178+ if (thisThread->ttHitAverage > 500 * TtHitAverageResolution * TtHitAverageWindow / 1024 )
11791179 r--;
11801180
11811181 // Reduction if other threads are searching this position.
0 commit comments