Make enums unsigned

Speed up by using unsigned enums.

Passed STC:
LLR: 2.98 (-2.94,2.94) <0.00,2.00>
Total: 49248 W: 12894 L: 12568 D: 23786
Ptnml(0-2): 119, 5353, 13397, 5593, 16
https://tests.stockfishchess.org/tests/view/695e3e5002d0182a589fe965

closes https://github.com/official-stockfish/Stockfish/pull/6532

No functional change
This commit is contained in:
KazApps
2026-01-10 16:06:18 +01:00
committed by Joost VandeVondele
parent 9b8c5c9f75
commit d852a9195e
6 changed files with 31 additions and 21 deletions
+4 -1
View File
@@ -49,12 +49,15 @@ std::string Bitboards::pretty(Bitboard b) {
std::string s = "+---+---+---+---+---+---+---+---+\n";
for (Rank r = RANK_8; r >= RANK_1; --r)
for (Rank r = RANK_8;; --r)
{
for (File f = FILE_A; f <= FILE_H; ++f)
s += b & make_square(f, r) ? "| X " : "| ";
s += "| " + std::to_string(1 + r) + "\n+---+---+---+---+---+---+---+---+\n";
if (r == RANK_1)
break;
}
s += " a b c d e f g h\n";