mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +00:00
Remove other useless floor()
No functional change.
This commit is contained in:
parent
9f2a64abd2
commit
a1f39c1ef9
1 changed files with 2 additions and 2 deletions
|
@ -130,8 +130,8 @@ void Search::init() {
|
||||||
{
|
{
|
||||||
double pvRed = 0.00 + log(double(hd)) * log(double(mc)) / 3.00;
|
double pvRed = 0.00 + log(double(hd)) * log(double(mc)) / 3.00;
|
||||||
double nonPVRed = 0.33 + log(double(hd)) * log(double(mc)) / 2.25;
|
double nonPVRed = 0.33 + log(double(hd)) * log(double(mc)) / 2.25;
|
||||||
Reductions[1][1][hd][mc] = (int8_t) ( pvRed >= 1.0 ? floor( pvRed * int(ONE_PLY)) : 0);
|
Reductions[1][1][hd][mc] = int8_t( pvRed >= 1.0 ? pvRed * int(ONE_PLY) : 0);
|
||||||
Reductions[0][1][hd][mc] = (int8_t) (nonPVRed >= 1.0 ? floor(nonPVRed * int(ONE_PLY)) : 0);
|
Reductions[0][1][hd][mc] = int8_t(nonPVRed >= 1.0 ? nonPVRed * int(ONE_PLY) : 0);
|
||||||
|
|
||||||
Reductions[1][0][hd][mc] = Reductions[1][1][hd][mc];
|
Reductions[1][0][hd][mc] = Reductions[1][1][hd][mc];
|
||||||
Reductions[0][0][hd][mc] = Reductions[0][1][hd][mc];
|
Reductions[0][0][hd][mc] = Reductions[0][1][hd][mc];
|
||||||
|
|
Loading…
Add table
Reference in a new issue