Lines Matching refs:cmp
33 int (*cmp)(void *key, const void *b), void *next[2])
36 unsigned int v = cmp(key, t->elem);
39 return av_tree_find(t->child[(v >> 31) ^ 1], key, cmp, next);
42 av_tree_find(t->child[0], key, cmp, next);
43 av_tree_find(t->child[1], key, cmp, next);
52 int (*cmp)(void *key, const void *b), AVTreeNode **next)
56 unsigned int v = cmp(t->elem, key);
64 av_tree_find(t->child[i], key, cmp, next_elem);
73 ret = av_tree_insert(&t->child[v >> 31], key, cmp, next);
144 int (*cmp)(void *opaque, void *elem),
148 int v = cmp ? cmp(opaque, t->elem) : 0;
150 av_tree_enumerate(t->child[0], opaque, cmp, enu);
154 av_tree_enumerate(t->child[1], opaque, cmp, enu);
191 static int cmp(void *a, const void *b)
215 av_tree_insert(&root, (void *) (j + 1), cmp, &node);
221 av_tree_insert(&root, (void *) (j + 1), cmp, &node2);
222 k = av_tree_find(root, (void *) (j + 1), cmp, NULL);