Home
last modified time | relevance | path

Searched refs:compare_func (Results 1 – 25 of 38) sorted by relevance

12

/third_party/jerryscript/jerry-core/ecma/builtin-objects/
Decma-builtin-helpers-sort.c31 ecma_value_t compare_func, /**< compare function */ in ecma_builtin_helper_array_to_heap() argument
46 … ECMA_TRY_CATCH (child_compare_value, sort_cb (array_p[child], array_p[child + 1], compare_func), in ecma_builtin_helper_array_to_heap()
65 ECMA_TRY_CATCH (swap_compare_value, sort_cb (array_p[child], swap, compare_func), ret_value); in ecma_builtin_helper_array_to_heap()
113 ecma_value_t compare_func, /**< compare function */ in ecma_builtin_helper_array_heap_sort_helper() argument
122 … ecma_builtin_helper_array_to_heap (array_p, i - 1, right, compare_func, sort_cb), in ecma_builtin_helper_array_heap_sort_helper()
140 ecma_builtin_helper_array_to_heap (array_p, 0, i - 1, compare_func, sort_cb), in ecma_builtin_helper_array_heap_sort_helper()
Decma-builtin-helpers.h239 … ecma_value_t compare_func); /**< compare function */
243 ecma_value_t compare_func,
/third_party/pulseaudio/src/pulsecore/
Dhashmap.c45 pa_compare_func_t compare_func; member
58 pa_hashmap *pa_hashmap_new_full(pa_hash_func_t hash_func, pa_compare_func_t compare_func, pa_free_c… in pa_hashmap_new_full() argument
64 h->compare_func = compare_func ? compare_func : pa_idxset_trivial_compare_func; in pa_hashmap_new_full()
75 pa_hashmap *pa_hashmap_new(pa_hash_func_t hash_func, pa_compare_func_t compare_func) { in pa_hashmap_new() argument
76 return pa_hashmap_new_full(hash_func, compare_func, NULL, NULL); in pa_hashmap_new()
128 if (h->compare_func(e->key, key) == 0) in hash_scan()
Didxset.c48 pa_compare_func_t compare_func; member
83 pa_idxset* pa_idxset_new(pa_hash_func_t hash_func, pa_compare_func_t compare_func) { in pa_idxset_new() argument
89 s->compare_func = compare_func ? compare_func : pa_idxset_trivial_compare_func; in pa_idxset_new()
154 if (s->compare_func(e->data, p) == 0) in data_scan()
465 copy = pa_idxset_new(s->hash_func, s->compare_func); in pa_idxset_copy()
Dhashmap.h35 pa_hashmap *pa_hashmap_new(pa_hash_func_t hash_func, pa_compare_func_t compare_func);
39 pa_hashmap *pa_hashmap_new_full(pa_hash_func_t hash_func, pa_compare_func_t compare_func, pa_free_c…
Didxset.h55 pa_idxset* pa_idxset_new(pa_hash_func_t hash_func, pa_compare_func_t compare_func);
/third_party/glib/gobject/
Dgvaluearray.c328 GCompareFunc compare_func) in g_value_array_sort() argument
330 g_return_val_if_fail (compare_func != NULL, NULL); in g_value_array_sort()
336 compare_func); in g_value_array_sort()
358 GCompareDataFunc compare_func, in g_value_array_sort_with_data() argument
362 g_return_val_if_fail (compare_func != NULL, NULL); in g_value_array_sort_with_data()
368 compare_func, user_data); in g_value_array_sort_with_data()
Dgvaluearray.h94 GCompareFunc compare_func);
98 GCompareDataFunc compare_func,
/third_party/glib/glib/
Dgslist.c993 GFunc compare_func, in g_slist_sort_merge() argument
1003 cmp = ((GCompareDataFunc) compare_func) (l1->data, l2->data, user_data); in g_slist_sort_merge()
1023 GFunc compare_func, in g_slist_sort_real() argument
1045 return g_slist_sort_merge (g_slist_sort_real (list, compare_func, user_data), in g_slist_sort_real()
1046 g_slist_sort_real (l2, compare_func, user_data), in g_slist_sort_real()
1047 compare_func, in g_slist_sort_real()
1067 GCompareFunc compare_func) in g_slist_sort() argument
1069 return g_slist_sort_real (list, (GFunc) compare_func, NULL); in g_slist_sort()
1084 GCompareDataFunc compare_func, in g_slist_sort_with_data() argument
1087 return g_slist_sort_real (list, (GFunc) compare_func, user_data); in g_slist_sort_with_data()
Dgarray.h120 GCompareFunc compare_func);
123 GCompareDataFunc compare_func,
128 GCompareFunc compare_func,
207 GCompareFunc compare_func);
210 GCompareDataFunc compare_func,
273 GCompareFunc compare_func);
276 GCompareDataFunc compare_func,
Dglist.c1208 GFunc compare_func, in g_list_sort_merge() argument
1219 cmp = ((GCompareDataFunc) compare_func) (l1->data, l2->data, user_data); in g_list_sort_merge()
1243 GFunc compare_func, in g_list_sort_real() argument
1265 return g_list_sort_merge (g_list_sort_real (list, compare_func, user_data), in g_list_sort_real()
1266 g_list_sort_real (l2, compare_func, user_data), in g_list_sort_real()
1267 compare_func, in g_list_sort_real()
1300 GCompareFunc compare_func) in g_list_sort() argument
1302 return g_list_sort_real (list, (GFunc) compare_func, NULL); in g_list_sort()
1332 GCompareDataFunc compare_func, in g_list_sort_with_data() argument
1335 return g_list_sort_real (list, (GFunc) compare_func, user_data); in g_list_sort_with_data()
Dgarray.c818 GCompareFunc compare_func) in g_array_sort() argument
829 (GCompareDataFunc)compare_func, in g_array_sort()
850 GCompareDataFunc compare_func, in g_array_sort_with_data() argument
861 compare_func, in g_array_sort_with_data()
907 GCompareFunc compare_func, in g_array_binary_search() argument
916 g_return_val_if_fail (compare_func != NULL, FALSE); in g_array_binary_search()
927 val = compare_func (_array->data + (_array->elt_size * middle), target); in g_array_binary_search()
1984 GCompareFunc compare_func) in g_ptr_array_sort() argument
1993 (GCompareDataFunc)compare_func, in g_ptr_array_sort()
2061 GCompareDataFunc compare_func, in g_ptr_array_sort_with_data() argument
[all …]
Dgqsort.h40 GCompareDataFunc compare_func,
Dgslist.h130 GCompareFunc compare_func) G_GNUC_WARN_UNUSED_RESULT;
133 GCompareDataFunc compare_func,
Dglist.h141 GCompareFunc compare_func) G_GNUC_WARN_UNUSED_RESULT;
144 GCompareDataFunc compare_func,
Dgqsort.c300 GCompareDataFunc compare_func, in g_qsort_with_data() argument
303 msort_r ((gpointer)pbase, total_elems, size, compare_func, user_data); in g_qsort_with_data()
/third_party/python/Python/
Dhashtable.c141 if (entry->key_hash == key_hash && ht->compare_func(key, entry->key)) { in _Py_hashtable_get_entry_generic()
186 if (entry->key_hash == key_hash && ht->compare_func(key, entry->key)) { in _Py_hashtable_steal()
317 _Py_hashtable_compare_func compare_func, in _Py_hashtable_new_full() argument
349 ht->compare_func = compare_func; in _Py_hashtable_new_full()
354 && ht->compare_func == _Py_hashtable_compare_direct) in _Py_hashtable_new_full()
364 _Py_hashtable_compare_func compare_func) in _Py_hashtable_new() argument
366 return _Py_hashtable_new_full(hash_func, compare_func, in _Py_hashtable_new()
/third_party/gettext/libtextstyle/gnulib-local/lib/glib/
Dglist.c616 GFunc compare_func,
627 cmp = ((GCompareDataFunc) compare_func) (l1->data, l2->data, user_data);
651 GFunc compare_func,
673 return g_list_sort_merge (g_list_sort_real (list, compare_func, user_data),
674 g_list_sort_real (l2, compare_func, user_data),
675 compare_func,
681 GCompareFunc compare_func)
683 return g_list_sort_real (list, (GFunc) compare_func, NULL);
689 GCompareDataFunc compare_func,
692 return g_list_sort_real (list, (GFunc) compare_func, user_data);
Dglist.in.h122 GCompareFunc compare_func) G_GNUC_WARN_UNUSED_RESULT;
124 GCompareDataFunc compare_func,
/third_party/python/Include/internal/
Dpycore_hashtable.h67 _Py_hashtable_compare_func compare_func; member
83 _Py_hashtable_compare_func compare_func);
87 _Py_hashtable_compare_func compare_func,
/third_party/glib/gio/
Dgliststore.c303 GCompareDataFunc compare_func, in g_list_store_insert_sorted() argument
311 g_return_val_if_fail (compare_func != NULL, 0); in g_list_store_insert_sorted()
313 it = g_sequence_insert_sorted (store->items, g_object_ref (item), compare_func, user_data); in g_list_store_insert_sorted()
333 GCompareDataFunc compare_func, in g_list_store_sort() argument
339 g_return_if_fail (compare_func != NULL); in g_list_store_sort()
341 g_sequence_sort (store->items, compare_func, user_data); in g_list_store_sort()
Dgliststore.h49 … GCompareDataFunc compare_func,
54 … GCompareDataFunc compare_func,
/third_party/glib/glib/tests/
Dasyncqueue.c31 compare_func (gconstpointer d1, gconstpointer d2, gpointer data) in compare_func() function
52 g_async_queue_sort (q, compare_func, NULL); in test_async_queue_sort()
54 g_async_queue_push_sorted (q, GINT_TO_POINTER (1), compare_func, NULL); in test_async_queue_sort()
55 g_async_queue_push_sorted (q, GINT_TO_POINTER (8), compare_func, NULL); in test_async_queue_sort()
/third_party/jerryscript/jerry-core/ecma/builtin-objects/typedarray/
Decma-builtin-typedarray-prototype.c1398 … ecma_value_t compare_func) /**< compare function */ in ecma_builtin_typedarray_prototype_sort_compare_helper() argument
1403 if (ecma_is_value_undefined (compare_func)) in ecma_builtin_typedarray_prototype_sort_compare_helper()
1439 JERRY_ASSERT (ecma_op_is_callable (compare_func)); in ecma_builtin_typedarray_prototype_sort_compare_helper()
1440 ecma_object_t *comparefn_obj_p = ecma_get_object_from_value (compare_func); in ecma_builtin_typedarray_prototype_sort_compare_helper()
1489 ecma_value_t compare_func) /**< comparator fn */ in ecma_builtin_typedarray_prototype_sort() argument
1496 if (!ecma_is_value_undefined (compare_func) && !ecma_op_is_callable (compare_func)) in ecma_builtin_typedarray_prototype_sort()
1538 compare_func, in ecma_builtin_typedarray_prototype_sort()
/third_party/gstreamer/gstplugins_base/gst-libs/gst/gl/
Dgstgldisplay.h147 …gst_gl_display_find_window (GstGLDisplay * display, gpointer data, GCompareFunc compare_func);

12