]> git.sesse.net Git - stockfish/commit
Small update to pop_1st_bit()
authorMarco Costalba <mcostalba@gmail.com>
Tue, 10 Nov 2009 07:55:52 +0000 (08:55 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Tue, 10 Nov 2009 16:18:00 +0000 (17:18 +0100)
commit8a116ce6910529457a2b82dfa8606cce36415852
tree02aa0bdb17bec8e38e62987ef3083059ee8e11b6
parent16626dd65569678c75f066ba2736377333589497
Small update to pop_1st_bit()

Avoid a 64 bit load using a pointer. It saves a couple of push/pop
instructions so advantage is only theorical, but anyway we use
pop_1st_bit() as a reference implementation for 32 bit systems so
we keep it more for documentation purposes then for other reasons.

Idea of pointer is of Eric Mullins.

No functional change.

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