Lines Matching refs:son
591 int son = h->elements; in heap_insert() local
595 son = (int)key1; in heap_insert()
597 son = h->elements; in heap_insert()
598 if (son == h->size) { /* need resize... */ in heap_insert()
603 h->p[son].object = p; in heap_insert()
604 h->p[son].key = key1; in heap_insert()
607 while (son > 0) { /* bubble up */ in heap_insert()
608 int father = HEAP_FATHER(son); in heap_insert()
611 if (DN_KEY_LT( h->p[father].key, h->p[son].key )) { in heap_insert()
615 HEAP_SWAP(h->p[son], h->p[father], tmp); in heap_insert()
616 SET_OFFSET(h, son); in heap_insert()
617 son = father; in heap_insert()
619 SET_OFFSET(h, son); in heap_insert()