]> git.sesse.net Git - stockfish/blobdiff - src/pawns.cpp
Micro-optimise dangerous condition
[stockfish] / src / pawns.cpp
index 0bd99f9b0e6d9058f9f9e49b6efd21cced6416a6..04ae01530e44c7611680fa0d2f05a16dd810221e 100644 (file)
@@ -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<Color Us>
 Score Entry::update_safety(const Position& pos, Square ksq) {