mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 17:16:33 +08:00
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:
@@ -37,8 +37,8 @@ struct SplitPoint {
|
||||
SplitPoint* parent;
|
||||
const Position* pos;
|
||||
Depth depth;
|
||||
bool pvNode;
|
||||
Value beta;
|
||||
int pvNode;
|
||||
int ply;
|
||||
int master;
|
||||
Move threatMove;
|
||||
@@ -79,6 +79,7 @@ struct Thread {
|
||||
bool cutoff_occurred() const;
|
||||
bool is_available_to(int master) const;
|
||||
|
||||
SplitPoint splitPoints[MAX_ACTIVE_SPLIT_POINTS];
|
||||
MaterialInfoTable materialTable;
|
||||
PawnInfoTable pawnTable;
|
||||
int maxPly;
|
||||
@@ -87,7 +88,6 @@ struct Thread {
|
||||
volatile ThreadState state;
|
||||
SplitPoint* volatile splitPoint;
|
||||
volatile int activeSplitPoints;
|
||||
SplitPoint splitPoints[MAX_ACTIVE_SPLIT_POINTS];
|
||||
};
|
||||
|
||||
|
||||
@@ -118,13 +118,13 @@ public:
|
||||
void split(Position& pos, SearchStack* ss, Value* alpha, const Value beta, Value* bestValue,
|
||||
Depth depth, Move threatMove, int moveCount, MovePicker* mp, bool pvNode);
|
||||
private:
|
||||
Thread threads[MAX_THREADS];
|
||||
Lock mpLock;
|
||||
Depth minimumSplitDepth;
|
||||
int maxThreadsPerSplitPoint;
|
||||
bool useSleepingThreads;
|
||||
int activeThreads;
|
||||
bool useSleepingThreads;
|
||||
volatile bool allThreadsShouldExit;
|
||||
Thread threads[MAX_THREADS];
|
||||
};
|
||||
|
||||
extern ThreadsManager Threads;
|
||||
|
||||
Reference in New Issue
Block a user