Skip to main content

MIN_BUFFER_ALIGNMENT

Constant MIN_BUFFER_ALIGNMENT 

Source
pub const MIN_BUFFER_ALIGNMENT: u32 = 64;
Expand description

Minimum buffer alignment for SIMD compatibility (64 bytes).

The base address of every non-empty buffer MUST be aligned to at least this many bytes. This ensures compatibility with all current SIMD instruction sets (AVX-512, NEON, SVE) without per-operation alignment negotiation.

See docs/spec/buffer-protocol.md § Minimum Alignment.

§Examples

use hurray_core::MIN_BUFFER_ALIGNMENT;

assert_eq!(MIN_BUFFER_ALIGNMENT, 64);