/external/OpenCL-CTS/test_conformance/device_execution/ |
D | utils.h | 33 #define arr_size(a) (sizeof(a)/sizeof(a[0])) macro 36 #define KERNEL(name) { arr_size(name), name, #name }
|
D | host_queue_order.cpp | 125 cl_uint num = arr_size(result); in test_host_queue_order() 138 context, &program1, &kernel1, arr_size(enqueue_block_first_kernel), in test_host_queue_order() 143 context, &program2, &kernel2, arr_size(enqueue_block_second_kernel), in test_host_queue_order()
|
D | nested_blocks.cpp | 346 for(k = 0; k < arr_size(sources_nested_blocks); ++k) in test_enqueue_nested_blocks() 351 …nel (%d of %d) ...\n", sources_nested_blocks[k].src.kernel_name, k + 1, arr_size(sources_nested_bl… in test_enqueue_nested_blocks() 354 …ernel_name, 0, MAX_GLOBAL_WORK_SIZE, kernel_results, sizeof(kernel_results), arr_size(args), args); in test_enqueue_nested_blocks() 367 log_error("ERROR: %d of %d kernels failed.\n", failCnt, arr_size(sources_nested_blocks)); in test_enqueue_nested_blocks()
|
D | enqueue_block.cpp | 610 static const size_t num_kernels_enqueue_block = arr_size(sources_enqueue_block); 668 …else if((n = check_kernel_results(kernel_results, arr_size(kernel_results))) >= 0 && check_error(-… in test_enqueue_block()
|
D | enqueue_ndrange.cpp | 355 static const size_t num_kernels_ndrange_Xd = arr_size(sources_ndrange_Xd); 702 …urces_ndrange_Xd[i].src.kernel_name, kernel_results, sizeof(kernel_results), arr_size(args), args); in test_enqueue_ndrange() 708 …else if((k = check_kernel_results(kernel_results, arr_size(kernel_results))) >= 0 && check_error(-… in test_enqueue_ndrange()
|
D | enqueue_wg_size.cpp | 1666 for(k = 0; k < arr_size(sources_enqueue_wg_size); ++k) in test_enqueue_wg_size() 1671 …l (%d of %d) ...\n", sources_enqueue_wg_size[k].src.kernel_name, k + 1, arr_size(sources_enqueue_w… in test_enqueue_wg_size() 1684 for(i = 0; i < arr_size(prime); ++i) in test_enqueue_wg_size() 1703 …ernel_name, local_size, global_size, kernel_results, sizeof(kernel_results), arr_size(args), args); in test_enqueue_wg_size() 1715 log_error("ERROR: %d of %d kernels failed.\n", failCnt, arr_size(sources_enqueue_wg_size)); in test_enqueue_wg_size()
|
D | enqueue_flags.cpp | 671 static const size_t num_enqueue_block_flags = arr_size(sources_enqueue_block_flags); 725 …ernel_name, local_size, global_size, kernel_results, sizeof(kernel_results), arr_size(args), args); in test_enqueue_flags()
|
D | enqueue_multi_queue.cpp | 188 …else if((k = check_kernel_results(kernel_results, arr_size(kernel_results))) >= 0 && check_error(-… in test_enqueue_multi_queue()
|
D | host_multi_queue.cpp | 129 static const size_t num_kernels_multi_queue_block = arr_size(sources_multi_queue_block);
|
D | execute_block.cpp | 1002 static const size_t num_kernels_execute_block = arr_size(sources_execute_block); 1037 …else if((n = check_kernel_results(kernel_results, arr_size(kernel_results))) >= 0 && check_error(-… in test_execute_block()
|
/external/ltp/libs/libltpnuma/ |
D | tst_numa.c | 32 size_t arr_size = sizeof(unsigned int) * nodes->cnt; in tst_nodemap_reset_counters() local 35 nodes->counters = SAFE_MALLOC(arr_size); in tst_nodemap_reset_counters() 37 memset(nodes->counters, 0, arr_size); in tst_nodemap_reset_counters()
|
/external/tensorflow/tensorflow/core/kernels/ |
D | bincount_op_test.cc | 27 static Graph* Bincount(int arr_size, int nbins) { in Bincount() argument 30 Tensor arr(DT_INT32, TensorShape({arr_size})); in Bincount()
|
D | bincount_op.cc | 107 const std::ptrdiff_t arr_size = arr.size(); in Compute() local 109 if (weights.size() && weights.size() != arr_size) { in Compute() 117 for (int64_t i = 0; i < arr_size; i++) { in Compute() 124 for (int64_t i = 0; i < arr_size; i++) { in Compute() 140 arr_size, 8 /* cost */, in Compute()
|
/external/mesa3d/src/compiler/glsl/ |
D | gl_nir_lower_buffers.c | 48 unsigned arr_size = glsl_get_length(parent->type); in get_block_array_index() local 60 arr_index = nir_umin(b, arr_index, nir_imm_int(b, arr_size - 1)); in get_block_array_index() 71 array_elements *= arr_size; in get_block_array_index()
|
/external/OpenCL-CTS/test_conformance/basic/ |
D | test_progvar.cpp | 1614 const size_t arr_size = 10 * 1024 * 1024; in l_capacity() local 1615 cl_uchar* buffer = (cl_uchar*)align_malloc(arr_size, ALIGNMENT); in l_capacity() 1628 clCreateBuffer(context, CL_MEM_READ_WRITE, arr_size, 0, &status)); in l_capacity() 1661 for (size_t offset = 0; offset < max_size; offset += arr_size) in l_capacity() 1664 (max_size - offset) < arr_size ? (max_size - offset) : arr_size; in l_capacity() 1677 for (size_t offset = 0; offset < max_size; offset += arr_size) in l_capacity() 1680 (max_size - offset) < arr_size ? (max_size - offset) : arr_size; in l_capacity()
|
/external/blktrace/iowatcher/ |
D | plot.c | 155 int arr_size; in alloc_dot_data() local 163 arr_size = (rows + 1) * cols; in alloc_dot_data() 166 arr_size = (arr_size + 7) / 8; in alloc_dot_data() 168 gdd = calloc(1, size + arr_size); in alloc_dot_data()
|
/external/rust/crates/grpcio-sys/grpc/third_party/upb/upb/ |
D | table.c | 631 size_t arr_size = max[size_lg2] + 1; /* +1 so arr[max] will fit. */ in upb_inttable_compact2() local 636 upb_inttable_sizedinit(&new_t, arr_size, hashsize_lg2, a); in upb_inttable_compact2() 642 UPB_ASSERT(new_t.array_size == arr_size); in upb_inttable_compact2()
|
D | msg.h | 236 const size_t arr_size = UPB_ALIGN_UP(sizeof(upb_array), 8); in _upb_array_new() local 240 arr->data = _upb_tag_arrptr(UPB_PTR_AT(arr, arr_size, void), elem_size_lg2); in _upb_array_new()
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_linux.cc | 442 int arr_size) { in ReadNullSepFileToArray() argument 446 *arr = (char **)MmapOrDie(arr_size * sizeof(char *), "NullSepFileArray"); in ReadNullSepFileToArray() 457 CHECK_LE(count, arr_size - 1); // FIXME: make this more flexible. in ReadNullSepFileToArray()
|
/external/cronet/testing/libfuzzer/proto/ |
D | skia_image_filter_proto_converter.cc | 1221 const uint32_t arr_size = num_fields * sizeof(uint32_t); in Visit() local 1222 WriteNum(arr_size); in Visit()
|
/external/flatbuffers/tests/ |
D | test.cpp | 3835 const size_t arr_size = sizeof(MyGame::Example::ArrayStruct); in FixedLengthArrayTest() local 3836 char non_zero_memory[arr_size]; in FixedLengthArrayTest() 3838 std::memset(static_cast<void *>(non_zero_memory), 1, arr_size); in FixedLengthArrayTest() 3849 for (size_t i = 0; i < arr_size; ++i) { TEST_EQ(non_zero_memory[i], 0); } in FixedLengthArrayTest()
|
/external/mesa3d/src/compiler/nir/ |
D | nir_lower_io.c | 2001 nir_ssa_def *arr_size = in lower_explicit_io_array_length() local 2005 nir_ssa_def_rewrite_uses(&intrin->dest.ssa, nir_src_for_ssa(arr_size)); in lower_explicit_io_array_length()
|
/external/cronet/third_party/protobuf/php/ext/google/protobuf/ |
D | php-upb.h | 1519 const size_t arr_size = UPB_ALIGN_UP(sizeof(upb_Array), 8); in _upb_Array_New() local 1523 arr->data = _upb_tag_arrptr(UPB_PTR_AT(arr, arr_size, void), elem_size_lg2); in _upb_Array_New()
|
/external/protobuf/php/ext/google/protobuf/ |
D | php-upb.h | 1519 const size_t arr_size = UPB_ALIGN_UP(sizeof(upb_Array), 8); in _upb_Array_New() local 1523 arr->data = _upb_tag_arrptr(UPB_PTR_AT(arr, arr_size, void), elem_size_lg2); in _upb_Array_New()
|
/external/protobuf/ruby/ext/google/protobuf_c/ |
D | ruby-upb.h | 1550 const size_t arr_size = UPB_ALIGN_UP(sizeof(upb_Array), 8); in _upb_Array_New() local 1554 arr->data = _upb_tag_arrptr(UPB_PTR_AT(arr, arr_size, void), elem_size_lg2); in _upb_Array_New()
|