dcv.core.memory

Module introduces memory management utilities to help manage memory for SIMD compatible arrays, with or without use of GC.

Members

Functions

alignedAlloc
T[] alignedAlloc(size_t count, uint alignment = 16)

Allocate array using strict memory alignment.

alignedFree
void alignedFree(void[] ptr)

Frees memory allocated using alignedAlloc function.

alignedRealloc
bool alignedRealloc(ref void[] ptr, size_t newSize)

Allocate array using strict memory alignment.

Templates

VectorAVX
template VectorAVX(T)

Template to get alias to AVX compatible vector for given type.

VectorSSE2
template VectorSSE2(T)

Template to get alias to SSE2 compatible vector for given type.

Meta

Authors

Relja Ljubobratovic

License

$(LINK3 http://www.boost.org/LICENSE_1_0.txt, Boost Software License - Version 1.0).