X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fmisc.h;h=aed677b5b294896139b993fc82444518e135724e;hb=3c0e86a91e48baea273306e45fb6cf13a59373cf;hp=69d470c22f8a0098273781739411372d98771ad3;hpb=38a80c0b47397dbdd9167ec1476dfd3c033020d6;p=stockfish diff --git a/src/misc.h b/src/misc.h index 69d470c2..aed677b5 100644 --- a/src/misc.h +++ b/src/misc.h @@ -21,12 +21,10 @@ #include #include -#include -#include -#include +#include #include - -#include "types.h" +#include +#include #define stringify2(x) #x #define stringify(x) stringify2(x) @@ -55,14 +53,6 @@ inline TimePoint now() { (std::chrono::steady_clock::now().time_since_epoch()).count(); } -template -struct HashTable { - Entry* operator[](Key key) { return &table[(uint32_t)key & (Size - 1)]; } - -private: - std::vector table = std::vector(Size); // Allocate on the heap -}; - enum SyncCout { IO_LOCK, IO_UNLOCK }; std::ostream& operator<<(std::ostream&, SyncCout);