summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
e3b0327)
On Intel, perhaps due to 'lea' instruction this way of
zeroing the lsb of *b seems faster than a shift+negate.
On perft (where any speed difference is magnified) I
got a 6% speed up on my Intel i5 64bit.
Suggested by Hongzhi Cheng.
No functional change.
FORCE_INLINE Square pop_lsb(Bitboard* b) {
const Square s = lsb(*b);
FORCE_INLINE Square pop_lsb(Bitboard* b) {
const Square s = lsb(*b);