Lines Matching refs:neighbor
804 void *neighbor; in avl_update_lt() local
806 ASSERT(((neighbor = AVL_NEXT(t, obj)) == NULL) || in avl_update_lt()
807 (t->avl_compar(obj, neighbor) <= 0)); in avl_update_lt()
809 neighbor = AVL_PREV(t, obj); in avl_update_lt()
810 if ((neighbor != NULL) && (t->avl_compar(obj, neighbor) < 0)) { in avl_update_lt()
821 void *neighbor; in avl_update_gt() local
823 ASSERT(((neighbor = AVL_PREV(t, obj)) == NULL) || in avl_update_gt()
824 (t->avl_compar(obj, neighbor) >= 0)); in avl_update_gt()
826 neighbor = AVL_NEXT(t, obj); in avl_update_gt()
827 if ((neighbor != NULL) && (t->avl_compar(obj, neighbor) > 0)) { in avl_update_gt()
838 void *neighbor; in avl_update() local
840 neighbor = AVL_PREV(t, obj); in avl_update()
841 if ((neighbor != NULL) && (t->avl_compar(obj, neighbor) < 0)) { in avl_update()
846 neighbor = AVL_NEXT(t, obj); in avl_update()
847 if ((neighbor != NULL) && (t->avl_compar(obj, neighbor) > 0)) { in avl_update()