prefetch_array

Function prefetch_array 

Source
pub unsafe fn prefetch_array<T>(addrs: &[*const T])
Expand description

Prefetch multiple memory locations

Prefetches an array of pointers to reduce cache-miss timing variations.

ยงSafety

The caller must ensure that all pointers in addrs are valid, aligned pointers to initialized memory of type T.