mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-19 16:46:30 +08:00
Enable prefetch also for gcc
This fix a compile error under Linux with gcc when there aren't the intel dev libraries. Also simplify the previous patch moving TT definition from search.cpp to tt.cpp so to avoid using passing a pointer to TT to the current position. Finally simplify do_move(), now we miss a prefetch in the rare case of setting an en-passant square but code is much cleaner and performance penalty is almost zero. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -98,7 +98,6 @@ struct StateInfo {
|
||||
StateInfo* previous;
|
||||
};
|
||||
|
||||
class TranspositionTable;
|
||||
|
||||
/// The position data structure. A position consists of the following data:
|
||||
///
|
||||
@@ -259,7 +258,6 @@ public:
|
||||
void undo_move(Move m);
|
||||
void do_null_move(StateInfo& st);
|
||||
void undo_null_move();
|
||||
void setTranspositionTable(TranspositionTable* tt);
|
||||
|
||||
// Static exchange evaluation
|
||||
int see(Square from, Square to) const;
|
||||
@@ -358,7 +356,6 @@ private:
|
||||
File initialKFile, initialKRFile, initialQRFile;
|
||||
StateInfo startState;
|
||||
StateInfo* st;
|
||||
TranspositionTable* TT;
|
||||
|
||||
// Static variables
|
||||
static int castleRightsMask[64];
|
||||
|
||||
Reference in New Issue
Block a user