Function oqs_sys::common::OQS_MEM_aligned_alloc
source · [−]Expand description
Internal implementation of C11 aligned_alloc to work around compiler quirks.
Allocates size bytes of uninitialized memory with a base pointer that is a multiple of alignment. Alignment must be a power of two and a multiple of sizeof(void *). Size must be a multiple of alignment.