summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
3901aff)
Without this patch MSVC crashes when compiled
in release mode. It survives and works as
expected in debug mode and with gcc and Intel
compilers.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
+ MovePicker::MovegenPhase PhaseTable[32];
int MainSearchPhaseIndex;
int EvasionsPhaseIndex;
int QsearchWithChecksPhaseIndex;
int MainSearchPhaseIndex;
int EvasionsPhaseIndex;
int QsearchWithChecksPhaseIndex;
-// Static array definition
-MovePicker::MovegenPhase MovePicker::PhaseTable[32];
+MovePicker::MovegenPhase MovePicker::current_move_type() const {
+ return PhaseTable[phaseIndex];
+}
/// MovePicker::init_phase_table() initializes the PhaseTable[],
/// MainSearchPhaseIndex, EvasionPhaseIndex, QsearchWithChecksPhaseIndex
/// MovePicker::init_phase_table() initializes the PhaseTable[],
/// MainSearchPhaseIndex, EvasionPhaseIndex, QsearchWithChecksPhaseIndex
Move ttMove, mateKiller, killer1, killer2;
Bitboard pinned, dc;
MoveStack moves[256], badCaptures[64];
Move ttMove, mateKiller, killer1, killer2;
Bitboard pinned, dc;
MoveStack moves[256], badCaptures[64];
- static MovegenPhase PhaseTable[32];
bool pvNode;
Depth depth;
int phaseIndex;
bool pvNode;
Depth depth;
int phaseIndex;
/// all pieces which can possibly give discovered check. This bitboard is
/// computed by the constructor function.
/// all pieces which can possibly give discovered check. This bitboard is
/// computed by the constructor function.
-inline MovePicker::MovegenPhase MovePicker::current_move_type() const {
- return PhaseTable[phaseIndex];
-}
-
inline Bitboard MovePicker::discovered_check_candidates() const {
return dc;
}
inline Bitboard MovePicker::discovered_check_candidates() const {
return dc;
}