X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmisc.h;h=9d3c58c87d2859d16a1286155917c1816ec55f84;hp=965a0ee8444e7be4a05adcb7fa123f649ef10487;hb=8b0fee9998e2ae530fa57e55f6cf145779aef3d0;hpb=42b48b08e81b55e385e55b3074b7c59d81809a45 diff --git a/src/misc.h b/src/misc.h index 965a0ee8..9d3c58c8 100644 --- a/src/misc.h +++ b/src/misc.h @@ -28,29 +28,27 @@ #include "types.h" const std::string engine_info(bool to_uci = false); -void timed_wait(WaitCondition&, Lock&, int); void prefetch(char* addr); void start_logger(bool b); void dbg_hit_on(bool b); -void dbg_hit_on_c(bool c, bool b); +void dbg_hit_on(bool c, bool b); void dbg_mean_of(int v); void dbg_print(); namespace Time { typedef int64_t point; - inline point now() { return system_time_to_msec(); } + point now(); } template struct HashTable { - HashTable() : table(Size, Entry()) {} Entry* operator[](Key key) { return &table[(uint32_t)key & (Size - 1)]; } private: - std::vector table; + std::vector table = std::vector(Size); };