Feature gate: #![feature(hint_prefetch)]
This is a tracking issue for hints to prefetch memory.
Public API
// core::hint
#[non_exhaustive]
pub enum Locality {
L3,
L2.
L1,
}
pub const fn prefetch_read<T>(ptr: *const T, locality: Locality);
pub const fn prefetch_write<T>(ptr: *mut T, locality: Locality);
pub const fn prefetch_read_non_temporal<T>(ptr: *const T, locality: Locality);
pub const fn prefetch_write_non_temporal<T>(ptr: *mut T, locality: Locality);
pub const fn prefetch_read_instruction<T>(ptr: *const T, locality: Locality);
Steps / History
(Remember to update the S-tracking-* label when checking boxes.)
Unresolved Questions
Feature gate:
#![feature(hint_prefetch)]This is a tracking issue for hints to prefetch memory.
Public API
Steps / History
(Remember to update the
S-tracking-*label when checking boxes.)core::hintlibs-team#638core::hint::prefetch_{read, write}_{data, instruction}#146948Unresolved Questions
Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩