3 ms·
Having had a quick look at the AMD 17h processor family optimization guide, it would seem that the PREFETCHNTA opcode is the one you are looking for; it hints t
by tankenmate 6y ago
Having had a quick look at the AMD 17h processor family optimization guide, it would seem that the PREFETCHNTA opcode is the one you are looking for; it hints to the processor to pull the memory pointer close to the processor while avoiding polluting the cache.
For GCC it would seem that using this built in pseudo function call does the trick;
__builtin_prefetch((void *)p,0,0);