Lines Matching refs:idx
492 uu_avl_insert(uu_avl_t *ap, void *elem, uu_avl_index_t idx)
501 (void *)ap, elem, (void *)idx);
505 (void *)ap, elem, (void *)idx);
509 (void *)ap, elem, (void *)idx);
511 if (!INDEX_VALID(ap, idx))
513 (void *)ap, elem, (void *)idx,
514 INDEX_CHECK(idx)? "outdated index" :
522 avl_insert(&ap->ua_tree, elem, INDEX_DECODE(idx));
526 uu_avl_nearest_next(uu_avl_t *ap, uu_avl_index_t idx)
528 if (ap->ua_debug && !INDEX_VALID(ap, idx))
530 (void *)ap, (void *)idx, INDEX_CHECK(idx)?
532 return (avl_nearest(&ap->ua_tree, INDEX_DECODE(idx), AVL_AFTER));
536 uu_avl_nearest_prev(uu_avl_t *ap, uu_avl_index_t idx)
538 if (ap->ua_debug && !INDEX_VALID(ap, idx))
540 (void *)ap, (void *)idx, INDEX_CHECK(idx)?
542 return (avl_nearest(&ap->ua_tree, INDEX_DECODE(idx), AVL_BEFORE));