X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmisc.h;h=28bf045255ccd8b6aae115020ce285cc4fafb651;hp=9241834f3ea5bdcec135fe5bdd89436e33bc089e;hb=098f645d26675bcf2180b290be77fe64a63de3ae;hpb=3c07603dac03f0da20194097cf4eb1a396fea60d diff --git a/src/misc.h b/src/misc.h index 9241834f..28bf0452 100644 --- a/src/misc.h +++ b/src/misc.h @@ -28,11 +28,11 @@ #include "types.h" const std::string engine_info(bool to_uci = false); -void prefetch(char* addr); +void prefetch(void* 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(); @@ -45,11 +45,10 @@ namespace Time { 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); };