Rearrange structs to avoid internal padding

Found with gcc -Wpadded gcc option.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2011-07-02 11:01:12 +01:00
parent bc54a44010
commit d15217b953
4 changed files with 13 additions and 14 deletions

View 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]