mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-18 16:16:23 +08: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:
@@ -354,7 +354,7 @@ void init_search() {
|
|||||||
|
|
||||||
// Init futility margins array
|
// Init futility margins array
|
||||||
for (d = 1; d < 16; d++) for (mc = 0; mc < 64; mc++)
|
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
|
// Init futility move count array
|
||||||
for (d = 0; d < 32; d++)
|
for (d = 0; d < 32; d++)
|
||||||
|
|||||||
Reference in New Issue
Block a user