33 int left = (root<<1) + 1;
34 int right = (root<<1) + 2;
38 if (left < size && v[left] > v[largest])
42 if (right < size && v[right] > v[largest])
62 for(root = size / 2 - 1; root >= 0; --root)
68 for (root=size-1; root>=0; --root)
84 for (i = 1; i < size; ++i)
87 for (j = i; j >= 1 && tmp < v[j - 1]; --j)
Master include file for project Includes all project includes and defines here.
MEMSPACE void insert_sort(uint16_t *v, int size)
MEMSPACE void heapsort(int *v, int size)
MEMSPACE void heapify(int *v, int size, int root)