Home
last modified time | relevance | path

Searched refs:compar (Results 1 - 25 of 29) sorted by relevance

12

/third_party/mesa3d/src/util/
H A Du_qsort.h36 int (*compar)(const void *, const void *, void *),
41 int (*compar)(const void*, const void*, void*); member
56 int (*compar)(const void *, const void *, void *), in util_qsort_r()
65 compar, in util_qsort_r()
71 qsort_r(base, nmemb, size, compar, arg); in util_qsort_r()
79 compar, in util_qsort_r()
85 qsort_s(base, nmemb, size, compar, arg); in util_qsort_r()
89 util_tls_qsort_r(base, nmemb, size, compar, arg); in util_qsort_r()
H A Du_qsort.cpp38 int (*compar)(const void *, const void *, void *), in util_tls_qsort_r()
41 tl_qsort_r_compar = compar; in util_tls_qsort_r()
51 return data->compar(elem1, elem2, data->args); in util_qsort_adapter()
/third_party/skia/third_party/externals/microhttpd/src/microhttpd/
H A Dtsearch.c23 tsearch(vkey, vrootp, compar) in tsearch()
26 int (*compar)(const void *, const void *);
37 if ((r = (*compar)(vkey, (*rootp)->key)) == 0) /* T2: */
57 tfind(vkey, vrootp, compar) in tfind()
60 int (*compar)(const void *, const void *);
70 if ((r = (*compar)(vkey, (*rootp)->key)) == 0) /* T2: */
84 * compar: function to carry out node comparisons
88 int (*compar)(const void *, const void *)) in tdelete()
97 while ((cmp = (*compar)(vkey, (*rootp)->key)) != 0) { in tdelete()
/third_party/musl/src/search/
H A Dlsearch.c5 int (*compar)(const void *, const void *)) in lsearch()
12 if (compar(key, p[i]) == 0) in lsearch()
19 size_t width, int (*compar)(const void *, const void *)) in lfind()
26 if (compar(key, p[i]) == 0) in lfind()
/third_party/node/deps/ngtcp2/ngtcp2/lib/
H A Dngtcp2_ksl.c56 void ngtcp2_ksl_init(ngtcp2_ksl *ksl, ngtcp2_ksl_compar compar, size_t keylen, in ngtcp2_ksl_init() argument
66 ksl->compar = compar; in ngtcp2_ksl_init()
266 const ngtcp2_ksl_key *key, ngtcp2_ksl_compar compar) { in ksl_bsearch()
271 i < blk->n && compar((ngtcp2_ksl_key *)node->key, key); in ksl_bsearch()
303 i = ksl_bsearch(ksl, blk, key, ksl->compar); in ngtcp2_ksl_insert()
307 !ksl->compar(key, ngtcp2_ksl_nth_node(ksl, blk, i)->key)) { in ngtcp2_ksl_insert()
350 if (ksl->compar((ngtcp2_ksl_key *)node->key, key)) { in ngtcp2_ksl_insert()
352 if (ksl->compar((ngtcp2_ksl_key *)node->key, key)) { in ngtcp2_ksl_insert()
493 * function |compar|
265 ksl_bsearch(ngtcp2_ksl *ksl, ngtcp2_ksl_blk *blk, const ngtcp2_ksl_key *key, ngtcp2_ksl_compar compar) ksl_bsearch() argument
495 key_equal(ngtcp2_ksl_compar compar, const ngtcp2_ksl_key *lhs, const ngtcp2_ksl_key *rhs) key_equal() argument
646 ngtcp2_ksl_lower_bound_compar(ngtcp2_ksl *ksl, const ngtcp2_ksl_key *key, ngtcp2_ksl_compar compar) ngtcp2_ksl_lower_bound_compar() argument
[all...]
H A Dngtcp2_ksl.h142 ngtcp2_ksl_compar compar; member
152 * ngtcp2_ksl_init initializes |ksl|. |compar| specifies compare
155 void ngtcp2_ksl_init(ngtcp2_ksl *ksl, ngtcp2_ksl_compar compar, size_t keylen,
212 * node which satisfies !compar(&node->key, key). If there is no such
221 * but it takes custom function |compar| to do lower bound search.
225 ngtcp2_ksl_compar compar);
/third_party/node/deps/ngtcp2/nghttp3/lib/
H A Dnghttp3_ksl.c57 void nghttp3_ksl_init(nghttp3_ksl *ksl, nghttp3_ksl_compar compar, in nghttp3_ksl_init() argument
67 ksl->compar = compar; in nghttp3_ksl_init()
272 nghttp3_ksl_compar compar) { in ksl_bsearch()
277 i < blk->n && compar((nghttp3_ksl_key *)node->key, key); in ksl_bsearch()
309 i = ksl_bsearch(ksl, blk, key, ksl->compar); in nghttp3_ksl_insert()
313 !ksl->compar(key, nghttp3_ksl_nth_node(ksl, blk, i)->key)) { in nghttp3_ksl_insert()
356 if (ksl->compar((nghttp3_ksl_key *)node->key, key)) { in nghttp3_ksl_insert()
358 if (ksl->compar((nghttp3_ksl_key *)node->key, key)) { in nghttp3_ksl_insert()
501 * function |compar|
270 ksl_bsearch(nghttp3_ksl *ksl, nghttp3_ksl_blk *blk, const nghttp3_ksl_key *key, nghttp3_ksl_compar compar) ksl_bsearch() argument
503 key_equal(nghttp3_ksl_compar compar, const nghttp3_ksl_key *lhs, const nghttp3_ksl_key *rhs) key_equal() argument
654 nghttp3_ksl_lower_bound_compar(nghttp3_ksl *ksl, const nghttp3_ksl_key *key, nghttp3_ksl_compar compar) nghttp3_ksl_lower_bound_compar() argument
[all...]
H A Dnghttp3_ksl.h144 nghttp3_ksl_compar compar; member
154 * nghttp3_ksl_init initializes |ksl|. |compar| specifies compare
157 void nghttp3_ksl_init(nghttp3_ksl *ksl, nghttp3_ksl_compar compar,
214 * node which satisfies !compar(&node->key, key). If there is no such
223 * but it takes custom function |compar| to do lower bound search.
227 nghttp3_ksl_compar compar);
/third_party/skia/third_party/externals/harfbuzz/src/
H A Dhb-algs.hh860 int (*compar)(const void *_key, const void *_item, Ts... _ds), in hb_bsearch_impl()
873 int c = compar ((const void *) hb_addressof (key), (const void *) p, ds...); in hb_bsearch_impl()
892 int (*compar)(const void *_key, const void *_item) = _hb_cmp_method<K, V>) in hb_bsearch()
897 return hb_bsearch_impl (&pos, key, base, nmemb, stride, compar) ? in hb_bsearch()
905 int (*compar)(const void *_key, const void *_item, Ts... _ds), in hb_bsearch()
911 return hb_bsearch_impl (&pos, key, base, nmemb, stride, compar, ds...) ? in hb_bsearch()
929 compar is the comparison function
933 int (*compar)(const void *_a, const void *_b, [void *_arg]),
954 int (*compar)(const void *_a, in sort_r_cmpswap()
959 if(compar( in sort_r_cmpswap()
[all...]
H A Dhb-buffer.hh386 HB_INTERNAL void sort (unsigned int start, unsigned int end, int(*compar)(const hb_glyph_info_t *, const hb_glyph_info_t *));
H A Dhb-buffer.cc1905 hb_buffer_t::sort (unsigned int start, unsigned int end, int(*compar)(const hb_glyph_info_t *, const hb_glyph_info_t *)) in sort()
1911 while (j > start && compar (&info[j - 1], &info[i]) > 0) in sort()
/third_party/toybox/toys/posix/
H A Dcut.c170 static int compar(unsigned *a, unsigned *b) in compar() function
238 qsort(toybuf, TT.pairs, 8, (void *)compar); in cut_main()
/third_party/libuv/src/unix/
H A Dos390-syscalls.h63 int (*compar)(const struct dirent **,
H A Dos390-syscalls.c36 int (*compar)(const struct dirent**, in scandir()
75 (int (*)(const void *, const void *)) compar); in scandir()
/third_party/node/deps/uv/src/unix/
H A Dos390-syscalls.h63 int (*compar)(const struct dirent **,
H A Dos390-syscalls.c36 int (*compar)(const struct dirent**, in scandir()
75 (int (*)(const void *, const void *)) compar); in scandir()
/third_party/eudev/src/shared/
H A Dutil.h328 int (*compar) (const void *, const void *, void *),
388 int (*compar)(const void *, const void *)) { in qsort_safe()
393 qsort(base, nmemb, size, compar); in qsort_safe()
H A Dutil.c1556 int (*compar) (const void *, const void *, void *), void *arg) { in xbsearch_r()
1566 comparison = compar(key, p, arg); in xbsearch_r()
/third_party/FreeBSD/lib/libc/gen/
H A Dfts.c116 int (*compar)(const FTSENT * const *, const FTSENT * const *)) in fts_open()
140 sp->fts_compar = compar; in fts_open()
180 if (compar) { in fts_open()
193 if (compar && nitems > 1) in fts_open()
/third_party/alsa-lib/src/alisp/
H A Dalisp.c3041 static int compar(const void *p1, const void *p2) in compar() function
3056 sizeof intrinsics[0], compar)) != NULL) { in eval_cons1()
3063 sizeof snd_intrinsics[0], compar)) != NULL) { in eval_cons1()
3401 sizeof intrinsics[0], compar)) != NULL) { in alsa_lisp_function()
3406 sizeof snd_intrinsics[0], compar)) != NULL) { in alsa_lisp_function()
/third_party/backends/backend/
H A Dmustek_pp_ccd300.c275 compar (const void *a, const void *b) in compar() function
672 qsort (maxbuf, 32, sizeof (maxbuf[0]), compar); in max_color_levels_101x()
688 qsort (maxbuf, 32, sizeof (maxbuf[0]), compar); in max_color_levels_101x()
701 qsort (maxbuf, 32, sizeof (maxbuf[0]), compar); in max_color_levels_101x()
/third_party/selinux/libsepol/cil/src/
H A Dcil_post.c2268 static int __cil_post_process_context_rules(struct cil_sort *sort, int (*compar)(const void *, const void *), int (*concompar)(const void *, const void *), struct cil_db *db, enum cil_flavor flavor, const char *flavor_str) in __cil_post_process_context_rules()
2280 qsort(sort->array, sort->count, sizeof(sort->array), compar); in __cil_post_process_context_rules()
2283 if (compar(&sort->array[i], &sort->array[j]) != 0) { in __cil_post_process_context_rules()
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/
H A Dscan.c2386 int (*compar)(const void *, const void *) = wpa_scan_result_compar; in wpa_supplicant_get_scan_results()
2413 compar = wpa_scan_result_wps_compar; in wpa_supplicant_get_scan_results()
2419 sizeof(struct wpa_scan_res *), compar); in wpa_supplicant_get_scan_results()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/
H A Dscan.c2787 int (*compar)(const void *, const void *) = wpa_scan_result_compar; in wpa_supplicant_get_scan_results()
2814 compar = wpa_scan_result_wps_compar; in wpa_supplicant_get_scan_results()
2820 sizeof(struct wpa_scan_res *), compar); in wpa_supplicant_get_scan_results()
/third_party/rust/crates/libc/src/unix/bsd/netbsdlike/openbsd/
H A Dmod.rs1870 compar: ::Option<unsafe extern "C" fn(*const ::c_void, *const ::c_void) -> ::c_int>, in lsearch()
1877 compar: ::Option<unsafe extern "C" fn(*const ::c_void, *const ::c_void) -> ::c_int>, in lfind()

Completed in 35 milliseconds

12