]> git.sesse.net Git - stockfish/blobdiff - src/position.h
Reorder data layout and optimize access patern
[stockfish] / src / position.h
index a051ec382f49fe15a0d3ee55238e97a48c1158ac..4f6f2d5383b72c861e56db32e27a22110e37014e 100644 (file)
@@ -298,12 +298,12 @@ private:
   template<GamePhase> Value compute_value() const;
   Value compute_non_pawn_material(Color c) const;
 
-  // Bitboards
-  Bitboard byColorBB[2], byTypeBB[8];
-
   // Board
   Piece board[64];
 
+  // Bitboards
+  Bitboard byTypeBB[8], byColorBB[2];
+
   // Piece counts
   int pieceCount[2][8]; // [color][pieceType]