Lines Matching defs:child
364 int child;
367 child = new_index;
369 while (child != 1) {
371 parent = child >> 1;
372 if (queue_cmp(queue_array, parent, child) <= 0)
374 swap(queue_array, parent, child);
375 child = parent;
387 int child;
391 child = parent << 1;
392 for (; child <= num_entries; child = parent << 1) {
394 if (child < num_entries) {
395 /* child+1 is the right child of parent */
396 if (queue_cmp(queue_array, child + 1, child) < 0)
397 child++;
399 /* child is now the least child of parent */
400 if (queue_cmp(queue_array, parent, child) <= 0)
402 swap(queue_array, child, parent);
403 parent = child;