]> git.sesse.net Git - stockfish/commitdiff
Refactor bonus and penalty calculation (#917)
authorJoost VandeVondele <Joost.VandeVondele@gmail.com>
Mon, 5 Dec 2016 17:58:12 +0000 (18:58 +0100)
committerMarco Costalba <mcostalba@users.noreply.github.com>
Mon, 5 Dec 2016 17:58:12 +0000 (18:58 +0100)
* Refactor bonus and penalty calculation

Compute common terms in a helper function.

No functional change.

* Further refactoring

Remove some parenthesis that are now useless.
Define prevSq once, use repeatedly.

No functional change.

bench: 5884767 (bench of previous patch is wrong)


No differences found