Searched refs:cmp (Results 1 – 7 of 7) sorted by relevance
/lib/ |
D | list_sort.c | 19 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()
|
D | bsearch.c | 32 int (*cmp)(const void *key, const void *elt)) in bsearch() 39 result = cmp(key, pivot); in bsearch()
|
D | test_list_sort.c | 59 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()
|
D | sort.c | 152 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()
|
D | Kconfig.debug | 790 depends on $(cc-option,-fsanitize-coverage=trace-cmp)
|
/lib/mpi/ |
D | mpi-cmp.c | 47 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()
|
D | Makefile | 18 mpi-cmp.o \ 19 mpih-cmp.o \
|