Lines Matching defs:element
23 * @elem_size: The nr of each element in bytes.
33 /* Sift the element at pos down the heap. */
77 /* Remove minimum element from the heap, O(log2(nr)). */
87 /* Place last element at the root (position 0) and then sift down. */
94 * Remove the minimum element and then push the given element. The
100 const void *element,
103 memcpy(heap->data, element, func->elem_size);
107 /* Push an element on to the heap, O(log2(nr)). */
109 void min_heap_push(struct min_heap *heap, const void *element,
121 memcpy(data + (pos * func->elem_size), element, func->elem_size);