Alloca functions.
Aligned memory allocation result
dmMemory::RESULT_OK - 0
dmMemory::RESULT_INVAL - -1
dmMemory::RESULT_NOMEM - -2
Allocate size bytes of uninitialized storage whose alignment is specified by alignment.
memptr - Pointer to a void* where the allocated pointer address should be stored.
alignment - The alignment value, which must be an integer power of 2.
size - Size of the requested memory allocation.
result - Returns RESULT_OK on success, RESULT_INVAL if alignment is not a power of 2 and RESULT_NOMEM if out of memory.
Frees a block of memory that was allocated with dmMemory::AlignedMalloc
memptr - A pointer to the memory block that was returned by dmMemory::AlignedMalloc