mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 00:56:39 +08:00
Re-add "Cache line aligned TT"
But this time do not play with pointers, in particular do not assume that size_t is an unsigned type of the same width as pointers. This code should be fully portable. No functional change.
This commit is contained in:
@@ -237,10 +237,8 @@ void prefetch(char* addr) {
|
||||
|
||||
# if defined(__INTEL_COMPILER) || defined(_MSC_VER)
|
||||
_mm_prefetch(addr, _MM_HINT_T0);
|
||||
_mm_prefetch(addr+64, _MM_HINT_T0); // 64 bytes ahead
|
||||
# else
|
||||
__builtin_prefetch(addr);
|
||||
__builtin_prefetch(addr+64);
|
||||
# endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user