Skip to main content

prefetch_write

Function prefetch_write 

Source
pub unsafe fn prefetch_write<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.