Skip to main content

prefetch_range_read

Function prefetch_range_read 

Source
pub fn prefetch_range_read<T>(ptr: *const T, bytes: usize)
Expand description

Prefetch a range of memory for reading.

This function prefetches multiple cache lines starting from the given pointer for the specified number of bytes.

ยงArguments

  • ptr - Starting memory address
  • bytes - Number of bytes to prefetch