Home
last modified time | relevance | path

Searched refs:size (Results 51 - 75 of 19354) sorted by relevance

12345678910>>...775

/drivers/peripheral/codec/test/fuzztest/image_fuzzer/common/src/
H A Dencode_heif_helper.cpp56 ItemRef HeifEncodeHelper::FillRefItem(ItemRef item, uint8_t *data, size_t &size) in FillRefItem() argument
58 uint8_t *dataEnd = data + size - 1; in FillRefItem()
78 size -= sizeof(uint8_t); in FillRefItem()
85 size -= sizeof(item.from); in FillRefItem()
92 size -= sizeof(vecSize); in FillRefItem()
99 size -= sizeof(item.from); in FillRefItem()
105 bool HeifEncodeHelper::FillImageItem(ImgType type, ImageItem& item, uint8_t *data, size_t &size) in FillImageItem() argument
107 uint8_t *dataEnd = data + size - 1; in FillImageItem()
114 size -= sizeof(item.id); in FillImageItem()
116 item.pixelBuffer = bufferHelper_.CreateImgBuffer(data, size); in FillImageItem()
161 AssembleParamForOtherImg(uint32_t primaryImgId, uint8_t *data, size_t &size) AssembleParamForOtherImg() argument
210 AssembleParamForTmap(uint8_t *data, size_t &size) AssembleParamForTmap() argument
253 AssembleParamForPrimaryImg(uint8_t *data, size_t &size) AssembleParamForPrimaryImg() argument
270 FillMetaItem(MetaType type, MetaItem& item, uint8_t *data, size_t &size) FillMetaItem() argument
310 AssembleParamForMetaData(uint32_t primaryImgId, uint8_t *data, size_t &size) AssembleParamForMetaData() argument
[all...]
/third_party/libdrm/amdgpu/
H A Damdgpu_vamgr.c56 n->size = mgr->va_max - start; in amdgpu_vamgr_init()
76 if (start_va > hole->offset && end_va - hole->offset < hole->size) { in amdgpu_vamgr_subtract_hole()
81 n->size = start_va - hole->offset; in amdgpu_vamgr_subtract_hole()
85 hole->size -= (end_va - hole->offset); in amdgpu_vamgr_subtract_hole()
88 hole->size = start_va - hole->offset; in amdgpu_vamgr_subtract_hole()
89 } else if (end_va - hole->offset < hole->size) { in amdgpu_vamgr_subtract_hole()
90 hole->size -= (end_va - hole->offset); in amdgpu_vamgr_subtract_hole()
101 amdgpu_vamgr_find_va(struct amdgpu_bo_va_mgr *mgr, uint64_t size, in amdgpu_vamgr_find_va() argument
111 size = ALIGN(size, mg in amdgpu_vamgr_find_va()
168 amdgpu_vamgr_free_va(struct amdgpu_bo_va_mgr *mgr, uint64_t va, uint64_t size) amdgpu_vamgr_free_va() argument
223 amdgpu_va_range_alloc(amdgpu_device_handle dev, enum amdgpu_gpu_va_range va_range_type, uint64_t size, uint64_t va_base_alignment, uint64_t va_base_required, uint64_t *va_base_allocated, amdgpu_va_handle *va_range_handle, uint64_t flags) amdgpu_va_range_alloc() argument
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/runtime/
H A Dszrt_asan.c108 size_t size; member
116 static void __asan_error(char *ptr, int size, int access, void *ret_addr) { in __asan_error() argument
126 fprintf(stderr, "%p: Illegal %d byte %s %s object at %p\n", ret_addr, size, in __asan_error()
133 static bool __asan_check(char *ptr, int size) { in __asan_check() argument
134 assert(size == 1 || size == 2 || size == 4 || size == 8); in __asan_check()
137 DUMP("check %d bytes at %p: %p + %d (%d)\n", size, ptr, shadow_addr, in __asan_check()
139 if (size in __asan_check()
154 __asan_check_load(char *ptr, int size) __asan_check_load() argument
163 __asan_check_store(char *ptr, int size) __asan_check_store() argument
197 __asan_malloc(size_t size) __asan_malloc() argument
221 __asan_calloc(size_t nmemb, size_t size) __asan_calloc() argument
228 __asan_realloc(char *ptr, size_t size) __asan_realloc() argument
295 __asan_poison(char *ptr, int size, char poison_val) __asan_poison() argument
308 __asan_unpoison(char *ptr, int size) __asan_unpoison() argument
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/utils/
H A Dradiotap.c20 [IEEE80211_RADIOTAP_TSFT] = { .align = 8, .size = 8, },
21 [IEEE80211_RADIOTAP_FLAGS] = { .align = 1, .size = 1, },
22 [IEEE80211_RADIOTAP_RATE] = { .align = 1, .size = 1, },
23 [IEEE80211_RADIOTAP_CHANNEL] = { .align = 2, .size = 4, },
24 [IEEE80211_RADIOTAP_FHSS] = { .align = 2, .size = 2, },
25 [IEEE80211_RADIOTAP_DBM_ANTSIGNAL] = { .align = 1, .size = 1, },
26 [IEEE80211_RADIOTAP_DBM_ANTNOISE] = { .align = 1, .size = 1, },
27 [IEEE80211_RADIOTAP_LOCK_QUALITY] = { .align = 2, .size = 2, },
28 [IEEE80211_RADIOTAP_TX_ATTENUATION] = { .align = 2, .size = 2, },
29 [IEEE80211_RADIOTAP_DB_TX_ATTENUATION] = { .align = 2, .size
188 find_override(struct ieee80211_radiotap_iterator *iterator, int *align, int *size) find_override() argument
239 int pad, align, size, subns; ieee80211_radiotap_iterator_next() local
[all...]
/third_party/ffmpeg/libavformat/
H A D3dostr.c30 unsigned size = AV_RB32(p->buf + i + 4); in threedostr_probe() local
32 if (size < 8 || p->buf_size - i < size) in threedostr_probe()
35 size -= 8; in threedostr_probe()
40 if (size < 56) in threedostr_probe()
59 if (size > 0x78) { in threedostr_probe()
61 size -= 0x78; in threedostr_probe()
68 i += size; in threedostr_probe()
76 unsigned chunk, codec = 0, size, ctrl_size = -1, found_shdr = 0; in threedostr_read_header() local
81 size in threedostr_read_header()
152 unsigned chunk, size; threedostr_read_packet() local
[all...]
H A Dmpc8.c81 int64_t size; in mpc8_probe() local
92 size = bs_get_v(&bs); in mpc8_probe()
93 if (size < 2) in mpc8_probe()
95 if (size >= bs_end - bs + 2) in mpc8_probe()
98 if (size < 11 || size > 28) in mpc8_probe()
104 bs += size - 2; in mpc8_probe()
125 static void mpc8_get_chunk_header(AVIOContext *pb, int *tag, int64_t *size) in mpc8_get_chunk_header() argument
130 *size = ffio_read_varlen(pb); in mpc8_get_chunk_header()
132 if (av_sat_add64(*size, po in mpc8_get_chunk_header()
142 int64_t size, pos, ppos[2]; mpc8_parse_seektable() local
208 mpc8_handle_chunk(AVFormatContext *s, int tag, int64_t chunk_pos, int64_t size) mpc8_handle_chunk() argument
235 int64_t size, pos; mpc8_read_header() local
301 int64_t pos, size; mpc8_read_packet() local
[all...]
/third_party/lzma/C/
H A D7zCrcOpt.c12 UInt32 Z7_FASTCALL CrcUpdateT4(UInt32 v, const void *data, size_t size, const UInt32 *table);
13 UInt32 Z7_FASTCALL CrcUpdateT4(UInt32 v, const void *data, size_t size, const UInt32 *table) in CrcUpdateT4() argument
16 for (; size > 0 && ((unsigned)(ptrdiff_t)p & 3) != 0; size--, p++) in CrcUpdateT4()
18 for (; size >= 4; size -= 4, p += 4) in CrcUpdateT4()
27 for (; size > 0; size--, p++) in CrcUpdateT4()
32 UInt32 Z7_FASTCALL CrcUpdateT8(UInt32 v, const void *data, size_t size, const UInt32 *table);
33 UInt32 Z7_FASTCALL CrcUpdateT8(UInt32 v, const void *data, size_t size, cons argument
68 CrcUpdateT1_BeT4(UInt32 v, const void *data, size_t size, const UInt32 *table) CrcUpdateT1_BeT4() argument
89 CrcUpdateT1_BeT8(UInt32 v, const void *data, size_t size, const UInt32 *table) CrcUpdateT1_BeT8() argument
[all...]
/third_party/vulkan-loader/loader/
H A Dallocation.c34 void *loader_alloc(const VkAllocationCallbacks *pAllocator, size_t size, VkSystemAllocationScope allocation_scope) { argument
41 // the largest unit size which is the size of a uint64_t.
42 pMemory = pAllocator->pfnAllocation(pAllocator->pUserData, size, sizeof(uint64_t), allocation_scope);
45 pMemory = malloc(size);
51 void *loader_calloc(const VkAllocationCallbacks *pAllocator, size_t size, VkSystemAllocationScope allocation_scope) { argument
58 // the largest unit size which is the size of a uint64_t.
59 pMemory = pAllocator->pfnAllocation(pAllocator->pUserData, size, sizeof(uint64_t), allocation_scope);
61 memset(pMemory, 0, size);
85 loader_realloc(const VkAllocationCallbacks *pAllocator, void *pMemory, size_t orig_size, size_t size, VkSystemAllocationScope allocation_scope) global() argument
105 loader_instance_heap_alloc(const struct loader_instance *inst, size_t size, VkSystemAllocationScope allocation_scope) global() argument
109 loader_instance_heap_calloc(const struct loader_instance *inst, size_t size, VkSystemAllocationScope allocation_scope) global() argument
116 loader_instance_heap_realloc(const struct loader_instance *inst, void *pMemory, size_t orig_size, size_t size, VkSystemAllocationScope allocation_scope) global() argument
121 loader_device_heap_alloc(const struct loader_device *dev, size_t size, VkSystemAllocationScope allocation_scope) global() argument
125 loader_device_heap_calloc(const struct loader_device *dev, size_t size, VkSystemAllocationScope allocation_scope) global() argument
132 loader_device_heap_realloc(const struct loader_device *dev, void *pMemory, size_t orig_size, size_t size, VkSystemAllocationScope allocation_scope) global() argument
137 loader_alloc_with_instance_fallback(const VkAllocationCallbacks *pAllocator, const struct loader_instance *inst, size_t size, VkSystemAllocationScope allocation_scope) global() argument
142 loader_calloc_with_instance_fallback(const VkAllocationCallbacks *pAllocator, const struct loader_instance *instance, size_t size, VkSystemAllocationScope allocation_scope) global() argument
152 loader_realloc_with_instance_fallback(const VkAllocationCallbacks *pAllocator, const struct loader_instance *instance, void *pMemory, size_t orig_size, size_t size, VkSystemAllocationScope allocation_scope) global() argument
[all...]
/third_party/mesa3d/src/gallium/auxiliary/rbug/
H A Drbug_internal.h40 int rbug_connection_write(struct rbug_connection *con, void *data, uint32_t size);
51 #define LEN(size) \
53 PAD(__len, size); \
54 __len += size; \
57 #define LEN_ARRAY(size, name) \
60 PAD(__len, size); \
61 __len += size * name##_len; \
64 #define WRITE(size, type, name) \
66 PAD(__pos, size); \
68 __pos += size; \
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/video/
H A DvktBitstreamBufferImpl.cpp72 VkDeviceSize size = MemsetData(0x00, 0, m_bufferSize); in Initialize() local
73 DE_ASSERT(size == m_bufferSize); in Initialize()
74 DE_UNREF(size); in Initialize()
81 createBufferInfo.size = deAlignSize(bufferSize, m_bufferSizeAlignment); in Initialize()
95 VkDeviceSize size, in CopyDataToBuffer()
98 DE_ASSERT((pData != nullptr) && (size > 0) && (size < 10 * 1024 * 1024)); // 10 MiB should be big enough for any CTS test. in CopyDataToBuffer()
101 DE_ASSERT((dstBufferOffset + size) <= m_bufferSize); in CopyDataToBuffer()
104 deMemcpy(bitstreamBasePtr + dstBufferOffset, pData, size); in CopyDataToBuffer()
139 deUint8* BitstreamBufferImpl::CheckAccess(VkDeviceSize offset, VkDeviceSize size) cons
94 CopyDataToBuffer(const deUint8* pData, VkDeviceSize size, VkDeviceSize& dstBufferOffset) const CopyDataToBuffer() argument
147 MemsetData(deUint32 value, VkDeviceSize offset, VkDeviceSize size) MemsetData() argument
181 CopyDataFromBuffer(const deUint8* sourceBuffer, VkDeviceSize srcOffset, VkDeviceSize dstOffset, VkDeviceSize size) CopyDataFromBuffer() argument
192 CopyDataFromBuffer(const VkSharedBaseObj<VulkanBitstreamBuffer>& sourceBuffer, VkDeviceSize srcOffset, VkDeviceSize dstOffset, VkDeviceSize size) CopyDataFromBuffer() argument
[all...]
/third_party/vk-gl-cts/external/vulkancts/vkscserver/
H A DvksSerializer.hpp37 static void SerializeData (vector<u8>& buffer, msize& pos, VoidPointer data, msize size) in SerializeData()
39 if (size == 0) return; in SerializeData()
40 if ((pos + size) > buffer.size()) buffer.resize(pos + size); in SerializeData()
41 memmove(buffer.data() + pos, data, size); in SerializeData()
42 pos += size; in SerializeData()
49 static void SerializeData (vector<u8>& buffer, msize& pos, VoidPointer data, msize size) in SerializeData()
51 if (size == 0) return; in SerializeData()
53 if ( (pos + size) > buffe in SerializeData()
67 SerializeRawData(typename TYPE::VoidPointer data, msize size) SerializeRawData() argument
138 SerializeSize(Serializer<ToWrite>& serializer, msize size) SerializeSize() argument
145 SerializeSize(Serializer<ToRead>& serializer, msize& size) SerializeSize() argument
154 msize size; SerializeItem() local
183 msize size; SerializeItem() local
204 msize size; SerializeItem() local
215 msize size; SerializeItem() local
239 msize size; SerializeItem() local
[all...]
/third_party/lzma/CPP/7zip/Common/
H A DLimitedStreams.cpp9 Z7_COM7F_IMF(CLimitedSequentialInStream::Read(void *data, UInt32 size, UInt32 *processedSize)) in Read() argument
14 if (size > rem) in Read()
15 size = (UInt32)rem; in Read()
18 if (size != 0) in Read()
20 result = _stream->Read(data, size, &realProcessedSize); in Read()
30 Z7_COM7F_IMF(CLimitedInStream::Read(void *data, UInt32 size, UInt32 *processedSize)) in Read() argument
42 if (size > rem) in Read()
43 size = (UInt32)rem; in Read()
51 HRESULT res = _stream->Read(data, size, &size); in Read()
76 CreateLimitedInStream(IInStream *inStream, UInt64 pos, UInt64 size, ISequentialInStream **resStream) CreateLimitedInStream() argument
88 Read(void *data, UInt32 size, UInt32 *processedSize) Read() argument
153 Read(void *data, UInt32 size, UInt32 *processedSize) Read() argument
239 Write(const void *data, UInt32 size, UInt32 *processedSize) Write() argument
266 Read(void *data, UInt32 size, UInt32 *processedSize) Read() argument
303 Read(void *data, UInt32 size, UInt32 *processedSize) Read() argument
360 Write(const void *data, UInt32 size, UInt32 *processedSize) Write() argument
[all...]
/third_party/mesa3d/src/virtio/venus-protocol/
H A Dvn_protocol_driver_queue.h26 size_t size = 0; in vn_sizeof_VkDeviceGroupSubmitInfo_self() local
28 size += vn_sizeof_uint32_t(&val->waitSemaphoreCount); in vn_sizeof_VkDeviceGroupSubmitInfo_self()
30 size += vn_sizeof_array_size(val->waitSemaphoreCount); in vn_sizeof_VkDeviceGroupSubmitInfo_self()
31 size += vn_sizeof_uint32_t_array(val->pWaitSemaphoreDeviceIndices, val->waitSemaphoreCount); in vn_sizeof_VkDeviceGroupSubmitInfo_self()
33 size += vn_sizeof_array_size(0); in vn_sizeof_VkDeviceGroupSubmitInfo_self()
35 size += vn_sizeof_uint32_t(&val->commandBufferCount); in vn_sizeof_VkDeviceGroupSubmitInfo_self()
37 size += vn_sizeof_array_size(val->commandBufferCount); in vn_sizeof_VkDeviceGroupSubmitInfo_self()
38 size += vn_sizeof_uint32_t_array(val->pCommandBufferDeviceMasks, val->commandBufferCount); in vn_sizeof_VkDeviceGroupSubmitInfo_self()
40 size += vn_sizeof_array_size(0); in vn_sizeof_VkDeviceGroupSubmitInfo_self()
42 size in vn_sizeof_VkDeviceGroupSubmitInfo_self()
55 size_t size = 0; vn_sizeof_VkDeviceGroupSubmitInfo() local
119 size_t size = 0; vn_sizeof_VkProtectedSubmitInfo_self() local
128 size_t size = 0; vn_sizeof_VkProtectedSubmitInfo() local
172 size_t size = 0; vn_sizeof_VkTimelineSemaphoreSubmitInfo_self() local
194 size_t size = 0; vn_sizeof_VkTimelineSemaphoreSubmitInfo() local
245 size_t size = 0; vn_sizeof_VkSubmitInfo_pnext() local
280 size_t size = 0; vn_sizeof_VkSubmitInfo_self() local
319 size_t size = 0; vn_sizeof_VkSubmitInfo() local
414 size_t size = 0; vn_sizeof_VkSparseMemoryBind() local
438 size_t size = 0; vn_sizeof_VkSparseBufferMemoryBindInfo() local
470 size_t size = 0; vn_sizeof_VkSparseImageOpaqueMemoryBindInfo() local
502 size_t size = 0; vn_sizeof_VkSparseImageMemoryBind() local
528 size_t size = 0; vn_sizeof_VkSparseImageMemoryBindInfo() local
567 size_t size = 0; vn_sizeof_VkDeviceGroupBindSparseInfo_self() local
577 size_t size = 0; vn_sizeof_VkDeviceGroupBindSparseInfo() local
616 size_t size = 0; vn_sizeof_VkBindSparseInfo_pnext() local
645 size_t size = 0; vn_sizeof_VkBindSparseInfo_self() local
693 size_t size = 0; vn_sizeof_VkBindSparseInfo() local
798 size_t size = 0; vn_sizeof_VkSemaphoreSubmitInfo_self() local
810 size_t size = 0; vn_sizeof_VkSemaphoreSubmitInfo() local
857 size_t size = 0; vn_sizeof_VkCommandBufferSubmitInfo_self() local
867 size_t size = 0; vn_sizeof_VkCommandBufferSubmitInfo() local
912 size_t size = 0; vn_sizeof_VkSubmitInfo2_self() local
945 size_t size = 0; vn_sizeof_VkSubmitInfo2() local
[all...]
/third_party/skia/gm/
H A Dscaledstrokes.cpp31 static void draw_path(SkScalar size, SkCanvas* canvas, SkPaint paint) { in draw_path() argument
32 SkScalar c = 0.551915024494f * size; in draw_path()
34 path.moveTo(0.0f, size); in draw_path()
35 path.cubicTo(c, size, size, c, size, 0.0f); in draw_path()
36 path.cubicTo(size, -c, c, -size, 0.0f, -size); in draw_path()
37 path.cubicTo(-c, -size, in draw_path()
47 const SkScalar size = 60.0f; global() variable
[all...]
/third_party/mindspore/test/fuzztest/mindspore_fuzzer/
H A Dcontext_c_fuzzer.cpp6 bool MSContextFuzzTest_ThreadNum(const uint8_t *data, size_t size) { in MSContextFuzzTest_ThreadNum() argument
12 Data dataFuzz(data, size); in MSContextFuzzTest_ThreadNum()
27 bool MSContextFuzzTest_ThreadAffinityMode(const uint8_t *data, size_t size) { in MSContextFuzzTest_ThreadAffinityMode() argument
33 Data dataFuzz(data, size); in MSContextFuzzTest_ThreadAffinityMode()
48 bool MSContextFuzzTest_Provider(const uint8_t *data, size_t size) { in MSContextFuzzTest_Provider() argument
54 char *infoProvider = static_cast<char *>(malloc(size + 1)); in MSContextFuzzTest_Provider()
59 if (memcpy_s(infoProvider, size + 1, data, size) != EOK) { in MSContextFuzzTest_Provider()
64 infoProvider[size] = '\0'; in MSContextFuzzTest_Provider()
90 bool MSContextFuzzTest_ThreadNum_Add1(const uint8_t *data, size_t size) { in MSContextFuzzTest_ThreadNum_Add1() argument
110 MSContextFuzzTest_ThreadAffinityMode_Add1(const uint8_t *data, size_t size) MSContextFuzzTest_ThreadAffinityMode_Add1() argument
130 MSContextFuzzTest_Provider_Add1(const uint8_t *data, size_t size) MSContextFuzzTest_Provider_Add1() argument
169 MSContextFuzzTest_ThreadNum_Add2(const uint8_t *data, size_t size) MSContextFuzzTest_ThreadNum_Add2() argument
189 MSContextFuzzTest_ThreadAffinityMode_Add2(const uint8_t *data, size_t size) MSContextFuzzTest_ThreadAffinityMode_Add2() argument
209 MSContextFuzzTest_Provider_Add2(const uint8_t *data, size_t size) MSContextFuzzTest_Provider_Add2() argument
248 MSContextFuzzTest_ThreadNum_Add3(const uint8_t *data, size_t size) MSContextFuzzTest_ThreadNum_Add3() argument
268 MSContextFuzzTest_ThreadNum_Add4(const uint8_t *data, size_t size) MSContextFuzzTest_ThreadNum_Add4() argument
288 MSContextFuzzTest_ThreadAffinityMode_Add3(const uint8_t *data, size_t size) MSContextFuzzTest_ThreadAffinityMode_Add3() argument
308 MSContextFuzzTest_ThreadAffinityMode_Add4(const uint8_t *data, size_t size) MSContextFuzzTest_ThreadAffinityMode_Add4() argument
328 MSContextFuzzTest_Provider_Add3(const uint8_t* data, size_t size) MSContextFuzzTest_Provider_Add3() argument
367 MSContextFuzzTest_Provider_Add4(const uint8_t *data, size_t size) MSContextFuzzTest_Provider_Add4() argument
407 MSContextFuzzTest(const uint8_t *data, size_t size) MSContextFuzzTest() argument
[all...]
/third_party/python/Lib/multiprocessing/
H A Dheap.py38 def __init__(self, size):
39 self.size = size
42 buf = mmap.mmap(-1, size, tagname=name)
51 self._state = (self.size, self.name)
58 self.size, self.name = self._state = state
60 self.buffer = mmap.mmap(-1, self.size, tagname=self.name)
77 def __init__(self, size, fd=-1):
78 self.size = size
[all...]
/third_party/elfutils/libelf/
H A Delf_update.c42 write_file (Elf *elf, int64_t size, int change_bo, size_t shnum) in write_file() argument
54 /* Adjust the size in any case. We do this even if we use `write'. in write_file()
61 || (size_t) size > elf->maximum_size) in write_file()
62 && unlikely (ftruncate (elf->fildes, size) != 0)) in write_file()
71 elf->map_address = mmap (NULL, size, PROT_READ | PROT_WRITE, in write_file()
94 || (size_t) size > elf->maximum_size)) in write_file()
96 if (unlikely (posix_fallocate (elf->fildes, 0, size) != 0)) in write_file()
105 && (size_t) size > elf->maximum_size) in write_file()
109 size, 0) == MAP_FAILED) in write_file()
115 elf->maximum_size = size; in write_file()
171 int64_t size; elf_update() local
[all...]
/third_party/pulseaudio/speex/libspeexdsp/
H A Dstack_alloc.h51 * @def ALIGN(stack, size)
53 * Aligns the stack to a 'size' boundary
56 * @param size New size boundary
60 * @def PUSH(stack, size, type)
62 * Allocates 'size' elements of type 'type' on the stack
65 * @param size Number of elements
78 * @def ALLOC(var, size, type)
80 * Allocate 'size' elements of 'type' on stack
83 * @param size Numbe
[all...]
/third_party/skia/third_party/externals/angle2/src/common/spirv/
H A Dspirv_instruction_builder_autogen.cpp56 const size_t startSize = blob->size(); in WriteNop()
59 (*blob)[startSize] = MakeLengthOp(blob->size() - startSize, spv::OpNop); in WriteNop()
63 const size_t startSize = blob->size(); in WriteUndef()
67 (*blob)[startSize] = MakeLengthOp(blob->size() - startSize, spv::OpUndef); in WriteUndef()
71 const size_t startSize = blob->size(); in WriteSourceContinued()
74 size_t d = blob->size(); in WriteSourceContinued()
79 (*blob)[startSize] = MakeLengthOp(blob->size() - startSize, spv::OpSourceContinued); in WriteSourceContinued()
87 const size_t startSize = blob->size(); in WriteSource()
98 size_t d = blob->size(); in WriteSource()
104 (*blob)[startSize] = MakeLengthOp(blob->size() in WriteSource()
[all...]
/third_party/spirv-tools/test/util/
H A Dsmall_vector_test.cpp31 EXPECT_EQ(vec.size(), 0); in TEST()
39 EXPECT_EQ(vec.size(), 4); in TEST()
42 for (uint32_t i = 0; i < vec.size(); ++i) { in TEST()
51 EXPECT_EQ(vec.size(), 4); in TEST()
54 for (uint32_t i = 0; i < vec.size(); ++i) { in TEST()
64 EXPECT_EQ(vec.size(), 4); in TEST()
66 for (uint32_t i = 0; i < vec.size(); ++i) { in TEST()
75 EXPECT_EQ(vec2.size(), 4); in TEST()
78 for (uint32_t i = 0; i < vec2.size(); ++i) { in TEST()
89 EXPECT_EQ(vec2.size(), in TEST()
[all...]
/third_party/mesa3d/src/asahi/compiler/test/
H A Dtest-lower-parallel-copy.cpp65 { .dest = 0, .src = 2, .size = AGX_SIZE_32 }, in TEST_F()
66 { .dest = 4, .src = 6, .size = AGX_SIZE_32 }, in TEST_F()
75 { .dest = 0, .src = 1, .size = AGX_SIZE_16 }, in TEST_F()
76 { .dest = 4, .src = 5, .size = AGX_SIZE_16 }, in TEST_F()
88 { .dest = 0, .src = 2, .size = AGX_SIZE_32 }, in TEST_F()
89 { .dest = 4, .src = 2, .size = AGX_SIZE_32 }, in TEST_F()
98 { .dest = 0, .src = 1, .size = AGX_SIZE_16 }, in TEST_F()
99 { .dest = 4, .src = 1, .size = AGX_SIZE_16 }, in TEST_F()
111 { .dest = 0, .src = 2, .size = AGX_SIZE_32 }, in TEST_F()
112 { .dest = 4, .src = 0, .size in TEST_F()
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/utils/
H A Dradiotap.c22 [IEEE80211_RADIOTAP_TSFT] = { .align = 8, .size = 8, },
23 [IEEE80211_RADIOTAP_FLAGS] = { .align = 1, .size = 1, },
24 [IEEE80211_RADIOTAP_RATE] = { .align = 1, .size = 1, },
25 [IEEE80211_RADIOTAP_CHANNEL] = { .align = 2, .size = 4, },
26 [IEEE80211_RADIOTAP_FHSS] = { .align = 2, .size = 2, },
27 [IEEE80211_RADIOTAP_DBM_ANTSIGNAL] = { .align = 1, .size = 1, },
28 [IEEE80211_RADIOTAP_DBM_ANTNOISE] = { .align = 1, .size = 1, },
29 [IEEE80211_RADIOTAP_LOCK_QUALITY] = { .align = 2, .size = 2, },
30 [IEEE80211_RADIOTAP_TX_ATTENUATION] = { .align = 2, .size = 2, },
31 [IEEE80211_RADIOTAP_DB_TX_ATTENUATION] = { .align = 2, .size
188 find_override(struct ieee80211_radiotap_iterator *iterator, int *align, int *size) find_override() argument
239 int pad, align, size, subns; ieee80211_radiotap_iterator_next() local
[all...]
/third_party/ffmpeg/libavcodec/
H A Davpacket.c82 static int packet_alloc(AVBufferRef **buf, int size) in packet_alloc() argument
85 if (size < 0 || size >= INT_MAX - AV_INPUT_BUFFER_PADDING_SIZE) in packet_alloc()
88 ret = av_buffer_realloc(buf, size + AV_INPUT_BUFFER_PADDING_SIZE); in packet_alloc()
92 memset((*buf)->data + size, 0, AV_INPUT_BUFFER_PADDING_SIZE); in packet_alloc()
97 int av_new_packet(AVPacket *pkt, int size) in av_new_packet() argument
100 int ret = packet_alloc(&buf, size); in av_new_packet()
107 pkt->size = size; in av_new_packet()
112 void av_shrink_packet(AVPacket *pkt, int size) in av_shrink_packet() argument
171 av_packet_from_data(AVPacket *pkt, uint8_t *data, int size) av_packet_from_data() argument
196 av_packet_add_side_data(AVPacket *pkt, enum AVPacketSideDataType type, uint8_t *data, size_t size) av_packet_add_side_data() argument
230 av_packet_new_side_data(AVPacket *pkt, enum AVPacketSideDataType type, size_t size) av_packet_new_side_data() argument
251 av_packet_get_side_data(const AVPacket *pkt, enum AVPacketSideDataType type, size_t *size) av_packet_get_side_data() argument
307 av_packet_pack_dictionary(AVDictionary *dict, size_t *size) av_packet_pack_dictionary() argument
342 av_packet_unpack_dictionary(const uint8_t *data, size_t size, AVDictionary **dict) av_packet_unpack_dictionary() argument
369 av_packet_shrink_side_data(AVPacket *pkt, enum AVPacketSideDataType type, size_t size) av_packet_shrink_side_data() argument
407 size_t size = src->side_data[i].size; av_packet_copy_props() local
[all...]
/third_party/jerryscript/jerry-core/jmem/
H A Djmem-heap.c26 void *JerryHeapMalloc(uint32_t size) in JerryHeapMalloc() argument
89 return (jmem_heap_free_t *) ((uint8_t *) curr_p + curr_p->size); in jmem_heap_get_region_end()
101 /* the maximum heap size for 16bit compressed pointers should be 512K */ in jmem_heap_init()
110 region_p->size = JMEM_HEAP_AREA_SIZE; in jmem_heap_init()
113 JERRY_HEAP_CONTEXT (first).size = 0; in jmem_heap_init()
147 jmem_heap_alloc (const size_t size) /**< size of requested block */ in jmem_heap_alloc() argument
149 if (size > 8 && size <= 24) { in jmem_heap_alloc()
150 void *data_space_p = JerryHeapMalloc (size); in jmem_heap_alloc()
307 jmem_heap_gc_and_alloc_block(const size_t size, jmem_pressure_t max_pressure) jmem_heap_gc_and_alloc_block() argument
342 jmem_heap_alloc_block_internal(const size_t size) jmem_heap_alloc_block_internal() argument
357 jmem_heap_alloc_block(const size_t size) jmem_heap_alloc_block() argument
375 jmem_heap_alloc_block_null_on_error(const size_t size) jmem_heap_alloc_block_null_on_error() argument
435 jmem_heap_insert_block(jmem_heap_free_t *block_p, jmem_heap_free_t *prev_p, const size_t size) jmem_heap_insert_block() argument
489 jmem_heap_free_block_internal(void *ptr, const size_t size) jmem_heap_free_block_internal() argument
566 jmem_heap_free_block(void *ptr, const size_t size) jmem_heap_free_block() argument
663 jmem_heap_stat_alloc(size_t size) jmem_heap_stat_alloc() argument
688 jmem_heap_stat_free(size_t size) jmem_heap_stat_free() argument
[all...]
/third_party/ltp/tools/sparse/sparse-src/
H A Dbits.h13 static inline unsigned long long sign_bit(unsigned size) in sign_bit() argument
15 return 1ULL << (size - 1); in sign_bit()
18 static inline unsigned long long sign_mask(unsigned size) in sign_mask() argument
20 unsigned long long sbit = sign_bit(size); in sign_mask()
24 static inline unsigned long long bits_mask(unsigned size) in bits_mask() argument
26 unsigned long long sbit = sign_bit(size); in bits_mask()
31 static inline long long zero_extend(long long val, unsigned size) in zero_extend() argument
33 return val & bits_mask(size); in zero_extend()
36 static inline long long sign_extend(long long val, unsigned size) in sign_extend() argument
38 if (val & sign_bit(size)) in sign_extend()
45 sign_extend_safe(long long val, unsigned size) sign_extend_safe() argument
53 bits_extend(long long val, unsigned size, int is_signed) bits_extend() argument
[all...]

Completed in 16 milliseconds

12345678910>>...775