/third_party/glslang/glslang/Include/ |
H A D | arrays.h | 72 // TSmallArrayVector is used as the container for the set of sizes in TArraySizes. 79 // Almost all arrays could be handled by two sizes each fitting 81 // are more than 3 sizes or a size needing more than 16 bits. 85 TSmallArrayVector() : sizes(nullptr) { } in TSmallArrayVector() 91 if (from.sizes == nullptr) in operator =() 92 sizes = nullptr; in operator =() 95 *sizes = *from.sizes; in operator =() 103 if (sizes == nullptr) in size() 105 return (int)sizes in size() 215 TVector<TArraySize>* sizes; // will either hold such a pointer, or in the future, hold the two array sizes global() member 347 TSmallArrayVector sizes; global() member [all...] |
/third_party/ffmpeg/tests/checkasm/ |
H A D | hevc_pel.c | 31 static const int sizes[] = { -1, 4, 6, 8, 12, 16, 24, 32, 48, 64 }; variable 99 if (check_func(h.put_hevc_qpel[size][j][i], "put_hevc_%s%d_%d", type, sizes[size], bit_depth)) { in checkasm_check_hevc_qpel() 102 call_ref(dstw0, src0, sizes[size] * SIZEOF_PIXEL, sizes[size], i, j, sizes[size]); in checkasm_check_hevc_qpel() 103 call_new(dstw1, src1, sizes[size] * SIZEOF_PIXEL, sizes[size], i, j, sizes[size]); in checkasm_check_hevc_qpel() 104 for (row = 0; row < size[sizes]; row++) { in checkasm_check_hevc_qpel() 105 if (memcmp(dstw0 + row * MAX_PB_SIZE, dstw1 + row * MAX_PB_SIZE, sizes[siz in checkasm_check_hevc_qpel() [all...] |
/third_party/libdrm/radeon/ |
H A 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, in radeon_cs_do_space_check() [all...] |
/third_party/skia/src/core/ |
H A D | SkVertices.cpp | 110 Sizes sizes(desc); in init() 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(des in MakeCopy() 283 SkVertices::Sizes sizes = fVertices->getSizes(); encode() local [all...] |
H A D | SkDataTable.cpp | 88 const size_t sizes[], int count) { in MakeCopyArrays() 95 dataSize += sizes[i]; in MakeCopyArrays() 105 dir[i].fSize = sizes[i]; in MakeCopyArrays() 106 memcpy(elem, ptrs[i], sizes[i]); in MakeCopyArrays() 107 elem += sizes[i]; in MakeCopyArrays() 87 MakeCopyArrays(const void * const * ptrs, const size_t sizes[], int count) MakeCopyArrays() argument
|
/third_party/node/test/fixtures/wpt/WebCryptoAPI/derive_bits_keys/ |
H A D | ecdh_bits.js | 18 var sizes = { 30 return importKeys(pkcs8, spki, sizes) 37 Object.keys(sizes).forEach(function(namedCurve) { 40 return subtle.deriveBits({name: "ECDH", public: publicKeys[namedCurve]}, privateKeys[namedCurve], 8 * sizes[namedCurve]) 50 return subtle.deriveBits({name: "EcDh", public: publicKeys[namedCurve]}, privateKeys[namedCurve], 8 * sizes[namedCurve]) 70 return subtle.deriveBits({name: "ECDH", public: publicKeys[namedCurve]}, privateKeys[namedCurve], 8 * sizes[namedCurve] - 32) 72 assert_true(equalBuffers(derivation, derivations[namedCurve], 8 * sizes[namedCurve] - 32), "Derived correct bits"); 80 return subtle.deriveBits({name: "ECDH", public: publicKeys[namedCurve]}, privateKeys[namedCurve], 8 * sizes[namedCurve] - 11) 82 assert_true(equalBuffers(derivation, derivations[namedCurve], 8 * sizes[namedCurve] - 11), "Derived correct bits"); 92 return subtle.deriveBits({name: "ECDH"}, privateKeys[namedCurve], 8 * sizes[namedCurv [all...] |
H A D | cfrg_curves_bits.js | 24 derived = await subtle.deriveBits({name: algorithmName, public: publicKey}, privateKey, 8 * sizes[algorithmName]); 35 return importKeys(pkcs8, spki, sizes) 41 Object.keys(sizes).forEach(function(algorithmName) { 44 return subtle.deriveBits({name: algorithmName, public: publicKeys[algorithmName]}, privateKeys[algorithmName], 8 * sizes[algorithmName]) 54 return subtle.deriveBits({name: algorithmName.toLowerCase(), public: publicKeys[algorithmName]}, privateKeys[algorithmName], 8 * sizes[algorithmName]) 74 return subtle.deriveBits({name: algorithmName, public: publicKeys[algorithmName]}, privateKeys[algorithmName], 8 * sizes[algorithmName] - 32) 76 assert_true(equalBuffers(derivation, derivations[algorithmName], 8 * sizes[algorithmName] - 32), "Derived correct bits"); 84 return subtle.deriveBits({name: algorithmName, public: publicKeys[algorithmName]}, privateKeys[algorithmName], 8 * sizes[algorithmName] - 11) 86 assert_true(equalBuffers(derivation, derivations[algorithmName], 8 * sizes[algorithmName] - 11), "Derived correct bits"); 96 return subtle.deriveBits({name: algorithmName}, privateKeys[algorithmName], 8 * sizes[algorithmNam [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/debugging/ |
H A D | stacktrace.cc | 69 ABSL_ATTRIBUTE_ALWAYS_INLINE inline int Unwind(void** result, int* sizes, in Unwind() argument 78 int size = (*f)(result, sizes, max_depth, skip_count + 1, uc, in Unwind() 88 void** result, int* sizes, int max_depth, int skip_count) { in GetStackFrames() 89 return Unwind<true, false>(result, sizes, max_depth, skip_count, nullptr, in GetStackFrames() 94 GetStackFramesWithContext(void** result, int* sizes, int max_depth, in GetStackFramesWithContext() argument 97 return Unwind<true, true>(result, sizes, max_depth, skip_count, uc, in GetStackFramesWithContext() 118 int DefaultStackUnwinder(void** pcs, int* sizes, int depth, int skip, in DefaultStackUnwinder() argument 122 if (sizes == nullptr) { in DefaultStackUnwinder() 136 int n = (*f)(pcs, sizes, depth, skip, uc, min_dropped_frames); in DefaultStackUnwinder() 87 GetStackFrames( void** result, int* sizes, int max_depth, int skip_count) GetStackFrames() argument
|
H A D | stacktrace.h | 43 // and sizes in `results` and `sizes` buffers, and returns the number of frames 53 // int sizes[10]; 54 // int depth = absl::GetStackFrames(result, sizes, 10, 1); 69 // Corresponding stack frame sizes will also be recorded: 71 // sizes[0] 16 72 // sizes[1] 16 74 // (Stack frame sizes of `16` above are just for illustration purposes.) 76 // Stack frame sizes of 0 or less indicate that those frame sizes could [all...] |
/third_party/mesa3d/src/compiler/nir/ |
H A D | nir_constant_expressions.py | 11 sizes = None 13 sizes = set(type_sizes(op.output_type)) 17 if sizes is None: 18 sizes = set(type_sizes(input_type)) 20 sizes = sizes.intersection(set(type_sizes(input_type))) 22 return sorted(list(sizes)) if sizes is not None else None
|
/third_party/mesa3d/src/intel/compiler/ |
H A D | brw_ir_allocator.h | 37 sizes(NULL), offsets(NULL), count(0), total_size(0), capacity(0) in simple_allocator() 44 free(sizes); in ~simple_allocator() 53 sizes = (unsigned *)realloc(sizes, capacity * sizeof(unsigned)); in allocate() 57 sizes[count] = size; in allocate() 65 * Array of sizes for each allocation. The allocation unit is up to the 69 unsigned *sizes; member in brw::simple_allocator
|
H A D | brw_simd_selection.c | 166 const unsigned *sizes) in brw_simd_select_for_workgroup_size() 168 assert(sizes); in brw_simd_select_for_workgroup_size() 170 if (prog_data->local_size[0] == sizes[0] && in brw_simd_select_for_workgroup_size() 171 prog_data->local_size[1] == sizes[1] && in brw_simd_select_for_workgroup_size() 172 prog_data->local_size[2] == sizes[2]) in brw_simd_select_for_workgroup_size() 179 cloned.local_size[i] = sizes[i]; in brw_simd_select_for_workgroup_size() 164 brw_simd_select_for_workgroup_size(const struct intel_device_info *devinfo, const struct brw_cs_prog_data *prog_data, const unsigned *sizes) brw_simd_select_for_workgroup_size() argument
|
/third_party/skia/third_party/externals/dawn/src/tests/unittests/validation/ |
H A D | MinimumBufferSizeValidationTests.cpp | 61 [&](const std::vector<uint64_t>& sizes) { func(sizes, false); }); in CheckSizeBounds() 63 // Make sure correct sizes work in CheckSizeBounds() 68 [&](const std::vector<uint64_t>& sizes) { func(sizes, true); }); in CheckSizeBounds() 214 // Creates bind group layout with given minimum sizes for each binding 251 // Create a bind group with given binding sizes for each entry (backed by the same buffer) 338 // Fail if layout given has non-zero minimum sizes smaller than shader requirements 347 CheckSizeBounds({8, 4}, [&](const std::vector<uint64_t>& sizes, bool expectation) { 348 wgpu::BindGroupLayout layout = CreateBindGroupLayout(bindings, sizes); [all...] |
/third_party/ltp/testcases/kernel/syscalls/cma/ |
H A D | process_vm_readv03.c | 68 static void child_alloc(const int *sizes, int nr_iovecs) in child_alloc() argument 75 data_ptr[i] = sizes[i] ? SAFE_MALLOC(sizes[i]) : NULL; in child_alloc() 77 for (j = 0; j < sizes[i]; j++) { in child_alloc() 88 static void child_read(const int *sizes, int local_iovecs, int remote_iovecs, in child_read() argument 101 remote[i].iov_len = sizes[i]; in child_read() 162 int sizes[remote_iovecs]; in run() local 167 create_data_size(sizes, remote_iovecs, bufsize); in run() 171 child_alloc(sizes, remote_iovecs); in run() 179 child_read(sizes, local_iovec in run() [all...] |
/third_party/skia/third_party/externals/harfbuzz/src/ |
H A D | hb-aat-layout-trak-table.hh | 84 unsigned int sizes = nSizes; in interpolate_at() local 85 hb_array_t<const HBFixed> size_table ((base+sizeTable).arrayZ, sizes); in interpolate_at() 90 return t * trackTableEntry.get_value (base, idx + 1, sizes) + in interpolate_at() 91 (1.f - t) * trackTableEntry.get_value (base, idx, sizes); in interpolate_at() 119 unsigned int sizes = nSizes; in get_tracking() local 120 if (!sizes) return 0.; in get_tracking() 121 if (sizes == 1) return trackTableEntry->get_value (base, 0, sizes); in get_tracking() 123 hb_array_t<const HBFixed> size_table ((base+sizeTable).arrayZ, sizes); in get_tracking() 125 for (size_index = 0; size_index < sizes in get_tracking() [all...] |
/third_party/ltp/testcases/kernel/syscalls/getrandom/ |
H A D | getrandom03.c | 15 static unsigned int sizes[] = { variable 31 TEST(tst_syscall(__NR_getrandom, buf, sizes[n], 0)); in verify_getrandom() 33 if (TST_RET != sizes[n]) { in verify_getrandom() 35 TST_RET, sizes[n]); in verify_getrandom() 42 .tcnt = ARRAY_SIZE(sizes),
|
/third_party/skia/third_party/externals/brotli/research/ |
H A D | dictionary_generator.cc | 75 const std::vector<size_t>& sizes, const uint8_t* data) { in writeSamples() 80 size_t sampleSize = sizes[i]; in writeSamples() 137 std::vector<size_t> sizes; in main() local 273 sizes.push_back(content.size()); in main() 286 sizes.push_back(chunk.size()); in main() 307 targetSize, sliceLen, sizes, data.data())); in main() 310 targetSize, sizes, data.data())); in main() 313 targetSize, sliceLen, blockSize, sizes, data.data())); in main() 315 durchschlag_distill(sliceLen, minimumPopulation, &sizes, data.data()); in main() 316 writeSamples(argv, pathArgs, sizes, dat in main() 74 writeSamples(char const* argv[], const std::vector<int>& pathArgs, const std::vector<size_t>& sizes, const uint8_t* data) writeSamples() argument [all...] |
/third_party/ffmpeg/libavutil/ |
H A D | imgutils.c | 111 int av_image_fill_plane_sizes(size_t sizes[4], enum AVPixelFormat pix_fmt, in av_image_fill_plane_sizes() argument 117 memset(sizes , 0, sizeof(sizes[0])*4); in av_image_fill_plane_sizes() 124 sizes[0] = linesizes[0] * (size_t)height; in av_image_fill_plane_sizes() 127 sizes[1] = 256 * 4; /* palette is stored here as 256 32 bits words */ in av_image_fill_plane_sizes() 139 sizes[i] = (size_t)h * linesizes[i]; in av_image_fill_plane_sizes() 150 size_t sizes[4]; in av_image_fill_pointers() local 157 ret = av_image_fill_plane_sizes(sizes, pix_fmt, height, linesizes1); in av_image_fill_pointers() 163 if (sizes[i] > INT_MAX - ret) in av_image_fill_pointers() 165 ret += sizes[ in av_image_fill_pointers() 224 size_t total_size, sizes[4]; av_image_alloc() local 472 size_t sizes[4]; av_image_get_buffer_size() local [all...] |
/third_party/node/deps/base64/base64/test/ |
H A D | benchmark.c | 47 // Define buffer sizes to test with: 54 sizes[] = { variable 244 // Set buffer sizes to largest buffer length: in main() 245 b.regsz = sizes[0].len; in main() 246 b.encsz = sizes[0].len * 5 / 3; in main() 268 // Loop over all buffer sizes: in main() 269 for (size_t i = 0; i < sizeof(sizes) / sizeof(sizes[0]); i++) { in main() 271 sizes[i].label, sizes[ in main() [all...] |
/third_party/mesa3d/src/gallium/drivers/zink/ |
H A D | zink_descriptors_lazy.c | 126 descriptor_program_num_sizes(VkDescriptorPoolSize *sizes, enum zink_descriptor_type type) in descriptor_program_num_sizes() argument 130 return !!sizes[ZDS_INDEX_UBO].descriptorCount; in descriptor_program_num_sizes() 132 return !!sizes[ZDS_INDEX_COMBINED_SAMPLER].descriptorCount + in descriptor_program_num_sizes() 133 !!sizes[ZDS_INDEX_UNIFORM_TEXELS].descriptorCount; in descriptor_program_num_sizes() 135 return !!sizes[ZDS_INDEX_STORAGE_BUFFER].descriptorCount; in descriptor_program_num_sizes() 137 return !!sizes[ZDS_INDEX_STORAGE_IMAGE].descriptorCount + in descriptor_program_num_sizes() 138 !!sizes[ZDS_INDEX_STORAGE_TEXELS].descriptorCount; in descriptor_program_num_sizes() 145 descriptor_program_num_sizes_compact(VkDescriptorPoolSize *sizes, unsigned desc_set) in descriptor_program_num_sizes_compact() argument 149 return !!sizes[ZDS_INDEX_COMP_UBO].descriptorCount + !!sizes[ZDS_INDEX_COMP_STORAGE_BUFFE in descriptor_program_num_sizes_compact() 172 VkDescriptorPoolSize sizes[6] = {0}; //zink_descriptor_size_index zink_descriptor_program_init_lazy() local 370 create_pool(struct zink_screen *screen, unsigned num_type_sizes, const VkDescriptorPoolSize *sizes, unsigned flags) create_pool() argument 416 VkDescriptorPoolSize sizes[2]; create_push_pool() local [all...] |
/third_party/ltp/lib/ |
H A D | tst_buffers.c | 99 static int count_iovec(int *sizes) in count_iovec() argument 103 while (sizes[ret++] != -1); in count_iovec() 108 struct iovec *tst_iovec_alloc(int sizes[]) in tst_iovec_alloc() argument 110 int i, cnt = count_iovec(sizes); in tst_iovec_alloc() 119 if (sizes[i]) { in tst_iovec_alloc() 120 iovec[i].iov_base = tst_alloc(sizes[i]); in tst_iovec_alloc() 121 iovec[i].iov_len = sizes[i]; in tst_iovec_alloc()
|
/third_party/mesa3d/src/gallium/drivers/iris/ |
H A D | iris_binder.c | 133 unsigned sizes[MESA_SHADER_STAGES] = {}; in iris_binder_reserve_3d() local 141 /* Get the binding table sizes for each stage */ in iris_binder_reserve_3d() 147 sizes[stage] = align(shaders[stage]->bt.size_bytes, binder->alignment); in iris_binder_reserve_3d() 155 total_size += sizes[stage]; in iris_binder_reserve_3d() 178 binder->bt_offset[stage] = sizes[stage] > 0 ? offset : 0; in iris_binder_reserve_3d() 179 iris_record_state_size(ice->state.sizes, in iris_binder_reserve_3d() 180 binder->bo->address + offset, sizes[stage]); in iris_binder_reserve_3d() 181 offset += sizes[stage]; in iris_binder_reserve_3d()
|
/third_party/mesa3d/src/util/ |
H A D | vl_vlc.h | 45 const unsigned *sizes; member 89 unsigned len = vlc->sizes[0]; in vl_vlc_next_input() 105 ++vlc->sizes; in vl_vlc_next_input() 176 const void *const *inputs, const unsigned *sizes) in vl_vlc_init() 186 vlc->sizes = sizes; in vl_vlc_init() 190 vlc->bytes_left += sizes[i]; in vl_vlc_init() 175 vl_vlc_init(struct vl_vlc *vlc, unsigned num_inputs, const void *const *inputs, const unsigned *sizes) vl_vlc_init() argument
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ray_tracing/ |
H A D | vktRayTracingBuildTests.cpp | 615 const deUint32 sizes[] = { 4, 16, 64, 256, 1024 }; in buildTest() local 625 for (size_t sizesNdx = 0; sizesNdx < DE_LENGTH_OF_ARRAY(sizes); ++sizesNdx) in buildTest() 627 if (deviceBuild && sizes[sizesNdx] > 256) in buildTest() 630 const deUint32 largestGroup = sizes[sizesNdx] * sizes[sizesNdx] / factor / factor; in buildTest() 637 sizes[sizesNdx], // deUint32 width; in buildTest() 638 sizes[sizesNdx], // deUint32 height; in buildTest() 656 for (size_t sizesNdx = 0; sizesNdx < DE_LENGTH_OF_ARRAY(sizes); ++sizesNdx) in buildTest() 658 if (deviceBuild && sizes[sizesNdx] > 256) in buildTest() 661 const deUint32 largestGroup = sizes[sizesNd in buildTest() [all...] |
/third_party/musl/libc-test/src/functional/ |
H A D | test-malloc-stats-common.h | 34 static size_t sizes[SIZES_COUNT] = { variable 64 if (sizes[i] > MMAP_THRESHOLD) { in get_total_from_test_sizes() 65 total_stats.total_mmapped_memory += sizes[i]; in get_total_from_test_sizes() 68 total_stats.total_allocated_memory += sizes[i]; in get_total_from_test_sizes() 99 "total memory from test sizes"); in validate_total_allocated() 104 "total large memory from test sizes"); in validate_total_allocated()
|