macro_rules! cache_aligned_zeroed_for_bytes {
($bytes:expr) => { ... };
($bytes:expr,) => { ... };
}
Expand description
Creates an array of zeroed-out CacheAligned
values large enough for
storage of the given byte count. The actual supported byte count may be
larger due to padding.
ยงExamples
let zeroed = cache_aligned_zeroed_for_bytes!(256);
for element in &zeroed {
for i in 0..element.0.len() {
assert_eq!(element.0[i], 0);
}
}