Home
last modified time | relevance | path

Searched refs:cmp (Results 1 – 7 of 7) sorted by relevance

/lib/
Dlist_sort.c19 static struct list_head *merge(void *priv, cmp_func cmp, in merge() argument
26 if (cmp(priv, a, b) <= 0) { in merge()
55 static void merge_final(void *priv, cmp_func cmp, struct list_head *head, in merge_final() argument
63 if (cmp(priv, a, b) <= 0) { in merge_final()
93 cmp(priv, b, b); in merge_final()
189 int (*cmp)(void *priv, struct list_head *a, in list_sort()
230 a = merge(priv, cmp, b, a); in list_sort()
252 list = merge(priv, cmp, pending, list); in list_sort()
256 merge_final(priv, cmp, head, pending, list); in list_sort()
Dbsearch.c32 int (*cmp)(const void *key, const void *elt)) in bsearch()
39 result = cmp(key, pivot); in bsearch()
Dtest_list_sort.c59 static int __init cmp(void *priv, struct list_head *a, struct list_head *b) in cmp() function
97 list_sort(NULL, &head, cmp); in list_sort_test()
109 cmp_result = cmp(NULL, cur, cur->next); in list_sort_test()
Dsort.c152 cmp_r_func_t cmp, const void *priv) in do_cmp() argument
154 if (cmp == _CMP_WRAPPER) in do_cmp()
156 return cmp(a, b, priv); in do_cmp()
DKconfig.debug790 depends on $(cc-option,-fsanitize-coverage=trace-cmp)
/lib/mpi/
Dmpi-cmp.c47 int cmp; in mpi_cmp() local
63 cmp = mpihelp_cmp(u->d, v->d, usize); in mpi_cmp()
65 return -cmp; in mpi_cmp()
66 return cmp; in mpi_cmp()
DMakefile18 mpi-cmp.o \
19 mpih-cmp.o \