Skip to main content

prefetch_read

Function prefetch_read 

Source
pub unsafe fn prefetch_read<T>(ptr: *const T)
Expand description

预取数据到 CPU 缓存(读优化)

§Safety

ptr must be a valid pointer for the target platform to prefetch. The intrinsic does not dereference it, but callers must still only pass pointers derived from live allocations or documented platform-safe addresses.