Files
Stockfish/src
protonspring ea5505821d Simplify Passed Pawns (#2058)
This is a non-functional simplification/speedup.

The truth-table for popcount(support) >= popcount(lever) - 1 is:
------------------lever
------------------0-------1---------2
support--0------X-------X---------0
-----------1------X-------X---------X
-----------2------X-------X---------X

Thus, it is functionally equivalent to just do: support || !more_than_one(lever) which removes the expensive popcounts and the -1.

Result of 20 runs:
base (...h_master.exe) = 1451680 +/- 8202
test (./stockfish ) = 1454781 +/- 8604
diff = +3101 +/- 931

STC
LLR: 2.94 (-2.94,2.94) [-3.00,1.00]
Total: 35424 W: 7768 L: 7674 D: 19982
Http://tests.stockfishchess.org/tests/view/5c970f170ebc5925cfff5e28

No functional change.
2019-03-24 17:37:38 +01:00
..
2018-11-19 11:18:21 +01:00
2018-11-19 11:18:21 +01:00
2019-03-10 10:53:39 +01:00
2019-03-05 11:13:02 +01:00
2019-02-21 19:53:03 +01:00
2019-02-21 19:53:03 +01:00
2019-03-05 11:13:02 +01:00
2018-12-13 13:35:35 +01:00
2018-11-19 11:18:21 +01:00
2018-11-19 11:18:21 +01:00
2018-11-19 11:18:21 +01:00
2018-12-24 11:20:14 +01:00
2018-11-19 11:18:21 +01:00
2019-03-05 11:13:02 +01:00
2018-11-19 11:18:21 +01:00
2019-03-05 11:10:10 +01:00
2019-01-01 14:10:26 +01:00
2019-03-24 17:37:38 +01:00
2019-01-01 13:38:09 +01:00
2019-03-05 11:13:02 +01:00
2019-02-08 10:20:43 +01:00
2019-03-20 14:57:34 +01:00
2018-11-19 11:18:21 +01:00
2018-11-19 11:18:21 +01:00
2018-11-19 11:18:21 +01:00
2019-02-08 10:20:43 +01:00
2019-02-08 10:20:43 +01:00
2019-03-05 14:54:25 +01:00
2018-11-19 11:18:21 +01:00
2019-03-05 11:13:02 +01:00