![]() |
![]() |
OpenMP Runtime
|
Thread safe, coherency aware dynamic memory management routines. More...
Classes | |
struct | PACKET |
struct | tomp_DspHeap |
Defines | |
#define | LARGE_TYPE long double |
#define | MIN_BLOCK (sizeof(LARGE_TYPE)) |
#define | BLOCK_OVERHEAD MIN_BLOCK |
#define | BLOCK_USED 1 |
#define | BLOCK_MASK (MIN_BLOCK-1) |
#define | NUM_GLOBAL_HEAPS (2) /* 1 in MSMC, 1 in DDR */ |
Functions | |
static void | inv_packet_list (PACKET *heap, size_t heap_size) |
Invalidate packet list. | |
static void | acquire_lock_and_inv (PACKET *heap, size_t heap_size) |
static void | inv_and_release_lock (PACKET *heap, size_t heap_size) |
static void | minsert (ti_omp_dsp_heap_idx, PACKET *) |
static void | mremove (ti_omp_dsp_heap_idx, PACKET *) |
_CODE_ACCESS void | __ti_omp_dsp_heap_init (ti_omp_dsp_heap_idx idx, char *ptr, int size) |
_CODE_ACCESS void | tomp_dsp_heap_init (ti_omp_dsp_heap_idx idx, char *ptr, int size) |
_CODE_ACCESS void * | __ti_omp_dsp_malloc (ti_omp_dsp_heap_idx idx, int size) |
_CODE_ACCESS void * | __ti_omp_dsp_calloc (ti_omp_dsp_heap_idx idx, int num, int size) |
_CODE_ACCESS void * | __ti_omp_dsp_realloc (ti_omp_dsp_heap_idx idx, void *packet, int size) |
_CODE_ACCESS void | __ti_omp_dsp_free (ti_omp_dsp_heap_idx idx, void *packet) |
_CODE_ACCESS void * | __ti_omp_dsp_memalign (ti_omp_dsp_heap_idx idx, int alignment, int size) |
Variables | |
tomp_DspHeap | __ti_omp_dsp_heap [NUM_GLOBAL_HEAPS] |
Thread safe, coherency aware dynamic memory management routines.
Following changes to make malloc/free thread-safe and support coherency on C66x Keystone architectures:
static void inv_packet_list | ( | PACKET * | heap, |
size_t | heap_size | ||
) | [inline, static] |