Home
last modified time | relevance | path

Searched refs:size (Results 201 - 225 of 18345) sorted by relevance

12345678910>>...734

/third_party/vk-gl-cts/external/vulkancts/framework/vulkan/
H A DvkAllocationCallbackUtil.cpp37 static VKAPI_ATTR void* VKAPI_CALL systemAllocate (void*, size_t size, size_t alignment, VkSystemAllocationScope) in systemAllocate() argument
39 if (size > 0) in systemAllocate()
40 return deAlignedMalloc(size, (deUint32)alignment); in systemAllocate()
50 static VKAPI_ATTR void* VKAPI_CALL systemReallocate (void*, void* pOriginal, size_t size, size_t alignment, VkSystemAllocationScope) in systemReallocate() argument
52 return deAlignedRealloc(pOriginal, size, alignment); in systemReallocate()
80 static VKAPI_ATTR void* VKAPI_CALL allocationCallback (void* pUserData, size_t size, size_t alignment, VkSystemAllocationScope allocationScope) in allocationCallback() argument
82 return reinterpret_cast<AllocationCallbacks*>(pUserData)->allocate(size, alignment, allocationScope); in allocationCallback()
85 static VKAPI_ATTR void* VKAPI_CALL reallocationCallback (void* pUserData, void* pOriginal, size_t size, size_t alignment, VkSystemAllocationScope allocationScope) in reallocationCallback() argument
87 return reinterpret_cast<AllocationCallbacks*>(pUserData)->reallocate(pOriginal, size, alignment, allocationScope); in reallocationCallback()
95 static VKAPI_ATTR void VKAPI_CALL internalAllocationNotificationCallback (void* pUserData, size_t size, VkInternalAllocationTyp argument
100 internalFreeNotificationCallback(void* pUserData, size_t size, VkInternalAllocationType allocationType, VkSystemAllocationScope allocationScope) internalFreeNotificationCallback() argument
130 allocation(size_t size, size_t alignment, VkSystemAllocationScope scope, void* returnedPtr) allocation() argument
143 reallocation(void* original, size_t size, size_t alignment, VkSystemAllocationScope scope, void* returnedPtr) reallocation() argument
167 internalAllocation(size_t size, VkInternalAllocationType type, VkSystemAllocationScope scope) internalAllocation() argument
179 internalFree(size_t size, VkInternalAllocationType type, VkSystemAllocationScope scope) internalFree() argument
202 allocate(size_t size, size_t alignment, VkSystemAllocationScope allocationScope) allocate() argument
207 reallocate(void* original, size_t size, size_t alignment, VkSystemAllocationScope allocationScope) reallocate() argument
217 notifyInternalAllocation(size_t size, VkInternalAllocationType allocationType, VkSystemAllocationScope allocationScope) notifyInternalAllocation() argument
222 notifyInternalFree(size_t size, VkInternalAllocationType allocationType, VkSystemAllocationScope allocationScope) notifyInternalFree() argument
239 allocate(size_t size, size_t alignment, VkSystemAllocationScope allocationScope) allocate() argument
248 reallocate(void* original, size_t size, size_t alignment, VkSystemAllocationScope allocationScope) reallocate() argument
264 notifyInternalAllocation(size_t size, VkInternalAllocationType allocationType, VkSystemAllocationScope allocationScope) notifyInternalAllocation() argument
271 notifyInternalFree(size_t size, VkInternalAllocationType allocationType, VkSystemAllocationScope allocationScope) notifyInternalFree() argument
297 allocate(size_t size, size_t alignment, VkSystemAllocationScope allocationScope) allocate() argument
306 reallocate(void* original, size_t size, size_t alignment, VkSystemAllocationScope allocationScope) reallocate() argument
537 const size_t size = record.data.internalAllocation.size; validateAllocationCallbacks() local
659 const size_t size = (alloc->type == AllocationCallbackRecord::TYPE_ALLOCATION ? alloc->data.allocation.size : alloc->data.reallocation.size); getLiveSystemAllocationTotal() local
[all...]
/third_party/ltp/testcases/kernel/fs/doio/
H A Ddataascii.c116 int size = 1023; in main() local
121 buffer = malloc(size); in main()
127 dataasciigen(NULL, buffer, size, 0); in main()
128 printf("dataasciigen(NULL, buffer, %d, 0)\n", size); in main()
130 ret = dataasciichk(NULL, buffer, size, 0, &errmsg); in main()
132 size, ret, errmsg); in main()
139 ret = dataasciichk(NULL, &buffer[1], size - 1, 1, &errmsg); in main()
141 size - 1, ret, errmsg); in main()
151 ret = dataasciichk(NULL, &buffer[1], size - 1, 1, &errmsg); in main()
153 size in main()
[all...]
/third_party/mesa3d/src/util/
H A Du_vector.c32 * only compute the modulo with size when accessing the array. This way,
51 vector->size = element_size * initial_element_count; in u_vector_init_pow2()
52 vector->data = malloc(vector->size); in u_vector_init_pow2()
60 uint32_t offset, size, split, src_tail, dst_tail; in u_vector_add() local
63 if (vector->head - vector->tail == vector->size) { in u_vector_add()
64 size = vector->size * 2; in u_vector_add()
65 data = malloc(size); in u_vector_add()
68 src_tail = vector->tail & (vector->size - 1); in u_vector_add()
69 dst_tail = vector->tail & (size in u_vector_add()
[all...]
H A Dralloc.c39 /* Align the header's size so that ralloc() allocations will return with the
105 ralloc_size(const void *ctx, size_t size) in ralloc_size() argument
109 * - Allocations of a size that rounds up to a multiple of 16 bytes in ralloc_size()
111 * - Allocations of a size that rounds up to a multiple of 8 bytes and in ralloc_size()
114 void *block = malloc(align64(size + sizeof(ralloc_header), in ralloc_size()
145 rzalloc_size(const void *ctx, size_t size) in rzalloc_size() argument
147 void *ptr = ralloc_size(ctx, size); in rzalloc_size()
150 memset(ptr, 0, size); in rzalloc_size()
157 resize(void *ptr, size_t size) in resize() argument
162 info = realloc(old, align64(size in resize()
188 reralloc_size(const void *ctx, void *ptr, size_t size) reralloc_size() argument
213 ralloc_array_size(const void *ctx, size_t size, unsigned count) ralloc_array_size() argument
222 rzalloc_array_size(const void *ctx, size_t size, unsigned count) rzalloc_array_size() argument
231 reralloc_array_size(const void *ctx, void *ptr, size_t size, unsigned count) reralloc_array_size() argument
240 rerzalloc_array_size(const void *ctx, void *ptr, size_t size, unsigned old_count, unsigned new_count) rerzalloc_array_size() argument
461 size_t size = u_printf_length(fmt, args) + 1; ralloc_vasprintf() local
564 unsigned size; /* size of the buffer */ global() member
584 unsigned size; /* for realloc */ global() member
622 linear_alloc_child(void *parent, unsigned size) linear_alloc_child() argument
657 linear_alloc_parent(void *ralloc_ctx, unsigned size) linear_alloc_parent() argument
676 linear_zalloc_child(void *parent, unsigned size) linear_zalloc_child() argument
686 linear_zalloc_parent(void *parent, unsigned size) linear_zalloc_parent() argument
796 unsigned size = u_printf_length(fmt, args) + 1; linear_vasprintf() local
[all...]
/third_party/skia/third_party/externals/libwebp/tests/fuzzer/
H A Dsimple_api_fuzzer.c20 int LLVMFuzzerTestOneInput(const uint8_t* const data, size_t size) { in LLVMFuzzerTestOneInput() argument
22 if (!WebPGetInfo(data, size, &w, &h)) return 0; in LLVMFuzzerTestOneInput()
25 const uint8_t value = FuzzHash(data, size); in LLVMFuzzerTestOneInput()
31 buf = WebPDecodeRGBA(data, size, &w, &h); in LLVMFuzzerTestOneInput()
33 buf = WebPDecodeBGRA(data, size, &w, &h); in LLVMFuzzerTestOneInput()
36 buf = WebPDecodeARGB(data, size, &w, &h); in LLVMFuzzerTestOneInput()
38 buf = WebPDecodeRGB(data, size, &w, &h); in LLVMFuzzerTestOneInput()
40 buf = WebPDecodeBGR(data, size, &w, &h); in LLVMFuzzerTestOneInput()
45 buf = WebPDecodeYUV(data, size, &w, &h, &u, &v, &stride, &uv_stride); in LLVMFuzzerTestOneInput()
52 WebPDecodeRGBAInto(data, size, ext_bu in LLVMFuzzerTestOneInput()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Demangle/
H A DStringView.h40 return StringView(begin() + From, size() - From); in substr()
44 size_t FindBegin = std::min(From, size()); in find()
46 if (FindBegin < size()) { in find()
48 if (const void *P = ::memchr(First + FindBegin, C, size() - FindBegin)) in find()
55 if (To >= size()) in substr()
56 To = size() - 1; in substr()
57 if (From >= size()) in substr()
58 From = size() - 1; in substr()
63 if (N >= size()) in dropFront()
64 N = size(); in dropFront()
115 size_t size() const { return static_cast<size_t>(Last - First); } size() function in StringView
[all...]
/third_party/alsa-lib/src/topology/
H A Ddata.c169 size_t size, bytes_read; in tplg_parse_data_file() local
191 size = ftell(fp); in tplg_parse_data_file()
193 if (size <= 0) { in tplg_parse_data_file()
194 SNDERR("invalid data file size %zu", size); in tplg_parse_data_file()
198 if (size > TPLG_MAX_PRIV_SIZE) { in tplg_parse_data_file()
199 SNDERR("data file too big %zu", size); in tplg_parse_data_file()
204 priv = calloc(1, sizeof(*priv) + size); in tplg_parse_data_file()
210 bytes_read = fread(&priv->data, 1, size, fp); in tplg_parse_data_file()
211 if (bytes_read != size) { in tplg_parse_data_file()
468 int size, esize, off, num; tplg_parse_data_hex() local
598 int set_size, size, off; copy_tuples() local
719 unsigned int size; global() member
1572 tplg_decode_manifest_data(snd_tplg_t *tplg, size_t pos, struct snd_soc_tplg_hdr *hdr, void *bin, size_t size) tplg_decode_manifest_data() argument
1626 size_t size; tplg_add_token() local
1666 tplg_verify_tuple_set(snd_tplg_t *tplg, size_t pos, const void *bin, size_t size) tplg_verify_tuple_set() argument
1707 tplg_decode_tuple_set(snd_tplg_t *tplg, size_t pos, struct tplg_elem *parent, struct tplg_tuple_set **_set, const void *bin, size_t size) tplg_decode_tuple_set() argument
1801 tplg_verify_tuples(snd_tplg_t *tplg, size_t pos, const void *bin, size_t size) tplg_verify_tuples() argument
1833 tplg_decode_tuples(snd_tplg_t *tplg, size_t pos, struct tplg_elem *parent, struct tplg_vendor_tuples *tuples, const void *bin, size_t size) tplg_decode_tuples() argument
1875 tplg_add_data(snd_tplg_t *tplg, struct tplg_elem *parent, const void *bin, size_t size) tplg_add_data() argument
1968 tplg_add_data_bytes(snd_tplg_t *tplg, struct tplg_elem *parent, const char *suffix, const void *bin, size_t size) tplg_add_data_bytes() argument
[all...]
/third_party/node/deps/v8/src/heap/
H A Dmemory-allocator.cc190 return chunks_[ChunkQueueType::kRegular].size() + in NumberOfCommittedChunks()
191 chunks_[ChunkQueueType::kNonRegular].size(); in NumberOfCommittedChunks()
198 result += chunks_[i].size(); in NumberOfChunks()
210 sum += chunk->size(); in CommittedBufferedMemory()
213 sum += chunk->size(); in CommittedBufferedMemory()
220 size_t size = reservation->size(); in CommitMemory() local
221 if (!reservation->SetPermissions(base, size, PageAllocator::kReadWrite)) { in CommitMemory()
224 UpdateAllocatedSpaceLimits(base, base + size); in CommitMemory()
229 size_t size in UncommitMemory() local
237 FreeMemoryRegion(v8::PageAllocator* page_allocator, Address base, size_t size) FreeMemoryRegion() argument
427 const size_t size = UnregisterSharedBasicMemoryChunk() local
437 const size_t size = UnregisterBasicMemoryChunk() local
534 size_t size = AllocatePage() local
566 size_t size = MemoryChunkLayout::AllocatableMemoryInMemoryChunk(RO_SPACE); AllocateReadOnlyPage() local
606 const int size = MemoryChunk::kPageSize; AllocateUninitializedPageFromPool() local
614 VirtualMemory reservation(data_page_allocator(), start, size); AllocateUninitializedPageFromPool() local
626 ZapBlock(Address start, size_t size, uintptr_t zap_value) ZapBlock() argument
641 ComputeDiscardMemoryArea(Address addr, size_t size) ComputeDiscardMemoryArea() argument
[all...]
/third_party/node/lib/internal/crypto/
H A Drandom.js82 function assertSize(size, elementSize, offset, length) {
83 validateNumber(size, 'size');
84 size *= elementSize;
86 if (NumberIsNaN(size) || size > kMaxPossibleLength || size < 0) {
87 throw new ERR_OUT_OF_RANGE('size',
88 `>= 0 && <= ${kMaxPossibleLength}`, size);
91 if (size
[all...]
/third_party/ffmpeg/libavcodec/
H A Ddv_tablegen.h42 uint32_t size; member
62 if (dv_vlc_map[ff_dv_vlc_run[i]][ff_dv_vlc_level[i]].size != 0) in dv_vlc_map_tableinit()
67 dv_vlc_map[ff_dv_vlc_run[i]][ff_dv_vlc_level[i]].size = in dv_vlc_map_tableinit()
73 if (dv_vlc_map[i][j].size == 0) { in dv_vlc_map_tableinit()
76 dv_vlc_map[0][j].size); in dv_vlc_map_tableinit()
77 dv_vlc_map[i][j].size = dv_vlc_map[i - 1][0].size + in dv_vlc_map_tableinit()
78 dv_vlc_map[0][j].size; in dv_vlc_map_tableinit()
83 if (dv_vlc_map[i][j].size == 0) { in dv_vlc_map_tableinit()
86 dv_vlc_map[0][j].size); in dv_vlc_map_tableinit()
[all...]
H A Dtwinvq.c40 * @param order the order of the LSP (and the size of the *lsp buffer). Must
75 int size_s = mtab->size / mtab->fmode[TWINVQ_FT_SHORT].sub; in eval_lpcenv()
84 static void interpolate(float *out, float v1, float v2, int size) in interpolate() argument
87 float step = (v1 - v2) / (size + 1); in interpolate()
89 for (i = 0; i < size; i++) { in interpolate()
95 static inline float get_cos(int idx, int part, const float *cos_tab, int size) in get_cos() argument
97 return part ? -cos_tab[size - idx - 1] in get_cos()
109 * @param step the size of a block "siiiibiiii"
113 * @param size the size o
115 eval_lpcenv_or_interp(TwinVQContext *tctx, enum TwinVQFrameType ftype, float *out, const float *in, int size, int step, int part) eval_lpcenv_or_interp() argument
152 eval_lpcenv_2parts(TwinVQContext *tctx, enum TwinVQFrameType ftype, const float *buf, float *lpc, int size, int step) eval_lpcenv_2parts() argument
308 int size = tctx->mtab->size / tctx->mtab->fmode[ftype].sub; dec_lpc_spectrum_inv() local
334 int size = mtab->size; imdct_and_window() local
632 linear_perm(int16_t *out, int16_t *in, int n_blocks, int size) linear_perm() argument
644 int block_size, size; construct_perm_table() local
[all...]
/third_party/backends/testsuite/backend/genesys/
H A Dtests_row_buffer.cpp33 void test_row_buffer_push_pop_forward(unsigned size) in test_row_buffer_push_pop_forward() argument
38 for (unsigned i = 0; i < size; i++) { in test_row_buffer_push_pop_forward()
48 ASSERT_EQ(buf.height(), size); in test_row_buffer_push_pop_forward()
51 ASSERT_EQ(buf.height(), size - 1); in test_row_buffer_push_pop_forward()
53 *buf.get_back_row_ptr() = i + size; in test_row_buffer_push_pop_forward()
57 void test_row_buffer_push_pop_backward(unsigned size) in test_row_buffer_push_pop_backward() argument
62 for (unsigned i = 0; i < size; i++) { in test_row_buffer_push_pop_backward()
72 ASSERT_EQ(buf.height(), size); in test_row_buffer_push_pop_backward()
75 ASSERT_EQ(buf.height(), size - 1); in test_row_buffer_push_pop_backward()
77 *buf.get_front_row_ptr() = i + size; in test_row_buffer_push_pop_backward()
[all...]
/third_party/node/deps/v8/src/base/
H A Dvirtual-address-space-page-allocator.cc15 void* hint, size_t size, size_t alignment, in AllocatePages()
18 vas_->AllocatePages(reinterpret_cast<Address>(hint), size, alignment, in AllocatePages()
22 bool VirtualAddressSpacePageAllocator::FreePages(void* ptr, size_t size) { in FreePages() argument
25 // Was this allocation resized previously? If so, use the original size. in FreePages()
28 size = result->second; in FreePages()
31 vas_->FreePages(address, size); in FreePages()
35 bool VirtualAddressSpacePageAllocator::ReleasePages(void* ptr, size_t size, in ReleasePages() argument
42 // to pass the original size to FreePages eventually, so we'll need to keep in ReleasePages()
44 DCHECK_LE(new_size, size); in ReleasePages()
49 resized_allocations_.insert({address, size}); in ReleasePages()
14 AllocatePages( void* hint, size_t size, size_t alignment, PageAllocator::Permission access) AllocatePages() argument
54 SetPermissions( void* address, size_t size, PageAllocator::Permission access) SetPermissions() argument
60 DiscardSystemPages(void* address, size_t size) DiscardSystemPages() argument
65 DecommitPages(void* address, size_t size) DecommitPages() argument
[all...]
H A Dvirtual-address-space.h59 Address AllocatePages(Address hint, size_t size, size_t alignment,
62 void FreePages(Address address, size_t size) override;
64 bool SetPagePermissions(Address address, size_t size,
67 bool AllocateGuardRegion(Address address, size_t size) override;
69 void FreeGuardRegion(Address address, size_t size) override;
71 Address AllocateSharedPages(Address hint, size_t size,
76 void FreeSharedPages(Address address, size_t size) override;
81 Address hint, size_t size, size_t alignment,
84 bool DiscardSystemPages(Address address, size_t size) override;
86 bool DecommitPages(Address address, size_t size) overrid
[all...]
/third_party/node/deps/v8/src/base/sanitizer/
H A Dlsan-virtual-address-space.cc20 vas->base(), vas->size(), in LsanVirtualAddressSpace()
26 Address LsanVirtualAddressSpace::AllocatePages(Address hint, size_t size, in AllocatePages() argument
29 Address result = vas_->AllocatePages(hint, size, alignment, permissions); in AllocatePages()
32 __lsan_register_root_region(reinterpret_cast<void*>(result), size); in AllocatePages() local
38 void LsanVirtualAddressSpace::FreePages(Address address, size_t size) { in FreePages() argument
39 vas_->FreePages(address, size); in FreePages()
41 __lsan_unregister_root_region(reinterpret_cast<void*>(address), size); in FreePages() local
46 Address hint, size_t size, PagePermissions permissions, in AllocateSharedPages()
49 vas_->AllocateSharedPages(hint, size, permissions, handle, offset); in AllocateSharedPages()
52 __lsan_register_root_region(reinterpret_cast<void*>(result), size); in AllocateSharedPages() local
45 AllocateSharedPages( Address hint, size_t size, PagePermissions permissions, PlatformSharedMemoryHandle handle, uint64_t offset) AllocateSharedPages() argument
58 FreeSharedPages(Address address, size_t size) FreeSharedPages() argument
61 __lsan_unregister_root_region(reinterpret_cast<void*>(address), size); FreeSharedPages() local
65 AllocateSubspace( Address hint, size_t size, size_t alignment, PagePermissions max_page_permissions) AllocateSubspace() argument
[all...]
H A Dlsan-virtual-address-space.h33 Address AllocatePages(Address hint, size_t size, size_t alignment,
36 void FreePages(Address address, size_t size) override;
38 Address AllocateSharedPages(Address hint, size_t size,
43 void FreeSharedPages(Address address, size_t size) override;
45 bool SetPagePermissions(Address address, size_t size,
47 return vas_->SetPagePermissions(address, size, permissions);
50 bool AllocateGuardRegion(Address address, size_t size) override {
51 return vas_->AllocateGuardRegion(address, size);
54 void FreeGuardRegion(Address address, size_t size) override {
55 vas_->FreeGuardRegion(address, size);
[all...]
/third_party/skia/include/private/
H A DSkMalloc.h44 * Return a block of memory (at least 4-byte aligned) of at least the specified size.
51 SK_API extern void* sk_malloc_flags(size_t size, unsigned flags);
56 SK_API extern void* sk_realloc_throw(void* buffer, size_t size);
58 static inline void* sk_malloc_throw(size_t size) { in sk_malloc_throw() argument
59 return sk_malloc_flags(size, SK_MALLOC_THROW); in sk_malloc_throw()
62 static inline void* sk_calloc_throw(size_t size) { in sk_calloc_throw() argument
63 return sk_malloc_flags(size, SK_MALLOC_THROW | SK_MALLOC_ZERO_INITIALIZE); in sk_calloc_throw()
66 static inline void* sk_calloc_canfail(size_t size) { in sk_calloc_canfail() argument
69 if (size > 200000) { in sk_calloc_canfail()
73 return sk_malloc_flags(size, SK_MALLOC_ZERO_INITIALIZ in sk_calloc_canfail()
84 sk_malloc_canfail(size_t size) sk_malloc_canfail() argument
96 sk_bzero(void* buffer, size_t size) sk_bzero() argument
[all...]
/third_party/libuv/src/unix/
H A Dnetbsd.c55 size_t size = sizeof(info); in uv_loadavg() local
58 if (sysctl(which, ARRAY_SIZE(which), &info, &size, NULL, 0) == -1) return; in uv_loadavg()
66 int uv_exepath(char* buffer, size_t* size) { in uv_exepath() argument
75 if (buffer == NULL || size == NULL || *size == 0) in uv_exepath()
91 uv__strscpy(buffer, int_buf, *size); in uv_exepath()
93 /* Set new size. */ in uv_exepath()
94 *size = strlen(buffer); in uv_exepath()
102 size_t size = sizeof(info); in uv_get_free_memory() local
105 if (sysctl(which, ARRAY_SIZE(which), &info, &size, NUL in uv_get_free_memory()
120 size_t size = sizeof(info); uv_get_total_memory() local
172 size_t size = sizeof(info); uv_uptime() local
194 size_t size; uv_cpu_info() local
[all...]
/third_party/node/deps/uv/src/unix/
H A Dnetbsd.c55 size_t size = sizeof(info); in uv_loadavg() local
58 if (sysctl(which, ARRAY_SIZE(which), &info, &size, NULL, 0) == -1) return; in uv_loadavg()
66 int uv_exepath(char* buffer, size_t* size) { in uv_exepath() argument
75 if (buffer == NULL || size == NULL || *size == 0) in uv_exepath()
91 uv__strscpy(buffer, int_buf, *size); in uv_exepath()
93 /* Set new size. */ in uv_exepath()
94 *size = strlen(buffer); in uv_exepath()
102 size_t size = sizeof(info); in uv_get_free_memory() local
105 if (sysctl(which, ARRAY_SIZE(which), &info, &size, NUL in uv_get_free_memory()
120 size_t size = sizeof(info); uv_get_total_memory() local
167 size_t size = sizeof(info); uv_uptime() local
189 size_t size; uv_cpu_info() local
[all...]
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/table/truetype/
H A DCompositeGlyph.java49 int index = 5 * FontData.DataSize.USHORT.size(); // header in initialize()
54 index += 2 * FontData.DataSize.USHORT.size(); // flags and in initialize()
57 index += 2 * FontData.DataSize.SHORT.size(); in initialize()
59 index += 2 * FontData.DataSize.BYTE.size(); in initialize()
62 index += FontData.DataSize.F2DOT14.size(); in initialize()
64 index += 2 * FontData.DataSize.F2DOT14.size(); in initialize()
66 index += 4 * FontData.DataSize.F2DOT14.size(); in initialize()
72 index += FontData.DataSize.USHORT.size(); in initialize()
74 nonPaddedDataLength = index + (this.instructionSize * FontData.DataSize.BYTE.size()); in initialize()
85 return this.contourIndex.size(); in numGlyphs()
[all...]
/third_party/toybox/toys/posix/
H A Dod.c22 plus optional size in bytes
48 int size; member
79 memcpy(&fdl, TT.buf+*offset, t->size); in od_out_t()
80 *offset += t->size; in od_out_t()
81 if (sizeof(float) == t->size) { in od_out_t()
84 } else if (sizeof(double) == t->size) { in od_out_t()
87 } else if (sizeof(long double) == t->size) { in od_out_t()
90 } else error_exit("bad -tf '%d'", t->size); in od_out_t()
100 if (t->size == 8) { in od_out_t()
103 } else or = (1LL<<(8*t->size)) in od_out_t()
230 int size = 1; append_base() local
[all...]
/third_party/skia/modules/skunicode/tests/
H A DSkUnicodeTest.cpp23 auto utf8 = SkUnicode::convertUtf16ToUtf8(text.data(), text.size()); in UNIX_ONLY_TEST()
25 (SkSpan<char>(&utf8[0], utf8.size()), {}, {}, {}); in UNIX_ONLY_TEST()
27 client->computeCodeUnitFlags(utf8.data(), utf8.size(), false, &results); in UNIX_ONLY_TEST()
37 auto utf8 = SkUnicode::convertUtf16ToUtf8(text.data(), text.size()); in UNIX_ONLY_TEST()
40 icu->computeCodeUnitFlags(utf8.data(), utf8.size(), false, &results); in UNIX_ONLY_TEST()
51 auto result = icu->getWords(text.data(), text.size(), "en", &results); in UNIX_ONLY_TEST()
53 REPORTER_ASSERT(reporter, results.size() == expected.size()); in UNIX_ONLY_TEST()
54 for (auto i = 0ul; i < results.size(); ++i) { in UNIX_ONLY_TEST()
64 text.size(), in UNIX_ONLY_TEST()
[all...]
/third_party/skia/modules/skplaintexteditor/src/
H A Deditor.cpp23 static bool valid_utf8(const char* ptr, size_t size) { return SkUTF::CountUTF8(ptr, size) >= 0; } in valid_utf8() argument
29 static void readlines(const void* data, size_t size, F f) { in readlines() argument
31 const char* end = start + size; in readlines()
73 for (size_t j = 0; j < fLines.size(); ++j) { in getPosition()
78 j + 1 < fLines.size() ? fLines[j + 1].fOrigin.y() : INT_MAX}; in getPosition()
89 for (size_t i = 0; i < pos.size(); ++i) { in getPosition()
94 approximatePosition = {xy.x() <= line.fOrigin.x() ? 0 : line.fText.size(), j}; in getPosition()
127 if (fLines.size() > 0) { in getLocation()
130 if (cursor.fTextByteIndex < cLine.fCursorPos.size()) { in getLocation()
213 size_t size = 0; copy() local
[all...]
/third_party/lwip/src/core/
H A Dmem.c92 * @param size allocated size of the element
97 mem_overflow_check_raw(void *p, size_t size, const char *descr1, const char *descr2) in mem_overflow_check_raw() argument
104 m = (u8_t *)p + size; in mem_overflow_check_raw()
135 mem_overflow_init_raw(void *p, size_t size) in mem_overflow_init_raw() argument
144 m = (u8_t *)p + size; in mem_overflow_init_raw()
169 mem_trim(void *mem, mem_size_t size) in mem_trim() argument
171 LWIP_UNUSED_ARG(size); in mem_trim()
199 * Allocate a block of memory with a minimum of 'size' bytes.
201 * @param size i
207 mem_malloc(mem_size_t size) mem_malloc() argument
251 mem_malloc(mem_size_t size) mem_malloc() argument
701 mem_size_t size, newsize; mem_trim() local
833 mem_size_t ptr, ptr2, size; mem_malloc() local
982 mem_calloc(mem_size_t count, mem_size_t size) mem_calloc() argument
999 mem_calloc(mem_size_t count, mem_size_t size) mem_calloc() argument
[all...]
/third_party/jerryscript/tests/jerry/es2015/
H A Dmap.js17 assert(m.size == 0);
20 assert(m.size == 1);
23 assert(m.size == 2);
28 assert(m.size == 3);
33 assert(m.size == 4);
38 assert(m.size == 5);
43 assert(m.size == 4);
50 assert(m.size == 3);
56 assert(m.size == 1);
59 assert(m.size
[all...]

Completed in 12 milliseconds

12345678910>>...734