- // Since SpaceMask[Us] is fully on our half of the board...
- assert(unsigned(safe >> (Us == WHITE ? 32 : 0)) == 0);
-
- // ...count safe + (behind & safe) with a single popcount.
- int bonus = popcount((Us == WHITE ? safe << 32 : safe >> 32) | (behind & safe));