24 #include "user_config.h"
32 int left = (root<<1) + 1;
33 int right = (root<<1) + 2;
37 if (left < size && v[left] > v[largest])
41 if (right < size && v[right] > v[largest])
62 for(root = size / 2 - 1; root >= 0; --root)
68 for (root=size-1; root>=0; --root)
85 for (i = 1; i < size; ++i)
88 for (j = i; j >= 1 && tmp < v[j - 1]; --j)