X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmisc.h;h=28bf045255ccd8b6aae115020ce285cc4fafb651;hp=246a56a016594bff70e628c360011480c14a5cdf;hb=098f645d26675bcf2180b290be77fe64a63de3ae;hpb=170bdf40cd47f7f3a601107fae0a32667a9d72a9 diff --git a/src/misc.h b/src/misc.h index 246a56a0..28bf0452 100644 --- a/src/misc.h +++ b/src/misc.h @@ -28,8 +28,7 @@ #include "types.h" const std::string engine_info(bool to_uci = false); -void timed_wait(WaitCondition&, Lock&, int); -void prefetch(char* addr); +void prefetch(void* addr); void start_logger(bool b); void dbg_hit_on(bool b); @@ -40,17 +39,16 @@ 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); };