Skip to main content

Module aligned_alloc

Module aligned_alloc 

Source
Expand description

Aligned memory allocation for SIMD buffer pools.

Wraps std::alloc::{alloc, dealloc, realloc} with Layout-based alignment, suitable for AVX2 (32-byte), AVX-512 (64-byte), and NEON (16-byte) SIMD operations.

All allocations route through the process-wide #[global_allocator], so when the mimalloc feature is enabled this transparently uses mimalloc.

Structs§

AlignedAllocator
Aligned memory allocator for SIMD operations.

Functions§

aligned_allocator
Returns the process-wide aligned allocator handle.