mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-06 10:53:50 +08:00
Remove int to int conversion, unused include.
No functional change. Closes #1112
This commit is contained in:
committed by
Joona Kiiski
parent
6b4959e3e0
commit
99d914985f
@@ -43,10 +43,10 @@ struct HistoryStats {
|
||||
|
||||
const int D = 324;
|
||||
|
||||
assert(abs(int(v)) <= D); // Consistency check for below formula
|
||||
assert(abs(v) <= D); // Consistency check for below formula
|
||||
|
||||
table[c][from][to] -= table[c][from][to] * abs(int(v)) / D;
|
||||
table[c][from][to] += int(v) * 32;
|
||||
table[c][from][to] -= table[c][from][to] * abs(v) / D;
|
||||
table[c][from][to] += v * 32;
|
||||
}
|
||||
|
||||
private:
|
||||
@@ -70,10 +70,10 @@ struct Stats {
|
||||
|
||||
const int D = 936;
|
||||
|
||||
assert(abs(int(v)) <= D); // Consistency check for below formula
|
||||
assert(abs(v) <= D); // Consistency check for below formula
|
||||
|
||||
table[pc][to] -= table[pc][to] * abs(int(v)) / D;
|
||||
table[pc][to] += int(v) * 32;
|
||||
table[pc][to] -= table[pc][to] * abs(v) / D;
|
||||
table[pc][to] += v * 32;
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
#define THREAD_H_INCLUDED
|
||||
|
||||
#include <atomic>
|
||||
#include <bitset>
|
||||
#include <condition_variable>
|
||||
#include <mutex>
|
||||
#include <thread>
|
||||
|
||||
Reference in New Issue
Block a user