]> git.sesse.net Git - stockfish/commit
Clean up repetitive declarations for see_ge
authorMiguel Lahoz <miguel_lahoz@protonmail.com>
Mon, 27 Mar 2023 16:06:24 +0000 (00:06 +0800)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Wed, 29 Mar 2023 19:43:07 +0000 (21:43 +0200)
commita9c26357deb01c764cd16ef4e61acb4f687cbd77
treeeeac23bec582a78d4fe34aaf8b60817e75d7fb17
parent37160c4b1632245d46d86cec7bd22b76f5a87531
Clean up repetitive declarations for see_ge

The occupied bitboard is only used in one place and is otherwise thrown away.
To simplify use, see_ge function can instead be overloaded.
Repetitive declarations for occupied bitboard can be removed.

Passed non-regression test
https://tests.stockfishchess.org/tests/view/6421c286db43ab2ba6f908eb
LLR: 2.94 (-2.94,2.94) <-1.75,0.25>
Total: 48912 W: 13196 L: 13001 D: 22715
Ptnml(0-2): 146, 5003, 13967, 5190, 150

closes https://github.com/official-stockfish/Stockfish/pull/4469

No functional change.
src/movepick.cpp
src/movepick.h
src/position.cpp
src/position.h
src/search.cpp