MCPcopy Create free account
hub / github.com/RenderKit/embree / StackArray

Function StackArray

common/sys/array.h:120–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118 struct __aligned(64) StackArray
119 {
120 __forceinline StackArray (const size_t N)
121 : N(N)
122 {
123 if (N*sizeof(Ty) <= max_stack_bytes)
124 data = &arr[0];
125 else
126 data = (Ty*) alignedMalloc(N*sizeof(Ty),64);
127 }
128
129 __forceinline ~StackArray () {
130 if (data != &arr[0]) alignedFree(data);

Callers 1

array.hFile · 0.85

Calls 1

alignedMallocFunction · 0.85

Tested by

no test coverage detected