MCPcopy Create free account
hub / github.com/LuxCoreRender/LuxCore / FreeAligned

Function FreeAligned

include/luxrays/utils/memory.h:55–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53 return static_cast<T *>(memalign(N, size * sizeof(T)));
54}
55template<class T> inline void FreeAligned(T *ptr)
56{
57#if defined(WIN32) && !defined(__CYGWIN__) // NOBOOK
58 _aligned_free(ptr);
59#else // NOBOOK
60 free(ptr);
61#endif // NOBOOK
62}
63
64template <typename T, std::size_t N = 16> class AlignedAllocator
65{

Callers 5

FreeSamplesMethod · 0.85
deallocateMethod · 0.85
operator deleteMethod · 0.85
~MemoryArenaMethod · 0.85
~BlockedArrayMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected