asm.hpp: fix usage of _mm_prefetch

This commit is contained in:
oltolm 2023-12-10 21:56:50 +01:00 committed by Elad Ashkenazi
parent ab6bcd32a9
commit cb4a688e02

View File

@ -113,7 +113,7 @@ namespace utils
const void* ptr = reinterpret_cast<const void*>(value);
#ifdef _M_X64
return _mm_prefetch(static_cast<const char*>(ptr), 2);
return _mm_prefetch(static_cast<const char*>(ptr), _MM_HINT_T1);
#else
return __builtin_prefetch(ptr, 0, 2);
#endif
@ -128,7 +128,7 @@ namespace utils
}
#ifdef _M_X64
return _mm_prefetch(static_cast<const char*>(ptr), 3);
return _mm_prefetch(static_cast<const char*>(ptr), _MM_HINT_T0);
#else
return __builtin_prefetch(ptr, 0, 3);
#endif