[][src]Function lokacore::arch::x86_64::prefetch2

pub fn prefetch2(ptr: *const impl Sized)

Prefetch the cache line into L3 and higher (or best effort).

A prefetch is just a hint to the CPU and has no effect on the correctness (or not) of a program. In other words, you can prefetch literally any address and it's never UB. However, if you prefetch an invalid address the CPU can actually slow down for a moment as it figures out that your address isn't valid. So, don't go silly with this.

See Also: _mm_prefetch