/third_party/skia/third_party/externals/swiftshader/src/OpenGL/compiler/preprocessor/ |
H A D | Input.cpp | 109 size_t size = mLength[mReadLoc.sIndex] - mReadLoc.cIndex; 110 size = std::min(size, maxSize); 111 for (size_t i = 0; i < size; ++i) 118 size = i; 119 maxRead = nRead + size; // Stop reading right before the backslash. 122 std::memcpy(buf + nRead, mString[mReadLoc.sIndex] + mReadLoc.cIndex, size); 123 nRead += size; 124 mReadLoc.cIndex += size;
|
/third_party/skia/third_party/externals/tint/fuzzers/tint_ast_fuzzer/ |
H A D | fuzzer.cc | 46 size_t size, in LLVMFuzzerCustomMutator() 49 Source::File file("test.wgsl", {reinterpret_cast<char*>(data), size}); in LLVMFuzzerCustomMutator() 78 if (result.wgsl.size() > max_size) { in LLVMFuzzerCustomMutator() 87 data, result.wgsl.data(), result.wgsl.size()); in LLVMFuzzerCustomMutator() 88 return result.wgsl.size(); in LLVMFuzzerCustomMutator() 91 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { in LLVMFuzzerTestOneInput() argument 92 if (size == 0) { in LLVMFuzzerTestOneInput() 113 TransformBuilder tb(data, size); in LLVMFuzzerTestOneInput() 119 fuzzer.Run(data, size); in LLVMFuzzerTestOneInput() 45 LLVMFuzzerCustomMutator(uint8_t* data, size_t size, size_t max_size, unsigned seed) LLVMFuzzerCustomMutator() argument
|
/third_party/skia/third_party/externals/zlib/contrib/tests/fuzzers/ |
H A D | deflate_fuzzer.cc | 24 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { in LLVMFuzzerTestOneInput() argument 25 FuzzedDataProvider fdp(data, size); in LLVMFuzzerTestOneInput() 41 std::vector<uint8_t> compressed(src.size() * 2 + 1000); in LLVMFuzzerTestOneInput() 43 stream.avail_out = compressed.size(); in LLVMFuzzerTestOneInput() 54 compressed.resize(compressed.size() - stream.avail_out); in LLVMFuzzerTestOneInput() 61 std::vector<uint8_t> decompressed(src.size() + 1); in LLVMFuzzerTestOneInput() 63 stream.avail_in = compressed.size(); in LLVMFuzzerTestOneInput() 65 stream.avail_out = decompressed.size(); in LLVMFuzzerTestOneInput() 68 decompressed.resize(decompressed.size() - stream.avail_out); in LLVMFuzzerTestOneInput()
|
/third_party/skia/third_party/externals/expat/expat/tests/ |
H A D | memcheck.c | 56 tracking_malloc(size_t size) { in tracking_malloc() argument 63 entry->num_bytes = size; in tracking_malloc() 64 entry->allocation = malloc(size); in tracking_malloc() 126 tracking_realloc(void *ptr, size_t size) { in tracking_realloc() argument 130 /* By definition, this is equivalent to malloc(size) */ in tracking_realloc() 131 return tracking_malloc(size); in tracking_realloc() 133 if (size == 0) { in tracking_realloc() 148 entry->allocation = realloc(ptr, size); in tracking_realloc() 165 entry->allocation = realloc(ptr, size); in tracking_realloc() 173 entry->num_bytes = size; in tracking_realloc() [all...] |
/third_party/skia/third_party/externals/freetype/builds/vms/ |
H A D | ftsystem.c | 90 /* size :: The requested size in bytes. */ 97 long size ) in ft_alloc() 101 return malloc( size ); in ft_alloc() 116 /* cur_size :: The current size of the allocated memory block. */ 118 /* new_size :: The newly requested size in bytes. */ 196 munmap( (MUNMAP_ARG_CAST)stream->descriptor.pointer, stream->size ); in ft_close_stream() 199 stream->size = 0; in ft_close_stream() 233 stream->size = stat_buf.st_size; in FT_BASE_DEF() 234 if ( !stream->size ) in FT_BASE_DEF() [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/spirv_assembly/ |
H A D | vktSpvAsmComputeShaderTestUtil.cpp | 35 DE_ASSERT(outputAllocs.size() != 0); in verifyOutputWithEpsilon() 36 DE_ASSERT(outputAllocs.size() == expectedOutputs.size()); in verifyOutputWithEpsilon() 38 for (size_t outputNdx = 0; outputNdx < outputAllocs.size(); ++outputNdx) in verifyOutputWithEpsilon() 43 std::vector<float> expectedFloats (expectedBytes.size() / sizeof (float)); in verifyOutputWithEpsilon() 44 std::vector<float> actualFloats (expectedBytes.size() / sizeof (float)); in verifyOutputWithEpsilon() 46 memcpy(&expectedFloats[0], &expectedBytes.front(), expectedBytes.size()); in verifyOutputWithEpsilon() 47 memcpy(&actualFloats[0], outputAllocs[outputNdx]->getHostPtr(), expectedBytes.size()); in verifyOutputWithEpsilon() 48 for (size_t floatNdx = 0; floatNdx < actualFloats.size(); ++floatNdx) in verifyOutputWithEpsilon()
|
/third_party/vk-gl-cts/framework/opengl/ |
H A D | gluStrUtil.hpp | 43 const deUint32 size; member in glu::detail::EnumPointerFmt 46 EnumPointerFmt (const deUint32* value_, deUint32 size_, GetEnumNameFunc getName_) : value(value_), size(size_), getName(getName_) {} in EnumPointerFmt() 53 const deUint32 size; member in glu::detail::BooleanPointerFmt 55 BooleanPointerFmt (const deUint8* value_, deUint32 size_) : value(value_), size(size_) {} in BooleanPointerFmt() 80 inline detail::EnumPointerFmt getEnumPointerStr (const deUint32* value, deInt32 size, detail::EnumPointerFmt::GetEnumNameFunc getName) in getEnumPointerStr() argument 82 return detail::EnumPointerFmt(value, (deUint32)de::max(0, size), getName); in getEnumPointerStr() 85 inline detail::BooleanPointerFmt getBooleanPointerStr (const deUint8* value, deInt32 size) in getBooleanPointerStr() argument 87 return detail::BooleanPointerFmt(value, (deUint32)de::max(0, size)); in getBooleanPointerStr() 104 void getBooleanPointerStr (const bool* value, deInt32 size); // delete
|
/third_party/mesa3d/src/virtio/vulkan/ |
H A D | vn_device_memory.c | 27 VkDeviceSize size, in vn_device_memory_pool_grow_alloc() 46 mem->size = size; in vn_device_memory_pool_grow_alloc() 54 .allocationSize = size, in vn_device_memory_pool_grow_alloc() 64 dev->renderer, mem->size, mem->base.id, mem->flags, 0, &mem->base_bo); in vn_device_memory_pool_grow_alloc() 134 VkDeviceSize size) in vn_device_memory_pool_grow_locked() 138 vn_device_memory_pool_grow_alloc(dev, mem_type_index, size, &mem); in vn_device_memory_pool_grow_locked() 166 assert(mem->size <= pool_size); in vn_device_memory_pool_suballocate() 170 if (!pool->memory || pool->used + mem->size > pool_size) { in vn_device_memory_pool_suballocate() 184 pool->used += align64(mem->size, pool_alig in vn_device_memory_pool_suballocate() 25 vn_device_memory_pool_grow_alloc(struct vn_device *dev, uint32_t mem_type_index, VkDeviceSize size, struct vn_device_memory **out_mem) vn_device_memory_pool_grow_alloc() argument 132 vn_device_memory_pool_grow_locked(struct vn_device *dev, uint32_t mem_type_index, VkDeviceSize size) vn_device_memory_pool_grow_locked() argument 532 vn_MapMemory(VkDevice device, VkDeviceMemory memory, VkDeviceSize offset, VkDeviceSize size, VkMemoryMapFlags flags, void **ppData) vn_MapMemory() argument 603 const VkDeviceSize size = range->size == VK_WHOLE_SIZE vn_FlushMappedMemoryRanges() local 626 const VkDeviceSize size = range->size == VK_WHOLE_SIZE vn_InvalidateMappedMemoryRanges() local [all...] |
/third_party/skia/third_party/externals/microhttpd/src/testcurl/ |
H A D | test_post.c | 61 size_t size; member 80 copyBuffer (void *ptr, size_t size, size_t nmemb, void *ctx) in copyBuffer() argument 84 if (cbc->pos + size * nmemb > cbc->size) in copyBuffer() 86 memcpy (&cbc->buf[cbc->pos], ptr, size * nmemb); in copyBuffer() 87 cbc->pos += size * nmemb; in copyBuffer() 88 return size * nmemb; in copyBuffer() 104 const char *value, uint64_t off, size_t size) in post_iterator() 109 (size == strlen ("daniel")) && (0 == strncmp (value, "daniel", size))) in post_iterator() 98 post_iterator(void *cls, enum MHD_ValueKind kind, const char *key, const char *filename, const char *content_type, const char *transfer_encoding, const char *value, uint64_t off, size_t size) post_iterator() argument 494 size_t size; global() member 500 readBuffer(void *p, size_t size, size_t nmemb, void *opaque) readBuffer() argument 517 slowReadBuffer(void *p, size_t size, size_t nmemb, void *opaque) slowReadBuffer() argument [all...] |
/third_party/skia/third_party/externals/dawn/src/tests/end2end/ |
H A D | DynamicBufferOffsetTests.cpp | 41 sizeof(uint32_t) * uniformData.size(), 44 uniformData[uniformData.size() - 2] = 5; 45 uniformData[uniformData.size() - 1] = 6; 49 sizeof(uint32_t) * uniformData.size(), 53 storageBufferDescriptor.size = sizeof(uint32_t) * uniformData.size(); 82 sizeof(uint32_t) * uniformData.size(), 221 renderPassEncoder.SetBindGroup(0, mBindGroups[0], offsets.size(), offsets.data()); in TEST_P() 229 EXPECT_BUFFER_U32_RANGE_EQ(expectedData.data(), mStorageBuffers[1], 0, expectedData.size()); in TEST_P() 243 renderPassEncoder.SetBindGroup(0, mBindGroups[0], offsets.size(), offset in TEST_P() [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/container/ |
H A D | inlined_vector.h | 25 // its template parameters. Instances where `size() <= N` hold contained 64 // `std::vector` for use cases where the vector's size is sufficiently small 244 other.size()); in noexcept() 257 bool empty() const noexcept { return !size(); } 259 // `InlinedVector::size()` 262 size_type size() const noexcept { return storage_.GetSize(); } 268 // One bit of the size storage is used to indicate whether the inlined 269 // vector contains allocated memory. As a result, the maximum size that the 293 // NOTE: only elements within [`data()`, `data() + size()`) are valid. 303 // NOTE: only elements within [`data()`, `data() + size()`) ar 313 ABSL_HARDENING_ASSERT(i < size()); return data()[i]; } const_reference operator[](size_type i) const { ABSL_HARDENING_ASSERT(i < size()); return data()[i]; } reference at(size_type i) { if (ABSL_PREDICT_FALSE(i >= size())) { base_internal::ThrowStdOutOfRange( �); } return data()[i]; } const_reference at(size_type i) const { if (ABSL_PREDICT_FALSE(i >= size()) operator []() argument 840 auto size = a.size(); AbslHashValue() local [all...] |
/third_party/ffmpeg/libavfilter/ |
H A D | vf_deflicker.c | 50 int size; member 77 { "size", "set how many frames to use", OFFSET(size), AV_OPT_TYPE_INT, {.i64=5}, 2, SIZE, FLAGS }, 78 { "s", "set how many frames to use", OFFSET(size), AV_OPT_TYPE_INT, {.i64=5}, 2, SIZE, FLAGS }, 212 for (y = 0; y < s->size; y++) { in get_am_factor() 216 *f /= s->size; in get_am_factor() 227 for (y = 0; y < s->size; y++) { in get_gm_factor() 231 *f = pow(*f, 1.0f / s->size); in get_gm_factor() 242 for (y = 0; y < s->size; y++) { in get_hm_factor() 246 *f = s->size / * in get_hm_factor() [all...] |
/third_party/alsa-lib/src/pcm/ |
H A D | pcm_mmap_emul.c | 279 snd_pcm_sframes_t size; in sync_slave_write() local 284 size = map->appl_ptr - *slave->appl.ptr; in sync_slave_write() 285 if (size < 0) in sync_slave_write() 286 size += pcm->boundary; in sync_slave_write() 287 if (size) { in sync_slave_write() 289 size = snd_pcm_write_mmap(pcm, offset, size); in sync_slave_write() 292 return size; in sync_slave_write() 302 snd_pcm_sframes_t size; in sync_slave_read() local 304 size in sync_slave_read() 317 snd_pcm_mmap_emul_mmap_commit(snd_pcm_t *pcm, snd_pcm_uframes_t offset, snd_pcm_uframes_t size) snd_pcm_mmap_emul_mmap_commit() argument [all...] |
/third_party/mbedtls/library/ |
H A D | memory_buffer_alloc.c | 47 size_t size; member 92 hdr->alloc, hdr->size); in debug_header() 211 static void *buffer_alloc_calloc(size_t n, size_t size) in buffer_alloc_calloc() argument 226 original_len = len = n * size; in buffer_alloc_calloc() 228 if (n == 0 || size == 0 || len / n != size) { in buffer_alloc_calloc() 242 if (cur->size >= len) { in buffer_alloc_calloc() 267 if (cur->size - len < sizeof(memory_header) + in buffer_alloc_calloc() 287 heap.total_used += cur->size; in buffer_alloc_calloc() 311 new->size in buffer_alloc_calloc() 549 buffer_alloc_calloc_mutexed(size_t n, size_t size) buffer_alloc_calloc_mutexed() argument [all...] |
/third_party/mesa3d/src/asahi/lib/ |
H A D | agx_device.c | 70 agx_shmem_alloc(struct agx_device *dev, size_t size, bool cmdbuf) in agx_shmem_alloc() argument 79 size, in agx_shmem_alloc() 89 assert(out.size == size); in agx_shmem_alloc() 96 .size = out.size, in agx_shmem_alloc() 103 .ptr.cpu = calloc(1, size), in agx_shmem_alloc() 104 .size = size, in agx_shmem_alloc() 116 agx_bo_alloc(struct agx_device *dev, size_t size, in agx_bo_alloc() argument 221 agx_bo_create(struct agx_device *dev, unsigned size, unsigned flags) agx_bo_create() argument [all...] |
/third_party/musl/porting/linux/user/src/gwp_asan/ |
H A D | gwp_asan.c | 64 extern void gwp_asan_iterate(void *base, size_t size,
65 void (*callback)(void* base, size_t size, void *arg), void *arg);
418 void* libc_gwp_asan_calloc(size_t nmemb, size_t size)
in libc_gwp_asan_calloc() argument 421 return MuslFunc(calloc)(nmemb, size);
in libc_gwp_asan_calloc() 427 if (!__builtin_mul_overflow(nmemb, size, &total_bytes)) {
in libc_gwp_asan_calloc() 428 GWP_ASAN_LOGD("[gwp_asan]: call gwp_asan_malloc nmemb:%{public}d size:%{public}d.\n", nmemb, size);
in libc_gwp_asan_calloc() 436 return MuslFunc(calloc)(nmemb, size);
in libc_gwp_asan_calloc() 439 void* libc_gwp_asan_realloc(void *ptr, size_t size)
in libc_gwp_asan_realloc() argument 442 return MuslFunc(realloc)(ptr, size);
in libc_gwp_asan_realloc() 496 libc_gwp_asan_malloc_iterate(void *base, size_t size, void (*callback)(uintptr_t base, size_t size, void *arg), void *arg) libc_gwp_asan_malloc_iterate() argument [all...] |
/third_party/musl/src/gwp_asan/linux/ |
H A D | gwp_asan.c | 64 extern void gwp_asan_iterate(void *base, size_t size,
65 void (*callback)(void* base, size_t size, void *arg), void *arg);
418 void* libc_gwp_asan_calloc(size_t nmemb, size_t size)
in libc_gwp_asan_calloc() argument 421 return MuslFunc(calloc)(nmemb, size);
in libc_gwp_asan_calloc() 427 if (!__builtin_mul_overflow(nmemb, size, &total_bytes)) {
in libc_gwp_asan_calloc() 428 GWP_ASAN_LOGD("[gwp_asan]: call gwp_asan_malloc nmemb:%{public}d size:%{public}d.\n", nmemb, size);
in libc_gwp_asan_calloc() 436 return MuslFunc(calloc)(nmemb, size);
in libc_gwp_asan_calloc() 439 void* libc_gwp_asan_realloc(void *ptr, size_t size)
in libc_gwp_asan_realloc() argument 442 return MuslFunc(realloc)(ptr, size);
in libc_gwp_asan_realloc() 496 libc_gwp_asan_malloc_iterate(void *base, size_t size, void (*callback)(uintptr_t base, size_t size, void *arg), void *arg) libc_gwp_asan_malloc_iterate() argument [all...] |
/third_party/mesa3d/src/intel/tools/ |
H A D | aub_mem.c | 70 munmap((void *)i->bo.map, i->bo.size); in aub_mem_clear_bo_maps() 196 const void *data, uint32_t size) in aub_mem_local_write() 202 .size = size, in aub_mem_local_write() 214 size_t size = _size / sizeof(*data); in aub_mem_ggtt_entry_write() local 216 entry < data + size; in aub_mem_ggtt_entry_write() 225 const void *data, uint32_t size) in aub_mem_phys_write() 228 uint32_t to_write = size; in aub_mem_phys_write() 229 for (uint64_t page = phys_address & ~0xfff; page < phys_address + size; page += 4096) { in aub_mem_phys_write() 242 const void *data, uint32_t size) in aub_mem_ggtt_write() 195 aub_mem_local_write(void *_mem, uint64_t address, const void *data, uint32_t size) aub_mem_local_write() argument 224 aub_mem_phys_write(void *_mem, uint64_t phys_address, const void *data, uint32_t size) aub_mem_phys_write() argument 241 aub_mem_ggtt_write(void *_mem, uint64_t virt_address, const void *data, uint32_t size) aub_mem_ggtt_write() argument [all...] |
/third_party/node/deps/v8/src/heap/cppgc/ |
H A D | compactor.cc | 27 // Freelist size threshold that must be exceeded before compaction 51 void RelocateInteriorReferences(Address from, Address to, size_t size); 149 const size_t size = header.ObjectSize(); in Relocate() local 150 RelocateInteriorReferences(from, to, size); in Relocate() 190 size_t size) { in RelocateInteriorReferences() 198 while (offset < size) { in RelocateInteriorReferences() 206 // size) we are dealing with an interior pointer that does not point to in RelocateInteriorReferences() 210 if (reference_contents > from && reference_contents < (from + size)) { in RelocateInteriorReferences() 239 size_t size) { in RelocateObject() 243 if (compact_frontier + size > current_page in RelocateObject() 189 RelocateInteriorReferences(Address from, Address to, size_t size) RelocateInteriorReferences() argument 238 RelocateObject(const NormalPage* page, const Address header, size_t size) RelocateObject() argument 334 size_t size = header->AllocatedSize(); CompactPage() local [all...] |
/third_party/mesa3d/src/util/ |
H A D | bitset.h | 27 * \brief Bitset of arbitrary size definitions. 55 #define BITSET_SIZE(x) (8 * sizeof(x)) // bitset size in bits 212 const unsigned size = end - start + 1; 215 if (start_mod + size <= BITSET_WORDBITS) { 231 const unsigned size = end - start + 1; 234 if (start_mod + size <= BITSET_WORDBITS) { 250 const unsigned size = end - start + 1; 253 if (start_mod + size <= BITSET_WORDBITS) { 282 /* Count set bits in the bitset (compute the size/cardinality of the bitset). 327 #define BITSET_LAST_BIT_SIZED(x, size) __bitset_last_bi [all...] |
/third_party/skia/third_party/externals/angle2/src/compiler/translator/ |
H A D | ShaderVars.cpp | 135 fields.size() != other.fields.size() || structOrBlockName != other.structOrBlockName || in operator ==() 148 for (size_t ii = 0; ii < fields.size(); ++ii) in operator ==() 156 void ShaderVariable::setArraySize(unsigned int size) in setArraySize() argument 159 if (size != 0) in setArraySize() 161 arraySizes.push_back(size); in setArraySize() 184 ASSERT(arraySizes.size() > arrayNestingIndex); in getNestedArraySize() 185 unsigned int arraySize = arraySizes[arraySizes.size() - 1u - arrayNestingIndex]; in getNestedArraySize() 217 // Have a structure, need to compute the structure size. in getExternalSize() 228 // multiply by array size t in getExternalSize() [all...] |
/third_party/vk-gl-cts/external/amber/src/src/amberscript/ |
H A D | parser_pipeline_test.cc | 41 EXPECT_EQ(2U, script->GetShaders().size()); in TEST_F() 44 ASSERT_EQ(1U, pipelines.size()); in TEST_F() 51 ASSERT_EQ(2U, shaders.size()); in TEST_F() 57 shaders[0].GetShaderOptimizations().size()); in TEST_F() 63 shaders[1].GetShaderOptimizations().size()); in TEST_F() 195 ASSERT_EQ(2U, pipelines.size()); in TEST_F() 197 ASSERT_EQ(1U, pipelines[0]->GetColorAttachments().size()); in TEST_F() 208 ASSERT_EQ(1U, pipelines[1]->GetColorAttachments().size()); in TEST_F() 241 EXPECT_EQ("shared framebuffer must have same size over all PIPELINES", in TEST_F() 282 ASSERT_EQ(4U, pipelines.size()); in TEST_F() [all...] |
/third_party/vk-gl-cts/external/amber/src/src/ |
H A D | format.cc | 71 uint32_t size = 0; in SizeInBytes() local 74 size += seg.PaddingBytes(); in SizeInBytes() 77 size += static_cast<uint32_t>(seg.SizeInBytes()); in SizeInBytes() 80 return size; in SizeInBytes() 112 void Format::AddPaddedSegment(uint32_t size) { in AddPaddedSegment() argument 113 // If the last item was already padding we just extend by the |size| bytes in AddPaddedSegment() 115 segments_[segments_.size() - 1] = in AddPaddedSegment() 116 Segment{size + segments_.back().SizeInBytes()}; in AddPaddedSegment() 118 segments_.push_back(Segment{size}); in AddPaddedSegment() 122 void Format::AddPaddedSegmentPackable(uint32_t size) { in AddPaddedSegmentPackable() argument 319 uint32_t size = 0; AddSegmentsForType() local 339 uint32_t size = 0; AddSegmentsForType() local [all...] |
/third_party/skia/src/core/ |
H A D | SkZip.h | 56 constexpr SkZip(size_t size, Ts*... ts) in SkZip() argument 58 , fSize{size} {} 72 , fSize{that.size()} { } in SkZip() 75 constexpr size_t size() const { return fSize; } in size() function in SkZip 76 constexpr bool empty() const { return this->size() == 0; } in empty() 78 constexpr ReturnTuple back() const { return this->index(this->size() - 1); } in back() 80 constexpr Iterator end() const { return Iterator{this, this->size()}; } in end() 86 SkASSERT(n <= this->size()); in first() 91 SkASSERT(n <= this->size()); in last() 96 SkASSERT(offset < this->size()); in subspan() 188 size_t size = PickOneSize<DecayPointerT<Ts>...>::Size(std::forward<Ts>(ts)...); MakeZip() local [all...] |
/third_party/skia/src/sksl/ir/ |
H A D | SkSLFunctionDeclaration.cpp | 169 bool validParams = (parameters.size() == 1 && paramIsInputColor(0)); in check_main_signature() 183 (parameters.size() == 1 && paramIsCoords(0)) || in check_main_signature() 184 (parameters.size() == 2 && paramIsCoords(0) && paramIsInputColor(1)); in check_main_signature() 197 if (!(parameters.size() == 2 && in check_main_signature() 210 bool validParams = (parameters.size() == 0) || in check_main_signature() 211 (parameters.size() == 1 && paramIsCoords(0)); in check_main_signature() 219 if (parameters.size()) { in check_main_signature() 258 if (parameters.size() != other->parameters().size()) { in find_existing_declaration() 262 for (size_t i = 0; i < parameters.size(); in find_existing_declaration() [all...] |