]> git.sesse.net Git - stockfish/commit - src/movegen.cpp
Use reference instead of pointer for pop_lsb() signature
authorGuy Vreuls <guyvreuls@gmail.com>
Sat, 13 Mar 2021 16:40:07 +0000 (17:40 +0100)
committerStéphane Nicolet <cassio@free.fr>
Fri, 19 Mar 2021 19:28:57 +0000 (20:28 +0100)
commitec42154ef2569a58dae2164e328d5bbffcb2aee9
treefe401809234466dbeb4815a56b3947228f18d191
parentace9632c6713e346ccca73b3e2edc046c1f5527c
Use reference instead of pointer for pop_lsb() signature

This patch changes the pop_lsb() signature from Square pop_lsb(Bitboard*) to
Square pop_lsb(Bitboard&). This is more idomatic for C++ style signatures.

Passed a non-regression STC test:
LLR: 2.93 (-2.94,2.94) {-1.25,0.25}
Total: 21280 W: 1928 L: 1847 D: 17505
Ptnml(0-2): 71, 1427, 7558, 1518, 66
https://tests.stockfishchess.org/tests/view/6053a1e22433018de7a38e2f

We have verified that the generated binary is identical on gcc-10.

Closes https://github.com/official-stockfish/Stockfish/pull/3404

No functional change.
src/bitbase.cpp
src/bitboard.h
src/evaluate.cpp
src/movegen.cpp
src/nnue/features/half_kp.cpp
src/pawns.cpp
src/position.cpp
src/syzygy/tbprobe.cpp