Skip to main content

MAX_NATIVE_ALIGN

Constant MAX_NATIVE_ALIGN 

Source
pub const MAX_NATIVE_ALIGN: usize = 16;
Expand description

Strongest alignment served by picking a suitable class rather than by over-allocating. Requests above this go to the GlobalAlloc shim’s over-aligned path.

16 matters enough to be worth serving directly — u128, AtomicU64 pairs and most SIMD vectors ask for it — and it costs only skipping to the next class when the natural one is not a multiple of 16.