Convert handling of tt moves and killers to standard form

Use the same way of loop along the move list used for
the others move kinds so to be consistent in get_next_move()

And a bit of the usual clean up too, but just a bit.

It is even a bit (+0.3%) faster now. ;-)

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2009-08-29 08:02:30 +01:00
parent ac65b14d30
commit 9ab84a8165
2 changed files with 40 additions and 36 deletions

View File

@@ -79,12 +79,12 @@ private:
const Position& pos;
const History& H;
Move ttMoves[2], killers[2];
const MovegenPhaseT* phasePtr;
int phase, movesPicked, numOfBadCaptures;
MoveStack ttMoves[2], killers[2];
bool finished;
Bitboard dc, pinned;
int numOfBadCaptures, phase;
const MovegenPhaseT* phasePtr;
MoveStack *curMove, *lastMove;
Bitboard dc, pinned;
MoveStack moves[256], badCaptures[64];
};