Skip to main content

prefetch_ptr

Function prefetch_ptr 

Source
pub unsafe fn prefetch_ptr<T>(ptr: *const T, locality: PrefetchLocality)
Expand description

Prefetch data into cache.

ยงSafety

The pointer must be valid for reading.