mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 12:07:43 +00:00
apply const to prefetch parameter
closes https://github.com/official-stockfish/Stockfish/pull/5296 No functional change
This commit is contained in:
committed by
Joost VandeVondele
parent
d0b9411b82
commit
b0287dcb1c
+3
-3
@@ -415,14 +415,14 @@ void start_logger(const std::string& fname) { Logger::start(fname); }
|
||||
|
||||
#ifdef NO_PREFETCH
|
||||
|
||||
void prefetch(void*) {}
|
||||
void prefetch(const void*) {}
|
||||
|
||||
#else
|
||||
|
||||
void prefetch(void* addr) {
|
||||
void prefetch(const void* addr) {
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
_mm_prefetch((char*) addr, _MM_HINT_T0);
|
||||
_mm_prefetch((char const*) addr, _MM_HINT_T0);
|
||||
#else
|
||||
__builtin_prefetch(addr);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user