amino
1.0-beta2
Lightweight Robot Utility Library
|
Simple Heap / Heapsort. More...
Go to the source code of this file.
Typedefs | |
typedef int(* | aa_compar_fun) (const void *a, const void *b) |
A comparison function. More... | |
Functions | |
void | aa_aheap_heapify (uint8_t *base, size_t nmemb, size_t size, size_t i, aa_compar_fun compar) |
The "heapify" operation. More... | |
void | aa_aheap_sort (void *base, size_t nmemb, size_t size, aa_compar_fun compar) |
Perform heapsort. | |
void | aa_aheap_build (uint8_t *base, size_t nmemb, size_t size, aa_compar_fun compar) |
Build a heap from an array. | |
Simple Heap / Heapsort.
Definition in file heap.h.
typedef int(* aa_compar_fun) (const void *a, const void *b) |
void aa_aheap_heapify | ( | uint8_t * | base, |
size_t | nmemb, | ||
size_t | size, | ||
size_t | i, | ||
aa_compar_fun | compar | ||
) |
The "heapify" operation.
Manipulates the tree rooted at index i so that it becomes a heap.