Skip to main content

Crate prefetch_index

Crate prefetch_index 

Source
Expand description

A small crate to prefetch an element of an array.

Provides prefetch_index and prefetch_index_nta to prefetch the cache line containing slice[index].

Functionsยง

prefetch_index
Prefetches the cache line containing (the first byte of) data[index] into all levels of the cache.
prefetch_index_nta
Prefetches the cache line containing (the first byte of) data[index] for non-temporal access.