Blender
V3.3
|
#include "util/types.h"
Go to the source code of this file.
Macros | |
#define | MIN_ALIGNMENT_CPU_DATA_TYPES 16 |
Functions | |
void * | util_aligned_malloc (size_t size, int alignment) |
void | util_aligned_free (void *ptr) |
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.
Definition at line 27 of file cycles/util/aligned_malloc.h.
References t, and util_aligned_free().
Definition at line 50 of file aligned_malloc.cpp.
References free(), MEM_freeN, NULL, and ptr.
Referenced by device_memory::host_free(), CPUDevice::mem_free(), array< T, alignment >::mem_free(), TEST(), and util_aligned_delete().
void* util_aligned_malloc | ( | size_t | size, |
int | alignment | ||
) |
Definition at line 30 of file aligned_malloc.cpp.
References MEM_mallocN_aligned, NULL, result, and size().
Referenced by device_memory::host_alloc(), CPUDevice::mem_alloc(), array< T, alignment >::mem_allocate(), TEST(), and util_aligned_new().
T* util_aligned_new | ( | Args... | args | ) |
Definition at line 21 of file cycles/util/aligned_malloc.h.
References T, and util_aligned_malloc().