/third_party/curl/tests/unit/ |
H A D | unit1654.c | 60 fail_unless(asi->list.size == 4, "wrong number of entries"); 66 fail_unless(asi->list.size == 5, "wrong number of entries"); 71 fail_unless(asi->list.size == 6, "wrong number of entries"); 78 fail_unless(asi->list.size == 8, "wrong number of entries"); 84 fail_unless(asi->list.size == 9, "wrong number of entries"); 91 fail_unless(asi->list.size == 10, "wrong number of entries"); 98 fail_unless(asi->list.size == 12, "wrong number of entries"); 104 fail_unless(asi->list.size == 10, "wrong number of entries");
|
/third_party/curl/docs/examples/ |
H A D | postinmemory.c | 35 size_t size; member 39 WriteMemoryCallback(void *contents, size_t size, size_t nmemb, void *userp) in WriteMemoryCallback() argument 41 size_t realsize = size * nmemb; in WriteMemoryCallback() 44 char *ptr = realloc(mem->memory, mem->size + realsize + 1); in WriteMemoryCallback() 52 memcpy(&(mem->memory[mem->size]), contents, realsize); in WriteMemoryCallback() 53 mem->size += realsize; in WriteMemoryCallback() 54 mem->memory[mem->size] = 0; in WriteMemoryCallback() 67 chunk.size = 0; /* no data at this point */ in main() 99 * Now, our chunk.memory points to a memory block that is chunk.size in main()
|
/third_party/lzma/CPP/7zip/Compress/ |
H A D | DeltaFilter.cpp | 47 Z7_COM7F_IMF2(UInt32, CEncoder::Filter(Byte *data, UInt32 size))
in Z7_COM7F_IMF2() argument 49 Delta_Encode(_state, _delta, data, size);
in Z7_COM7F_IMF2() 50 return size;
in Z7_COM7F_IMF2() 106 Z7_COM7F_IMF2(UInt32, CDecoder::Filter(Byte *data, UInt32 size))
in Z7_COM7F_IMF2() argument 108 Delta_Decode(_state, _delta, data, size);
in Z7_COM7F_IMF2() 109 return size;
in Z7_COM7F_IMF2() 112 Z7_COM7F_IMF(CDecoder::SetDecoderProperties2(const Byte *props, UInt32 size))
in SetDecoderProperties2() argument 114 if (size != 1)
in SetDecoderProperties2()
|
/third_party/mesa3d/src/asahi/lib/ |
H A D | pool.h | 85 unsigned size; member 92 .size = MALI_ ## name ## _LENGTH, \ 109 unsigned size = 0; in agx_pool_alloc_descs() local 112 for (unsigned i = 0; descs[i].size; i++) { in agx_pool_alloc_descs() 113 assert(!(size & (descs[i].align - 1))); in agx_pool_alloc_descs() 114 size += descs[i].size * descs[i].nelems; in agx_pool_alloc_descs() 117 return agx_pool_alloc_aligned(pool, size, align); in agx_pool_alloc_descs()
|
/third_party/mesa3d/src/gallium/drivers/v3d/ |
H A D | v3d_cl.c | 40 cl->size = 0; in v3d_init_cl() 49 if (offset + space <= cl->size) { in v3d_cl_ensure_space() 57 cl->size = cl->bo->size; in v3d_cl_ensure_space() 66 if (cl_offset(cl) + space + cl_packet_length(BRANCH) <= cl->size) in v3d_cl_ensure_space_with_branch() 70 assert(space <= new_bo->size); in v3d_cl_ensure_space_with_branch() 85 cl->size = cl->bo->size; in v3d_cl_ensure_space_with_branch()
|
/third_party/musl/porting/liteos_a/kernel/src/locale/ |
H A D | __mo_lookup.c | 9 const char *__mo_lookup(const void *p, size_t size, const char *s) in __mo_lookup() argument 16 if (n>=size/4 || o>=size-4*n || t>=size-4*n || ((o|t)%4)) in __mo_lookup() 23 if (os >= size || ol >= size-os || ((char *)p)[os+ol]) in __mo_lookup() 29 if (ts >= size || tl >= size-ts || ((char *)p)[ts+tl]) in __mo_lookup()
|
/third_party/musl/src/locale/ |
H A D | __mo_lookup.c | 9 const char *__mo_lookup(const void *p, size_t size, const char *s) in __mo_lookup() argument 16 if (n>=size/4 || o>=size-4*n || t>=size-4*n || ((o|t)%4)) in __mo_lookup() 23 if (os >= size || ol >= size-os || ((char *)p)[os+ol]) in __mo_lookup() 29 if (ts >= size || tl >= size-ts || ((char *)p)[ts+tl]) in __mo_lookup()
|
/third_party/ltp/testcases/kernel/syscalls/pwritev2/ |
H A D | pwritev201.c | 40 ssize_t size; member 66 if (TST_RET != tc->size) { in verify_pwritev2() 68 TST_RET, tc->size); in verify_pwritev2() 80 SAFE_PREAD(1, fd, preadbuf, tc->size, tc->write_off); in verify_pwritev2() 82 SAFE_PREAD(1, fd, preadbuf, tc->size, tc->seek_off); in verify_pwritev2() 84 for (i = 0; i < tc->size; i++) { in verify_pwritev2() 89 if (i != tc->size) { in verify_pwritev2() 96 "with content 'a' expectedly ", tc->size); in verify_pwritev2()
|
/third_party/ltp/testcases/kernel/io/ltp-aiodio/ |
H A D | common_sparse.h | 31 static void dirty_freeblocks(int size) in dirty_freeblocks() argument 39 size = ((size + pg - 1) / pg) * pg; in dirty_freeblocks() 46 SAFE_FTRUNCATE(cleanup, fd, size); in dirty_freeblocks() 48 p = SAFE_MMAP(cleanup, NULL, size, PROT_WRITE|PROT_READ, MAP_SHARED|MAP_FILE, fd, 0); in dirty_freeblocks() 50 memset(p, 0xaa, size); in dirty_freeblocks() 51 msync(p, size, MS_SYNC); in dirty_freeblocks() 52 munmap(p, size); in dirty_freeblocks()
|
/third_party/ltp/testcases/kernel/mem/thp/ |
H A D | thp02.c | 44 static long hps, size; variable 48 * mremap(p, size-ps, size-ps, flag, p2); 49 * mremap(p, size-ps, size-ps, flag, p2+ps); 50 * mremap(p+ps, size-ps, size-ps, flag, p2); 51 * mremap(p+ps, size-ps, size-ps, flag, p2+ps); 58 p1 = SAFE_MEMALIGN(hps, size); in do_child() [all...] |
/third_party/ltp/testcases/kernel/syscalls/getdents/ |
H A D | getdents02.c | 33 static size_t size; variable 47 size_t *size; member 50 { &fd_inv, &dirp, &size, EBADF }, 52 { &fd_file, &dirp, &size, ENOTDIR }, 53 { &fd_unlinked, &dirp, &size, ENOENT }, 60 size = tst_dirp_size(); in setup() 61 dirp = tst_alloc(size); in setup() 75 TEST(tst_getdents(*tc->fd, *tc->dirp, *tc->size)); in run()
|
/third_party/ltp/testcases/kernel/syscalls/add_key/ |
H A D | add_key01.c | 111 {&keyring_buf, .size = 1}, 112 {&keyring_buf1, .size = 1}, 113 {&user_buf, .size = 32767}, 114 {&user_buf1, .size = 32768}, 115 {&logon_buf, .size = 32767}, 116 {&logon_buf1, .size = 32768}, 117 {&big_key_buf, .size = (1 << 20) - 1}, 118 {&big_key_buf1, .size = 1 << 20},
|
/third_party/ltp/testcases/kernel/syscalls/mincore/ |
H A D | mincore02.c | 24 * We mmap a file of known size (multiple of page size) and lock it in 62 size_t size; in setup() local 68 tst_brkm(TBROK | TERRNO, cleanup, "Unable to get page size"); in setup() 70 size = page_size * num_pages; in setup() 71 buf = malloc(size); in setup() 73 memset(buf, 42, size); in setup() 74 vec = malloc((size + page_size - 1) / page_size); in setup() 80 if (write(fd, buf, size) < 0) { in setup() 86 addr = mmap(NULL, size, PROT_REA in setup() [all...] |
/third_party/lwip/src/include/lwip/ |
H A D | memp.h | 48 #define LWIP_MEMPOOL(name,num,size,desc) 53 #define LWIP_MEMPOOL(name,num,size,desc) MEMP_##name, 71 #define LWIP_MEMPOOL_DECLARE(name,num,size,desc) \ 76 LWIP_MEM_ALIGN_SIZE(size) \ 95 #define LWIP_MEMPOOL_DECLARE(name,num,size,desc) \ 96 LWIP_DECLARE_MEMORY_ALIGNED(memp_memory_ ## name ## _base, ((num) * (MEMP_SIZE + MEMP_ALIGN_SIZE(size)))); \ 105 LWIP_MEM_ALIGN_SIZE(size), \ 131 * This has to be defined here as it is required for pool size calculation. */ 136 u16_t size; member
|
/third_party/lz4/ossfuzz/ |
H A D | decompress_frame_fuzzer.c | 31 int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument 33 FUZZ_dataProducer_t *producer = FUZZ_dataProducer_create(data, size); in LLVMFuzzerTestOneInput() 36 size = FUZZ_dataProducer_remainingBytes(producer); in LLVMFuzzerTestOneInput() 39 dstCapacitySeed, 0, 4 * size); in LLVMFuzzerTestOneInput() 61 decompress(dctx, dst, dstCapacity, data, size, NULL, 0, &opts); in LLVMFuzzerTestOneInput() 63 decompress(dctx, dst, dstCapacity, data, size, NULL, 0, &opts); in LLVMFuzzerTestOneInput() 65 decompress(dctx, dst, dstCapacity, data, size, dict, dictSize, &opts); in LLVMFuzzerTestOneInput() 67 decompress(dctx, dst, dstCapacity, data, size, dict, dictSize, &opts); in LLVMFuzzerTestOneInput()
|
/third_party/mesa3d/src/gallium/drivers/r300/ |
H A D | r300_cb.h | 27 * Use NEW_CB for buffers with a varying size and it will also allocate 29 * Use BEGIN_CB for arrays with a static size. 75 #define BEGIN_CB(ptr, size) do { \ 77 cs_count = (size); \ 81 #define NEW_CB(ptr, size) \ 84 cs_count = (size); \ 85 cs_ptr = (ptr) = malloc((size) * sizeof(uint32_t)); \ 101 #define NEW_CB(ptr, size) \ 102 cs_ptr = (ptr) = malloc((size) * sizeof(uint32_t)) 104 #define BEGIN_CB(ptr, size) cs_pt [all...] |
/third_party/libcoap/include/coap3/ |
H A D | coap_mem.h | 72 * Allocates a chunk of @p size bytes and returns a pointer to the newly 78 * @param size The number of bytes requested. 81 void *coap_malloc_type(coap_memory_tag_t type, size_t size); 86 * @p size. 94 * @param size The number of bytes requested. 97 void *coap_realloc_type(coap_memory_tag_t type, void *p, size_t size); 113 coap_malloc(size_t size) { in coap_malloc() argument 114 return coap_malloc_type(COAP_STRING, size); in coap_malloc() 136 /* It would be nice to check that size equals the size give 153 coap_malloc(size_t size) coap_malloc() argument [all...] |
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/ |
H A D | AbstractProtobufList.java | 74 final int size = size(); in equals() 75 if (size != other.size()) { in equals() 78 for (int i = 0; i < size; i++) { in equals() 88 final int size = size(); in hashCode() 90 for (int i = 0; i < size; i++) { in hashCode()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/CodeView/ |
H A D | AppendingTypeTableBuilder.cpp | 31 return TypeIndex::fromArrayIndex(SeenRecords.size()); in nextTypeIndex() 64 return Index.toArrayIndex() < SeenRecords.size(); in contains() 67 uint32_t AppendingTypeTableBuilder::size() { return SeenRecords.size(); } in size() function in AppendingTypeTableBuilder 69 uint32_t AppendingTypeTableBuilder::capacity() { return SeenRecords.size(); } in capacity() 80 uint8_t *Stable = RecordStorage.Allocate<uint8_t>(Record.size()); in insertRecordBytes() 81 memcpy(Stable, Record.data(), Record.size()); in insertRecordBytes() 82 Record = ArrayRef<uint8_t>(Stable, Record.size()); in insertRecordBytes()
|
/third_party/skia/src/gpu/ |
H A D | GrStagingBufferManager.cpp | 16 size_t size, size_t requiredAlignment) { in allocateStagingBufferSlice() 19 for (size_t i = 0; i < fBuffers.size(); ++i) { in allocateStagingBufferSlice() 20 size_t totalBufferSize = fBuffers[i].fBuffer->size(); in allocateStagingBufferSlice() 23 if (totalBufferSize - offset >= size) { in allocateStagingBufferSlice() 31 size_t bufferSize = std::max(size, kMinStagingBufferSize); in allocateStagingBufferSlice() 47 SkASSERT(buffer->remaining() >= size); in allocateStagingBufferSlice() 49 buffer->fOffset = offset + size; in allocateStagingBufferSlice() 55 for (size_t i = 0; i < fBuffers.size(); ++i) { in detachBuffers() 15 allocateStagingBufferSlice( size_t size, size_t requiredAlignment) allocateStagingBufferSlice() argument
|
/third_party/skia/third_party/externals/libjpeg-turbo/simd/arm/ |
H A D | jchuff.h | 94 #define PUT_AND_FLUSH(code, size) { \ 95 put_buffer = (put_buffer << (size + free_bits)) | (code >> -free_bits); \ 105 #define PUT_BITS(code, size) { \ 106 free_bits -= size; \ 108 PUT_AND_FLUSH(code, size) \ 110 put_buffer = (put_buffer << size) | code; \ 113 #define PUT_CODE(code, size, diff) { \ 115 nbits += size; \
|
/third_party/skia/third_party/externals/dawn/src/fuzzers/ |
H A D | DawnWireServerFuzzer.cpp | 37 void* GetCmdSpace(size_t size) override { 38 if (size > buf.size()) { 39 buf.resize(size); 78 size_t size, in Run() 82 if (size < sizeof(uint64_t)) { in Run() 89 size -= sizeof(uint64_t); in Run() 126 wireServer->HandleCommands(reinterpret_cast<const char*>(data), size); in Run() local 77 Run(const uint8_t* data, size_t size, MakeDeviceFn MakeDevice, bool supportsErrorInjection) Run() argument
|
/third_party/protobuf/src/google/protobuf/ |
H A D | generated_enum_util.cc | 59 bool LookUpEnumValue(const EnumEntry* enums, size_t size, in LookUpEnumValue() argument 62 auto it = std::lower_bound(enums, enums + size, target, EnumCompareByName); in LookUpEnumValue() 63 if (it != enums + size && it->name == name) { in LookUpEnumValue() 71 size_t size, int value) { in LookUpEnumName() 76 std::lower_bound(sorted_indices, sorted_indices + size, -1, comparator); in LookUpEnumName() 77 if (it != sorted_indices + size && enums[*it].value == value) { in LookUpEnumName() 84 const EnumEntry* enums, const int* sorted_indices, size_t size, in InitializeEnumStrings() 86 for (int i = 0; i < size; ++i) { in InitializeEnumStrings() 70 LookUpEnumName(const EnumEntry* enums, const int* sorted_indices, size_t size, int value) LookUpEnumName() argument 83 InitializeEnumStrings( const EnumEntry* enums, const int* sorted_indices, size_t size, internal::ExplicitlyConstructed<std::string>* enum_strings) InitializeEnumStrings() argument
|
/third_party/rust/crates/unicode-ident/tests/ |
H A D | static_size.rs | 11 let size = size_of_val(&tables::ASCII_START) in test_size() 16 assert_eq!(10016, size); in test_size() 25 let size = size_of_val(tables::XID_START) + size_of_val(tables::XID_CONTINUE); in test_xid_size() 26 assert_eq!(11528, size); in test_xid_size() 82 let size = xid_start_fst.len() + xid_continue_fst.len(); in test_fst_size() 83 assert_eq!(137749, size); in test_fst_size() 93 let size = xid_start_bitmap.serialized_size() + xid_continue_bitmap.serialized_size(); in test_roaring_size() 94 assert_eq!(66104, size); in test_roaring_size()
|
/third_party/selinux/libselinux/src/ |
H A D | canonicalize_context.c | 17 size_t size; in security_canonicalize_context_raw() local 30 size = selinux_page_size; in security_canonicalize_context_raw() 31 buf = malloc(size); in security_canonicalize_context_raw() 36 if (strlcpy(buf, con, size) >= size) { in security_canonicalize_context_raw() 46 memset(buf, 0, size); in security_canonicalize_context_raw() 47 ret = read(fd, buf, size - 1); in security_canonicalize_context_raw() 51 strncpy(buf, con, size); in security_canonicalize_context_raw()
|