Skip to content

Commit 4d65761

Browse files
vondelesnicolet
authored andcommitted
Quantize eval to multiples of 16
Removes some excess precision, helps searchs. Effectively reintroduces evaluation grain, with a slightly different context. 45dbd9c passed STC LLR: 2.97 (-2.94,2.94) {-0.50,1.50} Total: 197032 W: 37938 L: 37462 D: 121632 Ptnml(0-2): 3359, 22994, 45446, 23246, 3471 https://tests.stockfishchess.org/tests/view/5ee0c228f29b40b0fc95ae53 passed LTC LLR: 2.94 (-2.94,2.94) {0.25,1.75} Total: 77696 W: 9970 L: 9581 D: 58145 Ptnml(0-2): 530, 7075, 23311, 7340, 592 https://tests.stockfishchess.org/tests/view/5ee21426f29b40b0fc95af43 passed LTC SMP LLR: 2.96 (-2.94,2.94) {0.25,1.75} Total: 64136 W: 7425 L: 7091 D: 49620 Ptnml(0-2): 345, 5416, 20228, 5718, 361 https://tests.stockfishchess.org/tests/view/5ee387bbf29b40b0fc95b04c closes #2733 Bench: 4939103
1 parent c44c62e commit 4d65761

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/evaluate.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -855,6 +855,9 @@ namespace {
855855
Trace::add(MOBILITY, mobility[WHITE], mobility[BLACK]);
856856
}
857857

858+
// Evaluation grain
859+
v = (v / 16) * 16;
860+
858861
// Side to move point of view
859862
v = (pos.side_to_move() == WHITE ? v : -v) + Tempo;
860863

0 commit comments

Comments
 (0)