|
Blender V5.3
|
#include <cstddef>Go to the source code of this file.
Macros | |
| #define | MIN_ALIGNMENT_CPU_DATA_TYPES 16 |
| #define | MIN_ALIGNMENT_DEVICE_MEMORY 32 |
Functions | |
| 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) |
| template<typename T, typename... Args> | |
| T * | util_aligned_new (Args... args) |
| template<typename T> | |
| void | util_aligned_delete (T *t) |
| #define MIN_ALIGNMENT_CPU_DATA_TYPES 16 |
Definition at line 12 of file cycles/util/aligned_malloc.h.
| #define MIN_ALIGNMENT_DEVICE_MEMORY 32 |
Definition at line 14 of file cycles/util/aligned_malloc.h.
Referenced by Device::host_alloc(), and CPUDevice::mem_alloc().
Definition at line 31 of file cycles/util/aligned_malloc.h.
References T, util_aligned_delete(), and util_aligned_free().
Referenced by util_aligned_delete().
| 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().
| 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().
Definition at line 25 of file cycles/util/aligned_malloc.h.
References T, util_aligned_malloc(), and util_aligned_new().
Referenced by 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().