Rev 154 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 154 | Rev 169 | ||
|---|---|---|---|
| Line 4... | Line 4... | ||
| 4 |   Copyright (C) 2008-2015 Marco Costalba, Joona Kiiski, Tord Romstad | 4 |   Copyright (C) 2008-2015 Marco Costalba, Joona Kiiski, Tord Romstad | 
| 5 |   Copyright (C) 2015- | 5 |   Copyright (C) 2015-2018 Marco Costalba, Joona Kiiski, Gary Linscott, Tord Romstad | 
| 6 | 6 | ||
| 7 |   Stockfish is free software: you can redistribute it and/or modify | 7 |   Stockfish is free software: you can redistribute it and/or modify | 
| 8 |   it under the terms of the GNU General Public License as published by | 8 |   it under the terms of the GNU General Public License as published by | 
| 9 |   the Free Software Foundation, either version 3 of the License, or | 9 |   the Free Software Foundation, either version 3 of the License, or | 
| 10 |   (at your option) any later version. | 10 |   (at your option) any later version. | 
| Line 29... | Line 29... | ||
| 29 | 29 | ||
| 30 | #include "types.h" | 30 | #include "types.h" | 
| 31 | 31 | ||
| 32 | const std::string engine_info(bool to_uci = false); | 32 | const std::string engine_info(bool to_uci = false); | 
| 33 | void prefetch(void* addr); | 33 | void prefetch(void* addr); | 
| - | 34 | void prefetch2(void* addr); | |
| 34 | void start_logger(const std::string& fname); | 35 | void start_logger(const std::string& fname); | 
| 35 | 36 | ||
| 36 | void dbg_hit_on(bool b); | 37 | void dbg_hit_on(bool b); | 
| 37 | void dbg_hit_on(bool c, bool b); | 38 | void dbg_hit_on(bool c, bool b); | 
| 38 | void dbg_mean_of(int v); | 39 | void dbg_mean_of(int v); | 
| Line 94... | Line 95... | ||
| 94 |   /// Special generator used to fast init magic numbers. | 95 |   /// Special generator used to fast init magic numbers. | 
| 95 |   /// Output values only have 1/8th of their bits set on average. | 96 |   /// Output values only have 1/8th of their bits set on average. | 
| 96 | template<typename T> T sparse_rand() | 97 | template<typename T> T sparse_rand() | 
| 97 | { return T(rand64() & rand64() & rand64()); } | 98 | { return T(rand64() & rand64() & rand64()); } | 
| 98 | }; | 99 | }; | 
| - | 100 | ||
| - | 101 | ||
| - | 102 | /// Under Windows it is not possible for a process to run on more than one | |
| - | 103 | /// logical processor group. This usually means to be limited to use max 64 | |
| - | 104 | /// cores. To overcome this, some special platform specific API should be | |
| - | 105 | /// called to set group affinity for each thread. Original code from Texel by | |
| - | 106 | /// Peter Ă–sterlund. | |
| - | 107 | ||
| - | 108 | namespace WinProcGroup { | |
| - | 109 | void bindThisThread(size_t idx); | |
| - | 110 | } | |
| 99 | 111 | ||
| 100 | #endif // #ifndef MISC_H_INCLUDED | 112 | #endif // #ifndef MISC_H_INCLUDED |