Function std::intrinsics::prefetch_write_data[][src]

pub unsafe extern "rust-intrinsic" fn prefetch_write_data<T>(
    data: *const T,
    locality: i32
)
🔬 This is a nightly-only experimental API. (core_intrinsics)

intrinsics are unlikely to ever be stabilized, instead they should be used through stabilized interfaces in the rest of the standard library

Expand description

prefetch 内联函数是对代码生成器的提示,如果支持的话,它会插入一个预取指令。否则,它是无操作的。 预取对程序的行为没有影响,但可以更改其性能特征。

locality 参数必须是一个常量整数,并且是时间局部性说明符,范围从 (0) (无局部性) 到 (3) (在缓存中极其局部化)。

此内联函数没有稳定的对应对象。