]> git.sesse.net Git - stockfish/commit
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)
commita47bbca0ea40ac007d64682c3ba51fa4158b2d3f
treec087effd628645754c53357451baac3d0bf7373d
parent0d33466bcd84d9d58ea7049b224f375ba6a51221
Refactor bonus and penalty calculation (#917)

* 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)
src/search.cpp