MCPcopy Create free account
hub / github.com/blender/cycles / util_aligned_free

Function util_aligned_free

src/util/aligned_malloc.cpp:57–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57void util_aligned_free(void *ptr, const size_t size)
58{
59 if (ptr) {
60 util_guarded_mem_free(size);
61 }
62#if defined(WITH_BLENDER_GUARDEDALLOC)
63 if (ptr != nullptr) {
64 MEM_delete_void(ptr);
65 }
66#elif defined(_WIN32)
67 _aligned_free(ptr);
68#else
69 free(ptr);
70#endif
71}
72
73CCL_NAMESPACE_END

Callers 5

TESTFunction · 0.85
host_freeMethod · 0.85
mem_freeMethod · 0.85
mem_freeFunction · 0.85
util_aligned_deleteFunction · 0.85

Calls 1

util_guarded_mem_freeFunction · 0.85

Tested by 1

TESTFunction · 0.68