/third_party/skia/third_party/externals/abseil-cpp/absl/strings/ |
H A D | cord.cc | 253 rep->length = data.size(); in InitializeCordRepExternal() 285 src.size() <= kMaxBytesToCopy || in CordRepFromString() 287 src.size() < src.capacity() / 2 in CordRepFromString() 289 return NewTree(src.data(), src.size(), 0); in CordRepFromString() 418 // nodes to account for the size increase. The append region address will be 419 // written to region and the actual size increase will be written to size. 421 size_t* size, size_t max_length) { in PrepareAppendRegion() 426 *size = span.size(); in PrepareAppendRegion() 420 PrepareAppendRegion(CordRep* root, char** region, size_t* size, size_t max_length) PrepareAppendRegion() argument 465 GetAppendRegion(char** region, size_t* size, size_t length) GetAppendRegion() argument [all...] |
/third_party/vk-gl-cts/external/openglcts/modules/gles31/ |
H A D | es31cDrawIndirectTests.cpp | 386 void GetBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, GLvoid* data); 412 if (widthRef * heightRef > dataRef.size()) in DataCompare() 415 if (widthTest * heightTest > dataTest.size()) in DataCompare() 849 for (size_t i = 0; i < uData.size(); i++) in ReadPixelsFloat() 861 for (size_t i = 0; i < uData.size(); i++) in ReadPixelsFloat() 872 void DrawIndirectBase::GetBufferSubData<test_api::GL>(GLenum target, GLintptr offset, GLsizeiptr size, GLvoid* data) in GetBufferSubData() argument 874 glGetBufferSubData(target, offset, size, data); in GetBufferSubData() 878 void DrawIndirectBase::GetBufferSubData<test_api::ES3>(GLenum target, GLintptr offset, GLsizeiptr size, GLvoid* data) in GetBufferSubData() argument 880 void* ptr = glMapBufferRange(target, offset, size, GL_MAP_READ_BIT); in GetBufferSubData() 881 memcpy(data, ptr, size); in GetBufferSubData() [all...] |
/third_party/protobuf/csharp/src/Google.Protobuf.Benchmarks/ |
H A D | BenchmarkMessage1Proto3.cs | 1051 int size = 0; in CalculateSize() 1053 size += 1 + pb::CodedOutputStream.ComputeStringSize(Field1); in CalculateSize() 1056 size += 1 + pb::CodedOutputStream.ComputeStringSize(Field9); in CalculateSize() 1059 size += 2 + pb::CodedOutputStream.ComputeStringSize(Field18); in CalculateSize() 1062 size += 2 + 1; in CalculateSize() 1065 size += 2 + 1; in CalculateSize() 1068 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Field2); in CalculateSize() 1071 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Field3); in CalculateSize() 1074 size += 2 + pb::CodedOutputStream.ComputeInt32Size(Field280); in CalculateSize() 1077 size in CalculateSize() [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | audiotoolboxdec.c | 133 static AudioChannelLayout *ffat_convert_layout(AudioChannelLayout *layout, UInt32* size) in ffat_convert_layout() argument 141 sizeof(UInt32), &layout->mChannelBitmap, size); in ffat_convert_layout() 144 sizeof(AudioChannelLayoutTag), &tag, size); in ffat_convert_layout() 145 new_layout = av_malloc(*size); in ffat_convert_layout() 152 sizeof(UInt32), &layout->mChannelBitmap, size, new_layout); in ffat_convert_layout() 155 sizeof(AudioChannelLayoutTag), &tag, size, new_layout); in ffat_convert_layout() 165 UInt32 size = sizeof(format); in ffat_update_ctx() local 168 &size, &format)) { in ffat_update_ctx() 178 &size, &format)) { in ffat_update_ctx() 183 size, in ffat_update_ctx() 222 put_descr(PutByteContext *pb, int tag, unsigned int size) put_descr() argument [all...] |
H A D | vc1_common.h | 70 static av_always_inline int vc1_unescape_buffer(const uint8_t *src, int size, uint8_t *dst) in vc1_unescape_buffer() argument 74 if (size < 4) { in vc1_unescape_buffer() 75 for (dsize = 0; dsize < size; dsize++) in vc1_unescape_buffer() 77 return size; in vc1_unescape_buffer() 79 for (i = 0; i < size; i++, src++) { in vc1_unescape_buffer() 80 if (src[0] == 3 && i >= 2 && !src[-1] && !src[-2] && i < size-1 && src[1] < 4) { in vc1_unescape_buffer()
|
/third_party/json/tests/thirdparty/Fuzzer/ |
H A D | FuzzerMutate.cpp | 24 PrintASCII(W.data(), W.size(), PrintAfter); in PrintASCII() 78 if (!Corpus || Corpus->size() < 2 || Size == 0) in Mutate_CustomCrossOver() 80 size_t Idx = Rand(Corpus->size()); in Mutate_CustomCrossOver() 87 Data, Size, Other.data(), Other.size(), U.data(), U.size(), Rand.Rand()); in Mutate_CustomCrossOver() 181 DE.GetPositionHint() + W.size() < Size && in ApplyDictionaryEntry() 184 if (Size + W.size() > MaxSize) return 0; in ApplyDictionaryEntry() 186 memmove(Data + Idx + W.size(), Data + Idx, Size - Idx); in ApplyDictionaryEntry() 187 memcpy(Data + Idx, W.data(), W.size()); in ApplyDictionaryEntry() 188 Size += W.size(); in ApplyDictionaryEntry() [all...] |
/third_party/mesa3d/src/gallium/frontends/nine/ |
H A D | nine_pipe.h | 529 unsigned texcount, i, size = 0; in nine_fvf_stride() local 532 case D3DFVF_XYZ: size += 3*4; break; in nine_fvf_stride() 533 case D3DFVF_XYZRHW: size += 4*4; break; in nine_fvf_stride() 534 case D3DFVF_XYZB1: size += 4*4; break; in nine_fvf_stride() 535 case D3DFVF_XYZB2: size += 5*4; break; in nine_fvf_stride() 536 case D3DFVF_XYZB3: size += 6*4; break; in nine_fvf_stride() 537 case D3DFVF_XYZB4: size += 7*4; break; in nine_fvf_stride() 538 case D3DFVF_XYZB5: size += 8*4; break; in nine_fvf_stride() 539 case D3DFVF_XYZW: size += 4*4; break; in nine_fvf_stride() 545 if (fvf & D3DFVF_NORMAL) { size in nine_fvf_stride() 820 unsigned w, h, size; nine_format_get_level_alloc_size() local 843 unsigned l, w, h, size = 0; nine_format_get_size_and_offsets() local [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ycbcr/ |
H A D | vktYCbCrFormatTests.cpp | 72 const UVec2& size, in createTestImage() 85 makeExtent3D(size.x(), size.y(), 1u), in createTestImage() 225 UVec2 size; member 240 , size (size_) in TestParameters() 322 const UVec2 size = params.size; in testFormat() local 329 const Unique<VkImage> image (createTestImage(vkd, device, format, size, createFlags, tiling, mappedMemory ? VK_IMAGE_LAYOUT_PREINITIALIZED : VK_IMAGE_LAYOUT_UNDEFINED, arrayLayers)); in testFormat() 431 MultiPlaneImageData imageData (format, size); in testFormat() 501 generateLookupCoordinates(size, in testFormat() 69 createTestImage(const DeviceInterface& vkd, VkDevice device, VkFormat format, const UVec2& size, VkImageCreateFlags createFlags, VkImageTiling tiling, VkImageLayout layout, deUint32 arrayLayers) createTestImage() argument [all...] |
/third_party/python/Modules/_ctypes/ |
H A D | stgdict.c | 80 Py_ssize_t size; in PyCStgDict_clone() local 122 size = sizeof(ffi_type *) * (src->length + 1); in PyCStgDict_clone() 123 dst->ffi_type_pointer.elements = PyMem_Malloc(size); in PyCStgDict_clone() 130 size); in PyCStgDict_clone() 268 new_descr->size = fdescr->size; in MakeFields() 354 Py_ssize_t len, offset, size, align, i; in PyCStructUnionType_update_stgdict() local 464 size = offset = basedict->size; in PyCStructUnionType_update_stgdict() 484 size in PyCStructUnionType_update_stgdict() [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/ycbcr/ |
H A D | vktYCbCrFormatTests.cpp | 72 const UVec2& size, in createTestImage() 85 makeExtent3D(size.x(), size.y(), 1u), in createTestImage() 225 UVec2 size; member 240 , size (size_) in TestParameters() 322 const UVec2 size = params.size; in testFormat() local 329 const Unique<VkImage> image (createTestImage(vkd, device, format, size, createFlags, tiling, mappedMemory ? VK_IMAGE_LAYOUT_PREINITIALIZED : VK_IMAGE_LAYOUT_UNDEFINED, arrayLayers)); in testFormat() 431 MultiPlaneImageData imageData (format, size); in testFormat() 501 generateLookupCoordinates(size, in testFormat() 69 createTestImage(const DeviceInterface& vkd, VkDevice device, VkFormat format, const UVec2& size, VkImageCreateFlags createFlags, VkImageTiling tiling, VkImageLayout layout, deUint32 arrayLayers) createTestImage() argument [all...] |
/third_party/libunwind/libunwind/src/mi/ |
H A D | backtrace.c | 36 slow_backtrace (void **buffer, int size, unw_context_t *uc) in slow_backtrace() argument 47 if (n >= size) in slow_backtrace() 58 unw_backtrace (void **buffer, int size) in unw_backtrace() argument 62 int n = size; in unw_backtrace() 72 return slow_backtrace (buffer, size, &uc); in unw_backtrace() 79 extern int backtrace (void **buffer, int size)
|
/third_party/lzma/CS/7zip/Common/ |
H A D | CRC.cs | 34 public void Update(byte[] data, uint offset, uint size)
in Update() argument 36 for (uint i = 0; i < size; i++)
in Update() 42 static uint CalculateDigest(byte[] data, uint offset, uint size)
in CalculateDigest() argument 46 crc.Update(data, offset, size);
in CalculateDigest() 50 static bool VerifyDigest(uint digest, byte[] data, uint offset, uint size)
in VerifyDigest() argument 52 return (CalculateDigest(data, offset, size) == digest);
in VerifyDigest()
|
/third_party/node/deps/v8/tools/ |
H A D | shell-utils.h | 43 const byte* ReadFileAndRepeat(const char* name, int* size, int repeat) { in ReadFileAndRepeat() argument 45 *size = 0; in ReadFileAndRepeat() 52 *size = file_size * repeat; in ReadFileAndRepeat() 54 byte* chars = new byte[*size + 1]; in ReadFileAndRepeat() 61 for (int i = file_size; i < *size; i++) { in ReadFileAndRepeat() 64 chars[*size] = 0; in ReadFileAndRepeat()
|
/third_party/musl/porting/liteos_m/user/src/thread/ |
H A D | pthread_attr_get.c | 10 _LIBC_TEXT_SECTION int pthread_attr_getguardsize(const pthread_attr_t *restrict a, size_t *restrict size) in pthread_attr_getguardsize() argument 39 _LIBC_TEXT_SECTION int pthread_attr_getstack(const pthread_attr_t *restrict a, void **restrict addr, size_t *restrict size) in pthread_attr_getstack() argument 43 *size = a->_a_stacksize; in pthread_attr_getstack() 44 *addr = (void *)(a->_a_stackaddr - *size); in pthread_attr_getstack() 48 _LIBC_TEXT_SECTION int pthread_attr_getstacksize(const pthread_attr_t *restrict a, size_t *restrict size) in pthread_attr_getstacksize() argument 50 *size = a->_a_stacksize; in pthread_attr_getstacksize()
|
/third_party/musl/src/passwd/ |
H A D | getgrent.c | 18 size_t size=0, nmem=0; in getgrent() local 21 __getgrent_a(f, &gr, &line, &size, &mem, &nmem, &res); in getgrent() 28 size_t size=0, nmem=0; in getgrgid() local 29 __getgr_a(0, gid, &gr, &line, &size, &mem, &nmem, &res); in getgrgid() 36 size_t size=0, nmem=0; in getgrnam() local 37 __getgr_a(name, 0, &gr, &line, &size, &mem, &nmem, &res); in getgrnam()
|
/third_party/nghttp2/tests/ |
H A D | malloc_wrapper.c | 42 static void *my_malloc(size_t size, void *mud) { in my_malloc() argument 46 return malloc(size); in my_malloc() 55 static void *my_calloc(size_t nmemb, size_t size, void *mud) { in my_calloc() argument 59 return calloc(nmemb, size); in my_calloc() 62 static void *my_realloc(void *ptr, size_t size, void *mud) { in my_realloc() argument 66 return realloc(ptr, size); in my_realloc()
|
/third_party/mesa3d/src/gallium/drivers/lima/ |
H A D | lima_util.h | 40 void lima_dump_shader(struct lima_dump *dump, void *data, int size, bool is_frag); 42 int size, uint32_t start); 44 int size, uint32_t start); 46 int size, uint32_t start); 48 int size, uint32_t start, uint32_t offset); 51 int size, bool is_float, const char *fmt, ...);
|
/third_party/mesa3d/src/gallium/auxiliary/util/ |
H A D | u_linear.h | 41 /** Block size in bytes */ 42 unsigned size; member 54 unsigned size; member 61 /* size of each tile expressed in blocks */ 94 if (t->tile.size != t->block.size * t->cols * t->rows) in pipe_linear_check_tile() 97 if (t->stride != t->block.size * t->cols * t->tiles_x) in pipe_linear_check_tile() 100 if (t->size < t->stride * t->rows * t->tiles_y) in pipe_linear_check_tile()
|
/third_party/skia/src/gpu/ |
H A D | GrRingBuffer.h | 25 GrRingBuffer(GrGpu* gpu, size_t size, size_t alignment, GrGpuBufferType intendedType) in GrRingBuffer() argument 27 , fTotalSize(size) in GrRingBuffer() 35 // Because of this, size needs to be a power of two. in GrRingBuffer() 36 SkASSERT(SkIsPow2(size)); in GrRingBuffer() 43 Slice suballocate(size_t size); 48 size_t size() const { return fTotalSize; } in size() function in GrRingBuffer 51 size_t getAllocationOffset(size_t size);
|
/third_party/selinux/libsepol/src/ |
H A D | symtab.c | 21 size_t size; in symhash() local 26 size = strlen(keyp); in symhash() 27 for (p = keyp; ((size_t) (p - keyp)) < size; p++) in symhash() 30 return val & (h->size - 1); in symhash() 40 int symtab_init(symtab_t * s, unsigned int size) in symtab_init() argument 42 s->table = hashtab_create(symhash, symcmp, size); in symtab_init()
|
/third_party/elfio/tests/ |
H A D | ELFIOTest1.cpp | 223 for ( int i = 0; i < file1.sections.size(); ++i ) { 283 for ( int i = 0; i < file1.segments.size(); ++i ) { 313 file1.get_segment_entry_size() * (Elf64_Off)file1.segments.size(); 404 Elf_Half num = e.sections.size(); 408 EXPECT_EQ( num + 1, e.sections.size() ); 463 ELFIO::Elf_Xword size; in TEST() local 474 EXPECT_EQ( true, symbols.get_symbol( 0x08048478, name, size, bind, type, in TEST() 478 EXPECT_EQ( 4, size ); in TEST() 486 ELFIO::Elf_Xword size; in TEST() local 497 EXPECT_EQ( true, symbols.get_symbol( 0x00400498, name, size, bin in TEST() 584 ELFIO::Elf_Xword size; TEST() local 613 ELFIO::Elf_Xword size = 0; TEST() local 725 ELFIO::Elf_Xword size = 0; TEST() local [all...] |
/third_party/protobuf/src/google/protobuf/ |
H A D | parse_context.h | 142 // DoneFallback. Study the perf/bin-size effects. in PopLimit() 147 PROTOBUF_MUST_USE_RESULT const char* Skip(const char* ptr, int size) { in Skip() argument 148 if (size <= buffer_end_ + kSlopBytes - ptr) { in Skip() 149 return ptr + size; in Skip() 151 return SkipFallback(ptr, size); in Skip() 153 PROTOBUF_MUST_USE_RESULT const char* ReadString(const char* ptr, int size, in ReadString() argument 155 if (size <= buffer_end_ + kSlopBytes - ptr) { in ReadString() 156 s->assign(ptr, size); in ReadString() 157 return ptr + size; in ReadString() 159 return ReadStringFallback(ptr, size, in ReadString() 161 AppendString(const char* ptr, int size, std::string* s) AppendString() argument 295 AppendSize(const char* ptr, int size, const A& append) AppendSize() argument 610 int size = ReadSize(&ptr); ParseMessage() local 623 int size = ReadSize(&ptr); ReadPackedVarint() local [all...] |
/third_party/json/tests/src/ |
H A D | unit-comparison.cpp | 119 REQUIRE(expected_lt.size() == j_types.size()); 120 for (size_t i = 0; i < j_types.size(); ++i) 122 REQUIRE(expected_lt[i].size() == j_types.size()); 123 for (size_t j = 0; j < j_types.size(); ++j) 158 REQUIRE(expected.size() == expected_lt.size()); 159 for (size_t i = 0; i < expected.size(); ++i) 161 REQUIRE(expected[i].size() [all...] |
/third_party/mesa3d/src/gallium/drivers/zink/ |
H A D | zink_bo.c | 85 get_slabs(struct zink_screen *screen, uint64_t size, enum zink_alloc_flag flags) in get_slabs() argument 91 /* Find the correct slab allocator for the given size. */ in get_slabs() 95 if (size <= 1ULL << (slabs->min_order + slabs->num_orders - 1)) in get_slabs() 103 /* Return the power of two size of a slab entry matching the input size. */ 105 get_slab_pot_entry_size(struct zink_screen *screen, unsigned size) in get_slab_pot_entry_size() argument 107 unsigned entry_size = util_next_power_of_two(size); in get_slab_pot_entry_size() 114 static unsigned get_slab_entry_alignment(struct zink_screen *screen, unsigned size) in get_slab_entry_alignment() argument 116 unsigned entry_size = get_slab_pot_entry_size(screen, size); in get_slab_entry_alignment() 118 if (size < in get_slab_entry_alignment() 209 get_optimal_alignment(struct zink_screen *screen, uint64_t size, unsigned alignment) get_optimal_alignment() argument 246 bo_create_internal(struct zink_screen *screen, uint64_t size, unsigned alignment, enum zink_heap heap, unsigned flags, const void *pNext) bo_create_internal() argument 352 uint64_t size; sparse_backing_alloc() local 512 bo_sparse_create(struct zink_screen *screen, uint64_t size) bo_sparse_create() argument 553 zink_bo_create(struct zink_screen *screen, uint64_t size, unsigned alignment, enum zink_heap heap, enum zink_alloc_flag flags, const void *pNext) zink_bo_create() argument 726 buffer_commit_single(struct zink_screen *screen, struct zink_resource *res, struct zink_bo *bo, uint32_t bo_offset, uint32_t offset, uint32_t size, bool commit, VkSemaphore wait) buffer_commit_single() argument 761 buffer_bo_commit(struct zink_screen *screen, struct zink_resource *res, uint32_t offset, uint32_t size, bool commit, VkSemaphore *sem) buffer_bo_commit() argument [all...] |
/third_party/alsa-utils/axfer/ |
H A D | container-riff-wave.c | 78 uint32_t size; member 91 uint32_t size; member 98 uint32_t size; member 111 uint32_t size; member 140 *byte_count = be32toh(chunk->size); in parse_riff_chunk_header() 142 *byte_count = le32toh(chunk->size); in parse_riff_chunk_header() 219 state->byte_count = be32toh(subchunk->size); in parse_wave_data_subchunk() 221 state->byte_count = le32toh(subchunk->size); in parse_wave_data_subchunk() 251 // Calculate the size of subchunk data. in parse_wave_subchunk() 253 subchunk_data_size = be32toh(buf.subchunk.size); in parse_wave_subchunk() 414 build_subchunk_header(struct riff_subchunk *subchunk, const char *const form, uint64_t size, bool be) build_subchunk_header() argument 432 uint64_t size; build_wave_format_subchunk() local [all...] |