+inline int PawnInfo::kingShelter(Color c, Square ksq) const {
+ return (kingSquares[c] == ksq ? kingShelters[c] : -1);
+}
+
+inline void PawnInfo::setKingShelter(Color c, Square ksq, int value) {
+ kingSquares[c] = ksq;
+ kingShelters[c] = (int16_t)value;
+}
+