]> git.sesse.net Git - stockfish/commitdiff
Simplify scale factor computation
authorStefano80 <stefano.cardanobile@gmail.com>
Mon, 6 Feb 2017 00:02:02 +0000 (16:02 -0800)
committerJoona Kiiski <joona@zoox.com>
Mon, 6 Feb 2017 00:06:37 +0000 (16:06 -0800)
Minor non-functional simplifications in computing the scale factor.

In my opinion, the code is now slightly more readable:

- remove one condition which can never be satisfied.
- immediately return instead of assigning the sf variable.

Tested for non-regression:

LLR: 2.95 (-2.94,2.94) [-3.00,1.00]
Total: 62162 W: 11166 L: 11115 D: 39881

No functional change

Closes #992


No differences found