/external/angle/third_party/vulkan-deps/glslang/src/glslang/Include/ |
D | arrays.h | 85 TSmallArrayVector() : sizes(nullptr) { } in TSmallArrayVector() 91 if (from.sizes == nullptr) 92 sizes = nullptr; 95 *sizes = *from.sizes; 103 if (sizes == nullptr) in size() 105 return (int)sizes->size(); in size() 110 assert(sizes != nullptr && sizes->size() > 0); in frontSize() 111 return sizes->front().size; in frontSize() 116 assert(sizes != nullptr && sizes->size() > 0); in frontNode() 117 return sizes->front().node; in frontNode() [all …]
|
/external/deqp-deps/glslang/glslang/Include/ |
D | arrays.h | 85 TSmallArrayVector() : sizes(nullptr) { } in TSmallArrayVector() 91 if (from.sizes == nullptr) 92 sizes = nullptr; 95 *sizes = *from.sizes; 103 if (sizes == nullptr) in size() 105 return (int)sizes->size(); in size() 110 assert(sizes != nullptr && sizes->size() > 0); in frontSize() 111 return sizes->front().size; in frontSize() 116 assert(sizes != nullptr && sizes->size() > 0); in frontNode() 117 return sizes->front().node; in frontNode() [all …]
|
/external/fonttools/Lib/fontTools/ |
D | tfmLib.py | 182 sizes = SimpleNamespace() 183 unpack2(SIZES_FORMAT, data, sizes) 190 if sizes.lf < 0: 193 if len(data) < sizes.lf * 4: 196 for name, length in vars(sizes).items(): 200 if sizes.lh < 2: 203 if sizes.bc > sizes.ec + 1 or sizes.ec > 255: 208 if sizes.nw == 0 or sizes.nh == 0 or sizes.nd == 0 or sizes.ni == 0: 211 if sizes.ne > 256: 214 if sizes.lf != ( [all …]
|
/external/python/cpython2/Lib/test/ |
D | test_imgfile.py | 26 sizes = imgfile.getsizes(name) 37 sizes = imgfile.getsizes(name) 39 print 'Opening test image: %s, sizes: %s' % (name, str(sizes)) 54 imgfile.write (outputfile, image, sizes[0], sizes[1], sizes[2]) 58 print 'Opening scaled test image: %s, sizes: %s' % (name, str(sizes)) 73 simage = imgfile.readscaled (name, sizes[0]/2, sizes[1]/2, 'impulse', 2.0) 85 simage = imgfile.readscaled (name, sizes[0]/2, sizes[1]/2, 'triangle', 3.0) 91 simage = imgfile.readscaled (name, sizes[0]/2, sizes[1]/2, 'quadratic') 93 simage = imgfile.readscaled (name, sizes[0]/2, sizes[1]/2, 'gaussian', 1.0) 97 imgfile.write (outputfile, simage, sizes[0]/2, sizes[1]/2, sizes[2])
|
/external/OpenCL-CTS/test_conformance/gl/ |
D | test_images_2D.cpp | 32 void calc_2D_test_size_descriptors(sizevec_t* sizes, size_t nsizes) in calc_2D_test_size_descriptors() argument 46 sizes[i].width = random_in_range( 2, min(size, 1<<(i+4)), seed ); in calc_2D_test_size_descriptors() 47 sizes[i].height = random_in_range( 2, min(size, 1<<(i+4)), seed ); in calc_2D_test_size_descriptors() 48 sizes[i].depth = 1; in calc_2D_test_size_descriptors() 52 void calc_cube_test_size_descriptors(sizevec_t* sizes, size_t nsizes) in calc_cube_test_size_descriptors() argument 63 sizes[i].width = sizes[i].height = random_in_range( 2, min(maxQubeMapSize, 1<<(i+4)), seed ); in calc_cube_test_size_descriptors() 64 sizes[i].depth = 1; in calc_cube_test_size_descriptors() 77 sizevec_t sizes[nsizes]; in test_images_read_2D() local 78 calc_2D_test_size_descriptors(sizes, nsizes); in test_images_read_2D() 81 nformats, targets, ntargets, sizes, nsizes); in test_images_read_2D() [all …]
|
D | test_images_1D.cpp | 29 void calc_test_size_descriptors(sizevec_t* sizes, size_t nsizes) in calc_test_size_descriptors() argument 42 sizes[i].width = random_in_range( 2, min(size, 1<<(i+4)), seed ); in calc_test_size_descriptors() 43 sizes[i].height = 1; in calc_test_size_descriptors() 44 sizes[i].depth = 1; in calc_test_size_descriptors() 57 sizevec_t sizes[nsizes]; in test_images_read_1D() local 58 calc_test_size_descriptors(sizes, nsizes); in test_images_read_1D() 61 nformats, targets, ntargets, sizes, nsizes); in test_images_read_1D() 72 sizevec_t sizes[nsizes]; in test_images_write_1D() local 73 calc_test_size_descriptors(sizes, nsizes); in test_images_write_1D() 76 nformats, targets, ntargets, sizes, nsizes ); in test_images_write_1D() [all …]
|
D | test_images_depth.cpp | 33 void calc_depth_size_descriptors(sizevec_t* sizes, size_t nsizes) in calc_depth_size_descriptors() argument 46 sizes[i].width = random_in_range( 2, min(size, 1<<(i+4)), seed ); in calc_depth_size_descriptors() 47 sizes[i].height = random_in_range( 2, min(size, 1<<(i+4)), seed ); in calc_depth_size_descriptors() 48 sizes[i].depth = 1; in calc_depth_size_descriptors() 52 void calc_depth_array_size_descriptors(sizevec_t* sizes, size_t nsizes) in calc_depth_array_size_descriptors() argument 66 sizes[i].width = random_in_range( 2, min(size, 1<<(i+4)), seed ); in calc_depth_array_size_descriptors() 67 sizes[i].height = random_in_range( 2, min(size, 1<<(i+4)), seed ); in calc_depth_array_size_descriptors() 68 sizes[i].depth = random_in_range( 2, min(maxTextureLayers, 1<<(i+4)), seed ); in calc_depth_array_size_descriptors() 88 sizevec_t sizes[nsizes]; in test_images_read_2D_depth() local 89 calc_depth_size_descriptors(sizes, nsizes); in test_images_read_2D_depth() [all …]
|
D | test_images_multisample.cpp | 30 void calc_2D_multisample_size_descriptors(sizevec_t* sizes, size_t nsizes) in calc_2D_multisample_size_descriptors() argument 40 sizes[i].width = random_in_range( 2, min(maxTextureSize, 1<<(i+4)), seed ); in calc_2D_multisample_size_descriptors() 41 sizes[i].height = random_in_range( 2, min(maxTextureSize, 1<<(i+4)), seed ); in calc_2D_multisample_size_descriptors() 42 sizes[i].depth = 1; in calc_2D_multisample_size_descriptors() 46 void calc_2D_array_multisample_size_descriptors(sizevec_t* sizes, size_t nsizes) in calc_2D_array_multisample_size_descriptors() argument 57 sizes[i].width = random_in_range( 2, min(maxTextureSize, 1<<(i+4)), seed ); in calc_2D_array_multisample_size_descriptors() 58 sizes[i].height = random_in_range( 2, min(maxTextureSize, 1<<(i+4)), seed ); in calc_2D_array_multisample_size_descriptors() 59 sizes[i].depth = random_in_range( 2, min(maxTextureLayers, 1<<(i+4)), seed ); in calc_2D_array_multisample_size_descriptors() 74 sizevec_t sizes[nsizes]; in test_images_read_2D_multisample() local 75 calc_2D_multisample_size_descriptors(sizes, nsizes); in test_images_read_2D_multisample() [all …]
|
D | test_images_1Darray.cpp | 28 void calc_1D_array_size_descriptors(sizevec_t* sizes, size_t nsizes) in calc_1D_array_size_descriptors() argument 39 sizes[i].width = random_in_range( 2, min(maxTextureSize, 1<<(i+4)), seed ); in calc_1D_array_size_descriptors() 40 sizes[i].height = random_in_range( 2, min(maxTextureLayers, 1<<(i+4)), seed ); in calc_1D_array_size_descriptors() 41 sizes[i].depth = 1; in calc_1D_array_size_descriptors() 54 sizevec_t sizes[nsizes]; in test_images_read_1Darray() local 55 calc_1D_array_size_descriptors(sizes, nsizes); in test_images_read_1Darray() 58 nformats, targets, ntargets, sizes, nsizes); in test_images_read_1Darray() 69 sizevec_t sizes[nsizes]; in test_images_write_1Darray() local 70 calc_1D_array_size_descriptors(sizes, nsizes); in test_images_write_1Darray() 73 nformats, targets, ntargets, sizes, nsizes ); in test_images_write_1Darray() [all …]
|
D | test_images_2Darray.cpp | 29 void calc_2D_array_size_descriptors(sizevec_t* sizes, size_t nsizes) in calc_2D_array_size_descriptors() argument 40 sizes[i].width = random_in_range( 2, min(maxTextureSize, 1<<(i+4)), seed ); in calc_2D_array_size_descriptors() 41 sizes[i].height = random_in_range( 2, min(maxTextureSize, 1<<(i+4)), seed ); in calc_2D_array_size_descriptors() 42 sizes[i].depth = random_in_range( 2, min(maxTextureLayers, 1<<(i+4)), seed ); in calc_2D_array_size_descriptors() 55 sizevec_t sizes[nsizes]; in test_images_read_2Darray() local 56 calc_2D_array_size_descriptors(sizes, nsizes); in test_images_read_2Darray() 59 nformats, targets, ntargets, sizes, nsizes); in test_images_read_2Darray() 72 sizevec_t sizes[nsizes]; in test_images_write_2Darray() local 73 calc_2D_array_size_descriptors(sizes, nsizes); in test_images_write_2Darray() 76 nformats, targets, ntargets, sizes, nsizes ); in test_images_write_2Darray() [all …]
|
D | test_images_3D.cpp | 32 void calc_3D_size_descriptors(sizevec_t* sizes, size_t nsizes) in calc_3D_size_descriptors() argument 42 sizes[i].width = random_in_range( 2, min(maxTextureSize, 1<<(i+4)), seed ); in calc_3D_size_descriptors() 43 sizes[i].height = random_in_range( 2, min(maxTextureSize, 1<<(i+4)), seed ); in calc_3D_size_descriptors() 44 sizes[i].depth = random_in_range( 2, min(maxTextureSize, 1<<(i+4)), seed ); in calc_3D_size_descriptors() 56 sizevec_t sizes[nsizes]; in test_images_read_3D() local 57 calc_3D_size_descriptors(sizes, nsizes); in test_images_read_3D() 60 nformats, targets, ntargets, sizes, nsizes); in test_images_read_3D() 83 sizevec_t sizes[nsizes]; in test_images_write_3D() local 84 calc_3D_size_descriptors(sizes, nsizes); in test_images_write_3D() 87 nformats, targets, ntargets, sizes, nsizes ); in test_images_write_3D() [all …]
|
/external/linux-kselftest/tools/testing/selftests/arm64/mte/ |
D | check_buffer_fill.c | 16 static int sizes[] = { variable 35 item = sizeof(sizes)/sizeof(int); in check_buffer_by_byte() 38 ptr = (char *)mte_allocate_memory(sizes[i], mem_type, 0, true); in check_buffer_by_byte() 39 if (check_allocated_memory(ptr, sizes[i], mem_type, true) != KSFT_PASS) in check_buffer_by_byte() 41 mte_initialize_current_context(mode, (uintptr_t)ptr, sizes[i]); in check_buffer_by_byte() 43 for (j = 0; j < sizes[i]; j++) in check_buffer_by_byte() 48 for (j = 0; j < sizes[i] && !err; j++) { in check_buffer_by_byte() 52 mte_free_memory((void *)ptr, sizes[i], mem_type, true); in check_buffer_by_byte() 72 item = sizeof(sizes)/sizeof(int); in check_buffer_underflow_by_byte() 74 ptr = (char *)mte_allocate_memory_tag_range(sizes[i], mem_type, 0, in check_buffer_underflow_by_byte() [all …]
|
D | check_mmap_options.c | 28 static int sizes[] = { variable 64 int item = sizeof(sizes)/sizeof(int); in check_anonymous_memory_mapping() 66 item = sizeof(sizes)/sizeof(int); in check_anonymous_memory_mapping() 69 map_size = sizes[run] + OVERFLOW + UNDERFLOW; in check_anonymous_memory_mapping() 75 mte_initialize_current_context(mode, (uintptr_t)ptr, sizes[run]); in check_anonymous_memory_mapping() 77 ptr = mte_insert_tags((void *)ptr, sizes[run]); in check_anonymous_memory_mapping() 83 result = check_mte_memory(ptr, sizes[run], mode, tag_check); in check_anonymous_memory_mapping() 84 mte_clear_tags((void *)ptr, sizes[run]); in check_anonymous_memory_mapping() 96 int total = sizeof(sizes)/sizeof(int); in check_file_memory_mapping() 105 map_size = sizes[run] + UNDERFLOW + OVERFLOW; in check_file_memory_mapping() [all …]
|
D | check_child_memory.c | 24 static int sizes[] = { variable 88 int item = sizeof(sizes)/sizeof(int); in check_child_memory_mapping() 90 item = sizeof(sizes)/sizeof(int); in check_child_memory_mapping() 93 ptr = (char *)mte_allocate_memory_tag_range(sizes[run], mem_type, mapping, in check_child_memory_mapping() 95 if (check_allocated_memory_range(ptr, sizes[run], mem_type, in check_child_memory_mapping() 98 result = check_child_tag_inheritance(ptr, sizes[run], mode); in check_child_memory_mapping() 99 mte_free_memory_tag_range((void *)ptr, sizes[run], mem_type, UNDERFLOW, OVERFLOW); in check_child_memory_mapping() 110 int total = sizeof(sizes)/sizeof(int); in check_child_file_mapping() 118 map_size = sizes[run] + OVERFLOW + UNDERFLOW; in check_child_file_mapping() 125 mte_initialize_current_context(mode, (uintptr_t)ptr, sizes[run]); in check_child_file_mapping() [all …]
|
/external/skia/src/core/ |
D | SkVertices.cpp | 110 Sizes sizes(desc); in init() local 111 if (!sizes.isValid()) { in init() 116 void* storage = ::operator new (sizes.fTotal); in init() 117 if (sizes.fBuilderTriFanISize) { in init() 118 fIntermediateFanIndices.reset(new uint8_t[sizes.fBuilderTriFanISize]); in init() 133 fVertices->fPositions = (SkPoint*) advance(sizes.fVSize); in init() 134 fVertices->fTexs = (SkPoint*) advance(sizes.fTSize); in init() 135 fVertices->fColors = (SkColor*) advance(sizes.fCSize); in init() 136 fVertices->fIndices = (uint16_t*)advance(sizes.fISize); in init() 209 Sizes sizes(desc); in MakeCopy() local [all …]
|
/external/libdrm/radeon/ |
D | radeon_cs_space.c | 42 static inline int radeon_cs_setup_bo(struct radeon_cs_space_check *sc, struct rad_sizes *sizes) in radeon_cs_setup_bo() argument 71 sizes->op_vram_write += bo->size; in radeon_cs_setup_bo() 73 sizes->op_gart_write += bo->size; in radeon_cs_setup_bo() 76 sizes->op_read += bo->size; in radeon_cs_setup_bo() 89 sizes->op_read -= bo->size; in radeon_cs_setup_bo() 90 sizes->op_vram_write += bo->size; in radeon_cs_setup_bo() 92 sizes->op_read -= bo->size; in radeon_cs_setup_bo() 93 sizes->op_gart_write += bo->size; in radeon_cs_setup_bo() 114 struct rad_sizes sizes; in radeon_cs_do_space_check() local 122 memset(&sizes, 0, sizeof(struct rad_sizes)); in radeon_cs_do_space_check() [all …]
|
/external/OpenCL-CTS/test_conformance/basic/ |
D | test_basic_parameter_types.cpp | 59 int sizes[] = { 1, 2, 4, 8, 16 }; in test_parameter_types_long() local 99 parameter_size * sizes[size_to_test] + sizeof(cl_mem); in test_parameter_types_long() 105 (int)sizes[size_to_test], (int)total_parameter_size, in test_parameter_types_long() 110 log_info("Testing vector size %d\n", sizes[size_to_test]); in test_parameter_types_long() 113 if (sizes[size_to_test] > 1) in test_parameter_types_long() 141 kernel, count, sizeof(cl_long) * sizes[size_to_test], in test_parameter_types_long() 146 kernel, count, sizeof(cl_ulong) * sizes[size_to_test], in test_parameter_types_long() 173 for (index = 0; index < sizes[size_to_test]; index++) in test_parameter_types_long() 182 if (results_back[count * sizes[size_to_test] + index] in test_parameter_types_long() 189 results_back[count * sizes[size_to_test] + index], in test_parameter_types_long() [all …]
|
/external/tensorflow/tensorflow/core/framework/ |
D | tracking_allocator_test.cc | 78 std::tuple<size_t, size_t, size_t> sizes = ta->GetSizes(); in TEST() local 80 EXPECT_EQ(16, std::get<0>(sizes)); in TEST() 81 EXPECT_EQ(0, std::get<1>(sizes)); in TEST() 82 EXPECT_EQ(0, std::get<2>(sizes)); in TEST() 102 sizes = ta->GetSizes(); in TEST() 104 EXPECT_LE(16, std::get<0>(sizes)); in TEST() 105 EXPECT_LE(12, std::get<1>(sizes)); in TEST() 106 EXPECT_LE(12, std::get<2>(sizes)); in TEST() 127 std::tuple<size_t, size_t, size_t> sizes = ta->GetSizes(); in TEST() local 129 EXPECT_EQ(16, std::get<0>(sizes)); in TEST() [all …]
|
/external/eigen/bench/ |
D | dense_solvers.cpp | 12 std::vector<Array2i> sizes; variable 104 sizes.push_back(Array2i(small,small)); in main() 105 sizes.push_back(Array2i(100,100)); in main() 106 sizes.push_back(Array2i(1000,1000)); in main() 107 sizes.push_back(Array2i(4000,4000)); in main() 108 sizes.push_back(Array2i(10000,small)); in main() 109 sizes.push_back(Array2i(10000,100)); in main() 110 sizes.push_back(Array2i(10000,1000)); in main() 111 sizes.push_back(Array2i(10000,4000)); in main() 115 for(int k=0; k<sizes.size(); ++k) in main() [all …]
|
/external/tensorflow/tensorflow/python/ops/ |
D | nn_xent_test.py | 43 def _Inputs(self, x=None, y=None, dtype=dtypes.float64, sizes=None): argument 47 sizes = sizes if sizes else [len(x)] 48 logits = constant_op.constant(x, shape=sizes, dtype=dtype, name="logits") 49 targets = constant_op.constant(y, shape=sizes, dtype=dtype, name="targets") 50 losses = np.array(self._SigmoidCrossEntropyWithLogits(x, y)).reshape(*sizes) 76 logits, targets, losses = self._Inputs(dtype=dtype, sizes=[2, 2, 2]) 85 sizes = [4, 2] 87 logits, targets, _ = self._Inputs(sizes=sizes) 90 err = gradient_checker.compute_gradient_error(logits, sizes, loss, sizes) 122 def _Inputs(self, x=None, y=None, q=3.0, dtype=dtypes.float64, sizes=None): argument [all …]
|
/external/igt-gpu-tools/tests/i915/ |
D | gem_read_read_speed.c | 179 const int sizes[] = {1, 128, 256, 512, 1024, 2048, 4096, 8192, 0}; variable 205 for (i = 0; sizes[i] != 0; i++) { 206 igt_subtest_f("read-read-%dx%d", sizes[i], sizes[i]) 207 run(bufmgr, sizes[i], sizes[i], false, false); 208 igt_subtest_f("read-write-%dx%d", sizes[i], sizes[i]) 209 run(bufmgr, sizes[i], sizes[i], false, true); 210 igt_subtest_f("write-read-%dx%d", sizes[i], sizes[i]) 211 run(bufmgr, sizes[i], sizes[i], true, false); 212 igt_subtest_f("write-write-%dx%d", sizes[i], sizes[i]) 213 run(bufmgr, sizes[i], sizes[i], true, true);
|
/external/tensorflow/tensorflow/python/kernel_tests/proto/ |
D | proto_op_test_base.py | 55 test_case.sizes.append(0) 60 test_case.sizes.append(0) 65 test_case.sizes.append(0) 70 test_case.sizes.append(0) 75 test_case.sizes.append(0) 80 test_case.sizes.append(0) 85 test_case.sizes.append(0) 90 test_case.sizes.append(0) 95 test_case.sizes.append(0) 100 test_case.sizes.append(0) [all …]
|
/external/tensorflow/tensorflow/core/kernels/ |
D | reshape_op.h | 39 const Tensor& sizes = context->input(1); in Compute() local 43 (TensorShapeUtils::IsVector(sizes.shape()) || in Compute() 45 TensorShapeUtils::IsScalar(sizes.shape())), in Compute() 47 sizes.shape().DebugString())); in Compute() 49 context, sizes.NumElements() < TensorShape::MaxDimensions(), in Compute() 52 sizes.NumElements())); in Compute() 60 switch (sizes.dtype()) { in Compute() 63 ValidateSizes<int32>(sizes, &product, &unknown_index, in Compute() 68 ValidateSizes<int64_t>(sizes, &product, &unknown_index, in Compute() 74 DataTypeString(sizes.dtype()))); in Compute() [all …]
|
/external/angle/build/lacros/ |
D | lacros_resource_sizes.py | 203 sizes = collections.Counter() 204 sizes[_KEY_RAW] = _get_filesize(filename) 205 sizes[_KEY_GZIPPED] = _get_gzipped_filesize(filename) 208 sizes[_KEY_STRIPPED] = sizes[_KEY_RAW] 209 sizes[_KEY_STRIPPED_GZIPPED] = sizes[_KEY_GZIPPED] 217 sizes[_KEY_STRIPPED] = _get_filesize(temp_file) 218 sizes[_KEY_STRIPPED_GZIPPED] = _get_gzipped_filesize(temp_file) 219 if sizes[_KEY_STRIPPED] > sizes[_KEY_RAW]: 226 return sizes 272 def report_sizes(sizes, title, track_stripped, track_compressed): argument [all …]
|
/external/cronet/build/lacros/ |
D | lacros_resource_sizes.py | 201 sizes = collections.Counter() 202 sizes[_KEY_RAW] = _get_filesize(filename) 203 sizes[_KEY_GZIPPED] = _get_gzipped_filesize(filename) 206 sizes[_KEY_STRIPPED] = sizes[_KEY_RAW] 207 sizes[_KEY_STRIPPED_GZIPPED] = sizes[_KEY_GZIPPED] 215 sizes[_KEY_STRIPPED] = _get_filesize(temp_file) 216 sizes[_KEY_STRIPPED_GZIPPED] = _get_gzipped_filesize(temp_file) 217 if sizes[_KEY_STRIPPED] > sizes[_KEY_RAW]: 224 return sizes 270 def report_sizes(sizes, title, track_stripped, track_compressed): argument [all …]
|