mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 03:25:16 +00:00
asm.hpp: fix usage of _mm_prefetch
This commit is contained in:
parent
ab6bcd32a9
commit
cb4a688e02
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue