mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-22 10:06:26 +08:00
Use double everywhere
Rationale: - Speed of double and float is about the same (not on the hot path anyway) - Double makes code prettier (no need to write 1.0f, just 1.0) - Only practical advantage of float is to use less memory, but since we never store large arrays of double, we don't care. No functional change.
This commit is contained in:
committed by
Marco Costalba
parent
7f142d6817
commit
a0cc15ccbc
@@ -26,7 +26,7 @@
|
||||
class TimeManager {
|
||||
public:
|
||||
void init(const Search::LimitsType& limits, int currentPly, Color us);
|
||||
void pv_instability(float bestMoveChanges);
|
||||
void pv_instability(double bestMoveChanges);
|
||||
int available_time() const { return optimumSearchTime + unstablePVExtraTime; }
|
||||
int maximum_time() const { return maximumSearchTime; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user