mirror of
https://github.com/sockspls/badfish
synced 2025-04-29 16:23:09 +00:00
Reintroduce GCC/ICC rounding hack
Unfortunatly the source of this issue is not in the different handling of log(0) illegal value. No functional change on MSVC. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
d0fdc20231
commit
a5c85d3cfc
1 changed files with 1 additions and 1 deletions
|
@ -354,7 +354,7 @@ void init_search() {
|
|||
|
||||
// Init futility margins array
|
||||
for (d = 1; d < 16; d++) for (mc = 0; mc < 64; mc++)
|
||||
FutilityMarginsMatrix[d][mc] = 112 * int(log(double(d * d) / 2) / log(2.0) + 1) - 8 * mc + 45;
|
||||
FutilityMarginsMatrix[d][mc] = 112 * int(log(double(d * d) / 2) / log(2.0) + 1.001) - 8 * mc + 45;
|
||||
|
||||
// Init futility move count array
|
||||
for (d = 0; d < 32; d++)
|
||||
|
|
Loading…
Add table
Reference in a new issue