Skip to content

Commit

Permalink
Simplifying two formulas
Browse files Browse the repository at this point in the history
by eliminating two multiplication operations.

Passed STC:
LLR: 2.94 (-2.94,2.94) <-1.75,0.25>
Total: 60000 W: 15193 L: 14996 D: 29811
Ptnml(0-2): 199, 7100, 15215, 7277, 209
https://tests.stockfishchess.org/tests/view/653beb69cc309ae83956129d

Passed LTC:
LLR: 2.94 (-2.94,2.94) <-1.75,0.25>
Total: 122910 W: 30471 L: 30353 D: 62086
Ptnml(0-2): 68, 13961, 33271, 14095, 60
https://tests.stockfishchess.org/tests/view/653c5848cc309ae839561ae7

closes #4857

bench: 1216779
  • Loading branch information
FauziAkram authored and vondele committed Nov 3, 2023
1 parent e277dda commit 101d2bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ Value search(Position& pos, Stack* ss, Value alpha, Value beta, Depth depth, boo
update_continuation_histories(ss - 1, pos.piece_on(prevSq), prevSq,
stat_bonus(depth) * bonus);
thisThread->mainHistory[~us][from_to((ss - 1)->currentMove)]
<< stat_bonus(depth) * bonus * 57 / 100;
<< stat_bonus(depth) * bonus / 2;
}
return value;
}
Expand Down Expand Up @@ -1339,7 +1339,7 @@ Value search(Position& pos, Stack* ss, Value alpha, Value beta, Depth depth, boo
update_continuation_histories(ss - 1, pos.piece_on(prevSq), prevSq,
stat_bonus(depth) * bonus);
thisThread->mainHistory[~us][from_to((ss - 1)->currentMove)]
<< stat_bonus(depth) * bonus * 61 / 100;
<< stat_bonus(depth) * bonus / 2;
}

if (PvNode)
Expand Down

0 comments on commit 101d2bb

Please sign in to comment.