This commit is contained in:
Matthew Parkinson
2019-07-02 14:58:13 +01:00
parent eb4e28e8d0
commit b74116e209
3 changed files with 7 additions and 5 deletions

View File

@@ -133,9 +133,9 @@ namespace snmalloc
inline void prefetch(void* ptr)
{
#if defined(PLATFORM_IS_X86)
_mm_prefetch(reinterpret_cast<const char *>(ptr), _MM_HINT_T0);
_mm_prefetch(reinterpret_cast<const char*>(ptr), _MM_HINT_T0);
#else
# warning "Missing pause intrinsic"
# warning "Missing prefetch intrinsic"
#endif
}