]> git.sesse.net Git - stockfish/commit
Small speedup in futility_move_count
authorGiacomo Lorenzetti <g.lorenz9@protonmail.com>
Sun, 22 May 2022 10:47:30 +0000 (12:47 +0200)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Sun, 29 May 2022 16:54:19 +0000 (18:54 +0200)
commit1a168201bd8424da4cea384ee4c03973b2ccf0ca
tree35f15cc99d10d81645245e18a196371194321a7b
parent48df0754bc87f099c4b29ff1b2f2629ddacd1c95
Small speedup in futility_move_count

The speedup is around 0.25% using gcc 11.3.1 (bmi2, nnue bench, depth 16
and 23) while it is neutral using clang (same conditions).

According to `perf` that integer division was one of the most time-consuming
instructions in search (gcc disassembly).

Passed STC:
https://tests.stockfishchess.org/tests/view/628a17fe24a074e5cd59b3aa
LLR: 2.94 (-2.94,2.94) <0.00,2.50>
Total: 22232 W: 5992 L: 5751 D: 10489
Ptnml(0-2): 88, 2235, 6218, 2498, 77

yellow LTC:
https://tests.stockfishchess.org/tests/view/628a35d7ccae0450e35106f7
LLR: -2.95 (-2.94,2.94) <0.50,3.00>
Total: 320168 W: 85853 L: 85326 D: 148989
Ptnml(0-2): 185, 29698, 99821, 30165, 215

This patch also suggests that UHO STC is sensible to small speedups (< 0.50%).

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

No functional change
src/search.cpp