Home
last modified time | relevance | path

Searched refs:num_items (Results 1 – 25 of 72) sorted by relevance

123

/external/igt-gpu-tools/tools/null_state_gen/
Dintel_batchbuffer.c43 assert(a->num_items < MAX_ITEMS); in bb_area_emit()
44 item = &a->item[a->num_items]; in bb_area_emit()
51 a->num_items++; in bb_area_emit()
59 assert(a->num_items < MAX_ITEMS); in bb_area_emit_offset()
60 assert(i < a->num_items); in bb_area_emit_offset()
71 assert (i < a->num_items); in bb_area_get()
77 return a->num_items; in bb_area_items()
83 assert(a->num_items <= MAX_ITEMS); in bb_area_used()
85 return a->num_items * 4; in bb_area_used()
91 assert (a->num_items <= MAX_ITEMS); in bb_area_room()
[all …]
Dintel_null_state_gen.c63 for (i = 0; i < batch->cmds->num_items; i++) { in print_state()
102 …fprintf(stderr, "State %lu (%lu bytes)\n", batch->state->num_items, batch->state->num_items * 4… in print_state()
103 fprintf(stderr, "Total %lu (%lu bytes)\n", batch->cmds->num_items, batch->cmds->num_items * 4); in print_state()
/external/libchrome/base/process/
Dmemory.cc36 bool UncheckedCalloc(size_t num_items, size_t size, void** result) { in UncheckedCalloc() argument
37 const size_t alloc_size = num_items * size; in UncheckedCalloc()
40 if (size && ((alloc_size / size) != num_items)) { in UncheckedCalloc()
Dmemory_stubs.cc39 bool UncheckedCalloc(size_t num_items, size_t size, void** result) { in UncheckedCalloc() argument
40 *result = calloc(num_items, size); in UncheckedCalloc()
/external/tensorflow/tensorflow/core/kernels/
Dwhere_op_gpu.cu.h70 const T* d_in, TIndex* d_out, int num_items, in operator()
77 is_nonzero_iter, d_out, num_items, stream, in operator()
85 const bool* d_in, TIndex* d_out, int num_items,
89 d_out, num_items, stream,
103 TIndex* d_num_selected_out, int num_items,
112 is_nonzero_iter /*d_flags*/, d_out, d_num_selected_out, num_items,
122 TIndex* d_num_selected_out, int num_items,
128 d_out, d_num_selected_out, num_items, stream, debug_synchronous);
Droll_op_test.cc461 const int64 num_items = \
463 state.SetItemsProcessed(num_items); \
464 state.SetBytesProcessed(num_items * sizeof(float)); \
481 const int64 num_items = \
483 state.SetItemsProcessed(num_items); \
484 state.SetBytesProcessed(num_items * sizeof(float)); \
/external/python/cpython3/Parser/
Dparsetok.c24 size_t num_items; member
32 arr->num_items = 0; in growable_comment_array_init()
39 if (arr->num_items >= arr->size) { in growable_comment_array_add()
49 arr->items[arr->num_items].lineno = lineno; in growable_comment_array_add()
50 arr->items[arr->num_items].comment = comment; in growable_comment_array_add()
51 arr->num_items++; in growable_comment_array_add()
57 for (unsigned i = 0; i < arr->num_items; i++) { in growable_comment_array_deallocate()
363 for (i = 0; i < type_ignores.num_items; i++) { in parsetok()
/external/boringssl/src/crypto/lhash/
Dlhash.c78 size_t num_items; member
132 size_t lh_num_items(const _LHASH *lh) { return lh->num_items; } in lh_num_items()
235 avg_chain_length = lh->num_items / lh->num_buckets; in lh_maybe_resize()
284 lh->num_items++; in lh_insert()
308 lh->num_items--; in lh_delete()
/external/rust/crates/quiche/deps/boringssl/src/crypto/lhash/
Dlhash.c78 size_t num_items; member
132 size_t lh_num_items(const _LHASH *lh) { return lh->num_items; } in lh_num_items()
235 avg_chain_length = lh->num_items / lh->num_buckets; in lh_maybe_resize()
284 lh->num_items++; in lh_insert()
308 lh->num_items--; in lh_delete()
/external/OpenCL-CTS/test_conformance/SVM/
Dtest_fine_grain_memory_consistency.cpp105 cl_uint num_items = 0; in launch_kernels_and_verify() local
117 num_items++; in launch_kernels_and_verify()
127 if(num_items != num_pixels * (num_devices + 1) ) in launch_kernels_and_verify()
129 …log_error("The hash table is not correct, num items %d, expected num items: %d\n", num_items, num_… in launch_kernels_and_verify()
/external/tensorflow/tensorflow/c/
Dc_api_experimental.cc538 TF_ShapeAndTypeList* TF_NewShapeAndTypeList(int num_items) { in TF_NewShapeAndTypeList() argument
540 result->num_items = num_items; in TF_NewShapeAndTypeList()
541 result->items = (num_items == 0) ? nullptr : new TF_ShapeAndType[num_items](); in TF_NewShapeAndTypeList()
547 DCHECK(index >= 0 && index < shape_list->num_items); in TF_ShapeAndTypeListSetShape()
558 DCHECK(index >= 0 && index < shape_list->num_items); in TF_ShapeAndTypeListSetUnknownShape()
567 DCHECK(index >= 0 && index < shape_list->num_items); in TF_ShapeAndTypeListSetDtype()
574 for (size_t i = 0; i < shape_list->num_items; ++i) { in TF_DeleteShapeAndTypeList()
582 int num_items) { in TF_DeleteShapeAndTypeListArray() argument
584 for (int i = 0; i < num_items; ++i) { in TF_DeleteShapeAndTypeListArray()
612 const int num_inputs = input_shapes->num_items; in TFE_InferShapes()
/external/mesa3d/src/util/
Dslab.c107 unsigned num_items) in slab_create_parent() argument
112 parent->num_elements = num_items; in slab_create_parent()
313 unsigned num_items) in slab_create() argument
315 slab_create_parent(&mempool->parent, item_size, num_items); in slab_create()
Dslab.h74 unsigned num_items);
89 unsigned num_items);
Dsparse_array.c237 uint32_t *items, unsigned num_items) in util_sparse_array_free_list_push() argument
239 assert(num_items > 0); in util_sparse_array_free_list_push()
243 for (unsigned i = 1; i < num_items; i++) { in util_sparse_array_free_list_push()
/external/libdrm/intel/
Duthash.h263 (head)->hh.tbl->num_items++; \
299 (head)->hh.tbl->num_items++; \
367 (head)->hh.tbl->num_items--; \
427 if (_count != (head)->hh.tbl->num_items) { \
429 (head)->hh.tbl->num_items, _count ); \
445 if (_count != (head)->hh.tbl->num_items) { \
447 (head)->hh.tbl->num_items, _count ); \
803 (tbl->num_items >> (tbl->log2_num_buckets+1U)) + \
804 (((tbl->num_items & ((tbl->num_buckets*2U)-1U)) != 0U) ? 1U : 0U); \
830 tbl->ineff_expands = (tbl->nonideal_items > (tbl->num_items >> 1)) ? \
[all …]
/external/mesa3d/src/intel/vulkan/
Danv_gem_stubs.c265 uint32_t num_items, int64_t abs_timeout_ns, in anv_gem_syncobj_timeline_wait() argument
274 uint32_t num_items) in anv_gem_syncobj_timeline_signal() argument
282 uint32_t num_items) in anv_gem_syncobj_timeline_query() argument
Danv_gem.c611 uint32_t num_items, int64_t abs_timeout_ns, in anv_gem_syncobj_timeline_wait() argument
619 .count_handles = num_items, in anv_gem_syncobj_timeline_wait()
635 uint32_t num_items) in anv_gem_syncobj_timeline_signal() argument
642 .count_handles = num_items, in anv_gem_syncobj_timeline_signal()
651 uint32_t num_items) in anv_gem_syncobj_timeline_query() argument
658 .count_handles = num_items, in anv_gem_syncobj_timeline_query()
/external/fastrpc/inc/
Duthash.h175 (head)->hh.tbl->num_items++; \
232 (head)->hh.tbl->num_items--; \
294 if (_count != (head)->hh.tbl->num_items) { \
296 (head)->hh.tbl->num_items, _count ); \
312 if (_count != (head)->hh.tbl->num_items) { \
314 (head)->hh.tbl->num_items, _count ); \
665 (tbl->num_items >> (tbl->log2_num_buckets+1)) + \
666 ((tbl->num_items & ((tbl->num_buckets*2)-1)) ? 1 : 0); \
692 tbl->ineff_expands = (tbl->nonideal_items > (tbl->num_items >> 1)) ? \
818 (dst)->hh_dst.tbl->num_items++; \
[all …]
/external/tensorflow/tensorflow/tools/android/test/jni/object_tracking/
Dframe_pair.cc202 static float GetMedian(const int num_items, in GetMedian() argument
205 if (num_items == 0 || sum < EPSILON) { in GetMedian()
211 for (int i = 0; i < num_items; ++i) { in GetMedian()
219 LOGW("Median not found! %d points, sum of %.2f", num_items, sum); in GetMedian()
/external/webrtc/modules/rtp_rtcp/source/rtcp_packet/
Dtarget_bitrate.cc78 const size_t num_items = payload_bytes / kBitrateItemSizeBytes; in Parse() local
81 for (size_t i = 0; i < num_items; ++i) { in Parse()
/external/rust/crates/itertools/src/
Dtuple_impl.rs154 if T::num_items() != 1 { in tuple_windows()
177 if T::num_items() == 1 { in next()
242 fn num_items() -> usize; in num_items() method
310 fn num_items() -> usize {
/external/wpa_supplicant_8/wpa_supplicant/dbus/
Ddbus_dict_helpers.h97 const dbus_uint32_t num_items);
102 const dbus_uint32_t num_items);
Ddbus_dict_helpers.c505 const dbus_uint32_t num_items) in wpa_dbus_dict_append_string_array() argument
510 if (!key || (!items && num_items != 0) || in wpa_dbus_dict_append_string_array()
516 for (i = 0; i < num_items; i++) { in wpa_dbus_dict_append_string_array()
541 const dbus_uint32_t num_items) in wpa_dbus_dict_append_wpabuf_array() argument
547 (!items && num_items != 0) || in wpa_dbus_dict_append_wpabuf_array()
555 for (i = 0; i < num_items; i++) { in wpa_dbus_dict_append_wpabuf_array()
/external/freetype/src/sfnt/
Dttbdf.c110 FT_UInt num_items = FT_PEEK_USHORT( p + 2 ); in tt_face_load_bdf_props() local
116 strike += 10 * num_items; in tt_face_load_bdf_props()
/external/crosvm/disk/src/qcow/
Dvec_cache.rs181 let num_items = (0..=3).filter(|k| cache.contains_key(&k)).count(); in evicts_when_full() localVariable
182 assert_eq!(num_items, 3); in evicts_when_full()

123