X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fevaluate.cpp;h=b50a023b557c3aad61691721c638c1df7b6ee68a;hp=95cdaf3b266598caebf698f4093b70947843d2da;hb=e0a8b364364c2a89c82d4f57fd3419ed5f1f872e;hpb=4c58db0dab8e80cf8e57beef6ed9d3a8e2c56795 diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 95cdaf3b..b50a023b 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -110,7 +110,7 @@ namespace { // Pointers table to access mobility tables through piece type const Score* MobilityBonus[8] = { 0, 0, KnightMobilityBonus, BishopMobilityBonus, - RookMobilityBonus, QueenMobilityBonus, 0, 0 }; + RookMobilityBonus, QueenMobilityBonus, 0, 0 }; // Outpost bonuses for knights and bishops, indexed by square (from white's // point of view). @@ -140,7 +140,7 @@ namespace { // ThreatBonus[][] contains bonus according to which piece type // attacks which one. - #define Z make_score(0, 0) + #define Z S(0, 0) const Score ThreatBonus[8][8] = { { Z, Z, Z, Z, Z, Z, Z, Z }, // not used @@ -251,9 +251,10 @@ namespace { // in init_safety(). Value SafetyTable[100]; - // Pawn and material hash tables, indexed by the current thread id - PawnInfoTable* PawnTable[8] = {0, 0, 0, 0, 0, 0, 0, 0}; - MaterialInfoTable* MaterialTable[8] = {0, 0, 0, 0, 0, 0, 0, 0}; + // Pawn and material hash tables, indexed by the current thread id. + // Note that they will be initialized at 0 being global variables. + MaterialInfoTable* MaterialTable[THREAD_MAX]; + PawnInfoTable* PawnTable[THREAD_MAX]; // Sizes of pawn and material hash tables const int PawnTableSize = 16384;