Lines Matching refs:compar
839 int (*compar)(const void *_key, const void *_item, Ts... _ds), in hb_bsearch_impl()
852 int c = compar ((const void *) hb_addressof (key), (const void *) p, ds...); in hb_bsearch_impl()
871 int (*compar)(const void *_key, const void *_item) = _hb_cmp_method<K, V>)
876 return hb_bsearch_impl (&pos, key, base, nmemb, stride, compar) ?
884 int (*compar)(const void *_key, const void *_item, Ts... _ds), in hb_bsearch()
890 return hb_bsearch_impl (&pos, key, base, nmemb, stride, compar, ds...) ? in hb_bsearch()
933 int (*compar)(const void *_a, in sort_r_cmpswap()
938 if(compar(a, b, ds...) > 0) { in sort_r_cmpswap()
965 int (*compar)(const void *_a, in sort_r_simple()
979 for(pj = pi; pj > b && sort_r_cmpswap(pj-w,pj,w,compar,ds...); pj -= w) {} in sort_r_simple()
1001 if(compar(l[0],l[1],ds...) > 0) { SORT_R_SWAP(l[0], l[1], tmp); } in sort_r_simple()
1002 if(compar(l[1],l[2],ds...) > 0) { in sort_r_simple()
1004 if(compar(l[0],l[1],ds...) > 0) { SORT_R_SWAP(l[0], l[1], tmp); } in sort_r_simple()
1038 cmp = compar(pl, pivot, ds...); in sort_r_simple()
1051 cmp = compar(pr, pivot, ds...); in sort_r_simple()
1078 sort_r_simple(b, (pl-ple)/w, w, compar, ds...); in sort_r_simple()
1079 sort_r_simple(end-(pre-pr), (pre-pr)/w, w, compar, ds...); in sort_r_simple()
1085 int (*compar)(const void *_a, const void *_b)) in hb_qsort()
1088 qsort (base, nel, width, compar); in hb_qsort()
1090 sort_r_simple (base, nel, width, compar); in hb_qsort()
1096 int (*compar)(const void *_a, const void *_b, void *_arg), in hb_qsort()
1100 qsort_r (base, nel, width, compar, arg); in hb_qsort()
1102 sort_r_simple (base, nel, width, compar, arg); in hb_qsort()
1108 hb_stable_sort (T *array, unsigned int len, int(*compar)(const T2 *, const T2 *), T3 *array2) in hb_stable_sort()
1113 while (j && compar (&array[j - 1], &array[i]) > 0) in hb_stable_sort()
1133 hb_stable_sort (T *array, unsigned int len, int(*compar)(const T *, const T *)) in hb_stable_sort()
1135 hb_stable_sort (array, len, compar, (int *) nullptr); in hb_stable_sort()