X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fpawns.cpp;h=04ae01530e44c7611680fa0d2f05a16dd810221e;hp=0bd99f9b0e6d9058f9f9e49b6efd21cced6416a6;hb=f026517e5ee4db8dca5eb2bfd9ce7078a9d39725;hpb=f99cb3dc27719021e126690b7fd5aa5f43663ed8 diff --git a/src/pawns.cpp b/src/pawns.cpp index 0bd99f9b..04ae0153 100644 --- a/src/pawns.cpp +++ b/src/pawns.cpp @@ -188,7 +188,7 @@ namespace { namespace Pawns { -/// init() initializes some tables by formula instead of hard-code their values +/// init() initializes some tables by formula instead of hard-coding their values void init() { @@ -252,8 +252,9 @@ Value Entry::shelter_storm(const Position& pos, Square ksq) { } -/// Entry::update_safety() calculates and caches a bonus for king safety. It is -/// called only when king square changes, about 20% of total king_safety() calls. +/// Entry::update_safety() calculates and caches a bonus for king safety. +/// It is called only when king square changes, which is about 20% of total +/// king_safety() calls. template Score Entry::update_safety(const Position& pos, Square ksq) {