prefetch_write_data in core::intrinsics - Rust
Description: The `prefetch` intrinsic is a hint to the code generator to insert a prefetch instruction for the given address if supported; otherwise, it is a no-op. Prefetches have no effect on the behavior of the program but can change its performance characteristics.

## prefetch_write_data

# Function prefetch_write_data

Source

    pub const fn prefetch_write_data<T, const LOCALITY: i32>(data: *const T)

🔬This is a nightly-only experimental API. (`core_intrinsics`)
Expand description

The `prefetch` intrinsic is a hint to the code generator to insert a prefetch instruction for the given address if supported; otherwise, it is a no-op. Prefetches have no effect on the behavior of the program but can change its performance characteristics.

The `LOCALITY` argument is a temporal locality specifier ranging from (0) - no locality, to (3) - extremely local keep in cache.

This intrinsic does not have a stable counterpart.