Searched refs:heap (Results 1 – 11 of 11) sorted by relevance
/hal_rpi_pico-latest/src/common/pico_util/ |
D | pheap.c | 13 pheap_t *heap = calloc(1, sizeof(pheap_t)); in ph_create() local 14 heap->nodes = calloc(max_nodes, sizeof(pheap_node_t)); in ph_create() 15 ph_post_alloc_init(heap, max_nodes, comparator, user_data); in ph_create() 16 return heap; in ph_create() 19 void ph_post_alloc_init(pheap_t *heap, uint max_nodes, pheap_comparator comparator, void *user_data… in ph_post_alloc_init() argument 21 heap->max_nodes = (pheap_node_id_t) max_nodes; in ph_post_alloc_init() 22 heap->comparator = comparator; in ph_post_alloc_init() 23 heap->user_data = user_data; in ph_post_alloc_init() 24 ph_clear(heap); in ph_post_alloc_init() 27 void ph_clear(pheap_t *heap) { in ph_clear() argument [all …]
|
/hal_rpi_pico-latest/src/common/pico_util/include/pico/util/ |
D | pheap.h | 95 void ph_clear(pheap_t *heap); 104 void ph_destroy(pheap_t *heap); 107 static inline pheap_node_t *ph_get_node(pheap_t *heap, pheap_node_id_t id) { in ph_get_node() argument 108 assert(id && id <= heap->max_nodes); in ph_get_node() 109 return heap->nodes + id - 1; in ph_get_node() 113 static void ph_add_child_node(pheap_t *heap, pheap_node_id_t parent_id, pheap_node_id_t child_id) { in ph_add_child_node() argument 114 pheap_node_t *n = ph_get_node(heap, parent_id); in ph_add_child_node() 118 pheap_node_t *c = ph_get_node(heap, child_id); in ph_add_child_node() 129 static pheap_node_id_t ph_merge_nodes(pheap_t *heap, pheap_node_id_t a, pheap_node_id_t b) { in ph_merge_nodes() argument 132 if (heap->comparator(heap->user_data, a, b)) { in ph_merge_nodes() [all …]
|
/hal_rpi_pico-latest/src/rp2_common/pico_crt0/rp2040/ |
D | memmap_no_flash.ld | 179 .heap (NOLOAD): 183 KEEP(*(.heap*)) 186 to be more compatible, we now set __HeapLimit explicitly to where the end of the heap is */ 224 /* stack limit is poorly named, but historically is maximum heap ptr */ 243 /* Check if data + heap + stack exceeds RAM limit */
|
D | memmap_blocked_ram.ld | 211 .heap (NOLOAD): 215 KEEP(*(.heap*)) 218 to be more compatible, we now set __HeapLimit explicitly to where the end of the heap is */ 261 /* stack limit is poorly named, but historically is maximum heap ptr */ 280 /* Check if data + heap + stack exceeds RAM limit */
|
D | memmap_copy_to_ram.ld | 212 .heap (NOLOAD): 216 KEEP(*(.heap*)) 219 to be more compatible, we now set __HeapLimit explicitly to where the end of the heap is */ 262 /* stack limit is poorly named, but historically is maximum heap ptr */ 281 /* Check if data + heap + stack exceeds RAM limit */
|
D | memmap_default.ld | 211 .heap (NOLOAD): 215 KEEP(*(.heap*)) 218 to be more compatible, we now set __HeapLimit explicitly to where the end of the heap is */ 261 /* stack limit is poorly named, but historically is maximum heap ptr */ 280 /* Check if data + heap + stack exceeds RAM limit */
|
/hal_rpi_pico-latest/src/rp2_common/pico_crt0/rp2350/ |
D | memmap_no_flash.ld | 184 .heap (NOLOAD): 188 KEEP(*(.heap*)) 191 to be more compatible, we now set __HeapLimit explicitly to where the end of the heap is */ 229 /* stack limit is poorly named, but historically is maximum heap ptr */ 248 /* Check if data + heap + stack exceeds RAM limit */
|
D | memmap_copy_to_ram.ld | 232 .heap (NOLOAD): 236 KEEP(*(.heap*)) 239 to be more compatible, we now set __HeapLimit explicitly to where the end of the heap is */ 282 /* stack limit is poorly named, but historically is maximum heap ptr */ 301 /* Check if data + heap + stack exceeds RAM limit */
|
D | memmap_default.ld | 225 .heap (NOLOAD): 229 KEEP(*(.heap*)) 232 to be more compatible, we now set __HeapLimit explicitly to where the end of the heap is */ 275 /* stack limit is poorly named, but historically is maximum heap ptr */ 294 /* Check if data + heap + stack exceeds RAM limit */
|
/hal_rpi_pico-latest/src/rp2_common/pico_crt0/ |
D | crt0.S | 539 spacer_section .heap
|
D | crt0_riscv.S | 587 spacer_section .heap
|