]> git.sesse.net Git - stockfish/blobdiff - src/position.h
Rearrange structs to avoid internal padding
[stockfish] / src / position.h
index 0cc6a0ca7a91fdbc4658bbade5eb763233f13007..d02514feb860b6723c60fc900ddc9208ca568f7f 100644 (file)
@@ -58,9 +58,9 @@ struct StateInfo {
   Score value;
   Value npMaterial[2];
 
-  PieceType capturedType;
   Key key;
   Bitboard checkersBB;
+  PieceType capturedType;
   StateInfo* previous;
 };
 
@@ -256,16 +256,16 @@ private:
   int index[64];               // [square]
 
   // Other info
-  Color sideToMove;
   Key history[MaxGameLength];
   int castleRightsMask[64];    // [square]
   Square castleRookSquare[16]; // [castleRight]
   StateInfo startState;
-  bool chess960;
+  int64_t nodes;
+  Color sideToMove;
   int fullMoves;
   int threadID;
-  int64_t nodes;
   StateInfo* st;
+  int chess960;
 
   // Static variables
   static Score pieceSquareTable[16][64]; // [piece][square]