Lines Matching refs:child
105 #define CREATE(initval, nmemb, par_i, child_i, par, child, size, count, tmp) { \
108 child = base + child_i * size; \
109 if (child_i < nmemb && compar(child, child + size) < 0) { \
110 child += size; \
114 if (compar(child, par) <= 0) \
116 SWAP(par, child, count, size, tmp); \
125 * heapify, always maintaining the invariant that the larger child is copied
137 #define SELECT(par_i, child_i, nmemb, par, child, size, k, count, tmp1, tmp2) { \
139 child = base + child_i * size; \
140 if (child_i < nmemb && compar(child, child + size) < 0) { \
141 child += size; \
145 COPY(par, child, count, size, tmp1, tmp2); \
150 child = base + child_i * size; \
153 COPY(child, k, count, size, tmp1, tmp2); \
156 COPY(child, par, count, size, tmp1, tmp2); \