|
Blender V5.3
|
#include "util/aligned_malloc.h"#include "util/guarded_allocator.h"#include <cassert>#include <malloc.h>#include <sys/mman.h>Go to the source code of this file.
Functions | |
| CCL_NAMESPACE_BEGIN void * | util_aligned_malloc (const size_t size, const int alignment) |
| void * | util_page_aligned_malloc (const size_t size) |
| void | util_aligned_free (void *ptr, const size_t size) |
| void | util_page_aligned_free (void *ptr, const size_t size) |
| void util_aligned_free | ( | void * | ptr, |
| const size_t | size ) |
Definition at line 96 of file aligned_malloc.cpp.
References MEM_delete_void(), size(), util_aligned_free(), and util_guarded_mem_free().
Referenced by Device::host_free(), array< T, alignment >::mem_free(), CPUDevice::mem_free(), TEST(), TEST(), util_aligned_delete(), and util_aligned_free().
| CCL_NAMESPACE_BEGIN void * util_aligned_malloc | ( | const size_t | size, |
| const int | alignment ) |
Definition at line 41 of file aligned_malloc.cpp.
References MEM_new_uninitialized_aligned(), size(), util_aligned_malloc(), and util_guarded_mem_alloc().
Referenced by Device::host_alloc(), CPUDevice::mem_alloc(), array< T, alignment >::mem_allocate(), TEST(), TEST(), util_aligned_malloc(), and util_aligned_new().
| void util_page_aligned_free | ( | void * | ptr, |
| const size_t | size ) |
Definition at line 112 of file aligned_malloc.cpp.
References size(), util_guarded_mem_free(), and util_page_aligned_free().
Referenced by util_page_aligned_free().
| void * util_page_aligned_malloc | ( | const size_t | size | ) |
Definition at line 63 of file aligned_malloc.cpp.
References L, size(), util_guarded_mem_alloc(), and util_page_aligned_malloc().
Referenced by util_page_aligned_malloc().