Skip to main content

cache_line

Function cache_line 

Source
pub fn cache_line() -> usize
Expand description

The cache line size in bytes, from the first level 1 data cache; 64 when unknown, 128 on Apple silicon.

assert!(sys_lib::cpu::cache_line().is_power_of_two());