]> git.sesse.net Git - stockfish/blobdiff - src/position.h
Micro optimize copy of new state in do_move()
[stockfish] / src / position.h
index bd59b5c959d624c90c66a63f943a04f33d19fd0b..8e29eb13458390ff2d4a405ffd61cebd794f46ee 100644 (file)
@@ -79,14 +79,15 @@ enum CastleRights {
 /// must be passed as a parameter.
 
 struct StateInfo {
 /// must be passed as a parameter.
 
 struct StateInfo {
-  Bitboard checkersBB;
   Key key, pawnKey, materialKey;
   int castleRights, rule50;
   Square epSquare;
   Value mgValue, egValue;
   Key key, pawnKey, materialKey;
   int castleRights, rule50;
   Square epSquare;
   Value mgValue, egValue;
+
   PieceType capture;
   PieceType capture;
-  StateInfo* previous;
+  Bitboard checkersBB;
   Move lastMove;
   Move lastMove;
+  StateInfo* previous;
 };
 
 
 };