]> git.sesse.net Git - stockfish/commit
Introduce do_move_bb() to update bitboards after a move
authorMarco Costalba <mcostalba@gmail.com>
Thu, 21 May 2009 08:55:23 +0000 (10:55 +0200)
committerMarco Costalba <mcostalba@gmail.com>
Thu, 21 May 2009 08:55:23 +0000 (10:55 +0200)
commit3e40bd0648ab69c04e37da50fd3f3d4beb072df2
treec668a64aeba570cb9c5dc006aa56d9e05d7588ca
parent595c7d75a2d8c6bc6beade1aa0c50fcf79083661
Introduce do_move_bb() to update bitboards after a move

Avoid a clear_bit() + set_bit() sequence but update bitboards
with only one xor instructions.

This is faster and simplifies the code.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/bitboard.h
src/position.cpp