mem_prefetch
This crate provides a simple platform agnostic wrapper for memory prefetching.
Cargo.toml
[]
= "0.1"
Usage
; // most local
; // most local
;
;
;
;
; // least local
; // least local
// Or raw ptr variants:
unsafe
Features
fallback: Use fallbackptr::read_volatilefor prefetching if no prefetch instruction is available. (Enabled by default).nightly: Use llvm intrinsics fromcore_intrinsicsfor prefetching.
Notes
- read/write variants map to same instructions on
x86.