const std::string engine_info(bool to_uci = false);
void prefetch(void* addr);
-void start_logger(bool b);
+void start_logger(const std::string& fname);
void dbg_hit_on(bool b);
void dbg_hit_on(bool c, bool b);
{ return T(rand64() & rand64() & rand64()); }
};
+
+/// Under Windows it is not possible for a process to run on more than one
+/// logical processor group. This usually means to be limited to use max 64
+/// cores. To overcome this, some special platform specific API should be
+/// called to set group affinity for each thread. Original code from Texel by
+/// Peter Ă–sterlund.
+
+namespace WinProcGroup {
+ void bindThisThread(size_t idx);
+}
+
#endif // #ifndef MISC_H_INCLUDED