We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 281472e commit 48f38f3Copy full SHA for 48f38f3
src/endgame.cpp
@@ -72,7 +72,7 @@ namespace {
72
assert(pos.count<PAWN>(strongSide) == 1);
73
74
if (file_of(pos.list<PAWN>(strongSide)[0]) >= FILE_E)
75
- sq = mirror(sq);
+ sq = Square(sq ^ 7); // Mirror SQ_H1 -> SQ_A1
76
77
if (strongSide == BLACK)
78
sq = ~sq;
src/types.h
@@ -371,10 +371,6 @@ inline Rank rank_of(Square s) {
371
return Rank(s >> 3);
372
}
373
374
-inline Square mirror(Square s) {
375
- return Square(s ^ 7); // Horizontal flip SQ_A1 -> SQ_H1
376
-}
377
-
378
inline Square relative_square(Color c, Square s) {
379
return Square(s ^ (c * 56));
380
0 commit comments