[−][src]Function lokacore::arch::x86_64::prefetch0
pub fn prefetch0(ptr: *const impl Sized)
Prefetch the cache line into all cache levels.
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