|
Blender V5.0
|
#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_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 29 of file cycles/util/aligned_malloc.h.
References T, and util_aligned_free().
| void util_aligned_free | ( | void * | ptr, |
| const size_t | size ) |
Definition at line 57 of file aligned_malloc.cpp.
References free(), MEM_freeN(), ptr, size(), and util_guarded_mem_free().
Referenced by Device::host_free(), array< T, alignment >::mem_free(), CPUDevice::mem_free(), TEST(), TEST(), and util_aligned_delete().
| void * util_aligned_malloc | ( | const size_t | size, |
| const int | alignment ) |
Definition at line 35 of file aligned_malloc.cpp.
References MEM_mallocN_aligned(), size(), and util_guarded_mem_alloc().
Referenced by Device::host_alloc(), CPUDevice::mem_alloc(), array< T, alignment >::mem_allocate(), TEST(), TEST(), and util_aligned_new().
Definition at line 23 of file cycles/util/aligned_malloc.h.
References T, and util_aligned_malloc().