Home
last modified time | relevance | path

Searched refs:size (Results 251 - 275 of 19354) sorted by relevance

1...<<11121314151617181920>>...775

/third_party/mesa3d/src/mesa/program/
H A Dprog_cache.c51 GLuint size, n_items; member
88 GLuint size, i; in rehash() local
92 size = cache->size * 3; in rehash()
93 items = malloc(size * sizeof(*items)); in rehash()
94 memset(items, 0, size * sizeof(*items)); in rehash()
96 for (i = 0; i < cache->size; i++) in rehash()
99 c->next = items[c->hash % size]; in rehash()
100 items[c->hash % size] = c; in rehash()
105 cache->size in rehash()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/lib/Support/
H A DConvertUTFWrapper.cpp31 memcpy(ResultPtr, Source.data(), Source.size()); in ConvertUTF8toWide()
32 ResultPtr += Source.size(); in ConvertUTF8toWide()
41 &sourceStart, sourceStart + Source.size(), in ConvertUTF8toWide()
42 &targetStart, targetStart + Source.size(), flags); in ConvertUTF8toWide()
54 &sourceStart, sourceStart + Source.size(), in ConvertUTF8toWide()
55 &targetStart, targetStart + Source.size(), flags); in ConvertUTF8toWide()
82 return (S.size() >= 2 && in hasUTF16ByteOrderMark()
91 if (SrcBytes.size() % 2) in convertUTF16ToUTF8String()
105 for (unsigned I = 0, E = ByteSwapped.size(); I != E; ++I) in convertUTF16ToUTF8String()
108 SrcEnd = &ByteSwapped[ByteSwapped.size() in convertUTF16ToUTF8String()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
H A DConvertUTFWrapper.cpp30 memcpy(ResultPtr, Source.data(), Source.size()); in ConvertUTF8toWide()
31 ResultPtr += Source.size(); in ConvertUTF8toWide()
40 &sourceStart, sourceStart + Source.size(), in ConvertUTF8toWide()
41 &targetStart, targetStart + Source.size(), flags); in ConvertUTF8toWide()
53 &sourceStart, sourceStart + Source.size(), in ConvertUTF8toWide()
54 &targetStart, targetStart + Source.size(), flags); in ConvertUTF8toWide()
81 return (S.size() >= 2 && in hasUTF16ByteOrderMark()
90 if (SrcBytes.size() % 2) in convertUTF16ToUTF8String()
104 for (unsigned I = 0, E = ByteSwapped.size(); I != E; ++I) in convertUTF16ToUTF8String()
107 SrcEnd = &ByteSwapped[ByteSwapped.size() in convertUTF16ToUTF8String()
[all...]
/third_party/elfio/elfio/
H A Delfio_section.hpp49 ELFIO_GET_SET_ACCESS_DECL( Elf_Xword, size );
54 virtual void set_data( const char* raw_data, Elf_Word size ) noexcept = 0;
57 Elf_Word size ) noexcept = 0;
91 ELFIO_GET_SET_ACCESS( Elf_Xword, size, header.sh_size );
134 void set_data( const char* raw_data, Elf_Word size ) noexcept override
137 data = std::unique_ptr<char[]>( new ( std::nothrow ) char[size] );
139 data_size = size;
140 std::copy( raw_data, raw_data + size, data.get() );
156 return set_data( str_data.c_str(), (Elf_Word)str_data.size() );
160 void append_data( const char* raw_data, Elf_Word size ) noexcep
244 Elf_Xword size = get_size(); global() variable
263 Elf_Xword size = get_size(); global() variable
[all...]
/third_party/mesa3d/src/nouveau/codegen/
H A Dnv50_ir_util.cpp81 unsigned int newSize = this->size + that.size; in moveTo()
85 memcpy(&that.array[that.size], &array[0], this->size * sizeof(Item)); in moveTo()
87 that.size = newSize; in moveTo()
88 this->size = 0; in moveTo()
228 assert(size >= set.size); in andNot()
229 for (unsigned int i = 0; i < (set.size + 31) / 32; ++i) in andNot()
236 assert(size > in operator |=()
[all...]
/drivers/peripheral/user_auth/test/unittest/attribute_test/
H A Dattribute_test.cpp57 [](const size_t size) { in HWTEST_F()
58 void *res = malloc(size); in HWTEST_F()
59 static_cast<void>(memset_s(res, size, 0, size)); in HWTEST_F()
217 constexpr uint8_t size = 252; in HWTEST_F() local
219 array.reserve(size); in HWTEST_F()
220 for (uint8_t i = 0; i < size; ++i) { in HWTEST_F()
223 Uint8Array data = { array.data(), size }; in HWTEST_F()
226 std::vector<uint8_t> out(size); in HWTEST_F()
227 Uint8Array value = { out.data(), size }; in HWTEST_F()
243 constexpr uint32_t size = 20; HWTEST_F() local
309 constexpr uint32_t size = 20; HWTEST_F() local
324 constexpr uint64_t size = 8192; HWTEST_F() local
350 constexpr uint32_t size = 20; HWTEST_F() local
415 constexpr uint32_t size = 20; HWTEST_F() local
436 constexpr uint32_t size = 20; HWTEST_F() local
452 constexpr uint32_t size = 20; HWTEST_F() local
496 uint32_t size = rand() % lenBase + 1; HWTEST_F() local
[all...]
/third_party/node/deps/v8/src/utils/
H A Dallocation.cc34 void* AlignedAllocInternal(size_t size, size_t alignment) { in AlignedAllocInternal() argument
37 ptr = _aligned_malloc(size, alignment); in AlignedAllocInternal()
41 ptr = memalign(alignment, size); in AlignedAllocInternal()
43 ptr = SbMemoryAllocateAligned(alignment, size); in AlignedAllocInternal()
45 if (posix_memalign(&ptr, alignment, size)) ptr = nullptr; in AlignedAllocInternal()
119 void* Malloced::operator new(size_t size) { in operator new() argument
120 void* result = AllocWithRetry(size); in operator new()
146 void* AllocWithRetry(size_t size, MallocFn malloc_fn) { in AllocWithRetry() argument
149 result = malloc_fn(size); in AllocWithRetry()
151 if (!OnCriticalMemoryPressure(size)) brea in AllocWithRetry()
156 AlignedAlloc(size_t size, size_t alignment) AlignedAlloc() argument
198 AllocatePages(v8::PageAllocator* page_allocator, void* hint, size_t size, size_t alignment, PageAllocator::Permission access) AllocatePages() argument
216 FreePages(v8::PageAllocator* page_allocator, void* address, const size_t size) FreePages() argument
223 ReleasePages(v8::PageAllocator* page_allocator, void* address, size_t size, size_t new_size) ReleasePages() argument
231 SetPermissions(v8::PageAllocator* page_allocator, void* address, size_t size, PageAllocator::Permission access) SetPermissions() argument
248 VirtualMemory(v8::PageAllocator* page_allocator, size_t size, void* hint, size_t alignment, JitPermission jit) VirtualMemory() argument
277 SetPermissions(Address address, size_t size, PageAllocator::Permission access) SetPermissions() argument
[all...]
/third_party/skia/third_party/externals/spirv-cross/include/spirv_cross/
H A Dinternal_interface.hpp92 // For case when array size is 1, avoid double dereference.
195 , size(0) in PPSize()
199 size_t size; member
206 , size(0) in PPSizeResource()
211 size_t size; member
228 builtins[builtin].size = sizeof(*value.ptr) * U::ArraySize; in register_builtin()
231 void set_builtin(spirv_cross_builtin builtin, void *data, size_t size) in set_builtin()
234 assert(size >= builtins[builtin].size); in set_builtin()
247 resources[set][binding].size in register_resource()
[all...]
/third_party/node/deps/openssl/openssl/crypto/bio/
H A Dbss_bio.c30 static int bio_read(BIO *bio, char *buf, int size);
67 size_t size; member
68 char *buf; /* "size" elements (if != NULL) */
72 * more than buffer space (size-len)
84 b->size = 17 * 1024; in bio_new()
111 size_t size = size_; in bio_read() local
129 if (buf == NULL || size == 0) in bio_read()
137 if (size <= peer_b->size) in bio_read()
138 peer_b->request = size; in bio_read()
[all...]
/third_party/openssl/crypto/bio/
H A Dbss_bio.c30 static int bio_read(BIO *bio, char *buf, int size);
67 size_t size; member
68 char *buf; /* "size" elements (if != NULL) */
72 * more than buffer space (size-len)
84 b->size = 17 * 1024; in bio_new()
111 size_t size = size_; in bio_read() local
129 if (buf == NULL || size == 0) in bio_read()
137 if (size <= peer_b->size) in bio_read()
138 peer_b->request = size; in bio_read()
[all...]
/third_party/selinux/libselinux/src/
H A Dfgetfilecon.c11 static ssize_t fgetxattr_wrapper(int fd, const char *name, void *value, size_t size) { in fgetxattr_wrapper() argument
16 ret = fgetxattr(fd, name, value, size); in fgetxattr_wrapper()
29 ret = getxattr(buf, name, value, size); in fgetxattr_wrapper()
38 ssize_t size; in fgetfilecon_raw() local
41 size = INITCONTEXTLEN + 1; in fgetfilecon_raw()
42 buf = malloc(size); in fgetfilecon_raw()
45 memset(buf, 0, size); in fgetfilecon_raw()
47 ret = fgetxattr_wrapper(fd, XATTR_NAME_SELINUX, buf, size - 1); in fgetfilecon_raw()
51 size = fgetxattr_wrapper(fd, XATTR_NAME_SELINUX, NULL, 0); in fgetfilecon_raw()
52 if (size < in fgetfilecon_raw()
[all...]
/drivers/hdf_core/adapter/khdf/liteos/osal/src/
H A Dosal_mem.c38 void *OsalMemAlloc(size_t size) in OsalMemAlloc() argument
42 if (size == 0) { in OsalMemAlloc()
47 buf = LOS_MemAlloc((VOID *)OS_SYS_MEM_ADDR, size); in OsalMemAlloc()
52 void *OsalMemCalloc(size_t size) in OsalMemCalloc() argument
56 if (size == 0) { in OsalMemCalloc()
61 buf = OsalMemAlloc(size); in OsalMemCalloc()
63 (void)memset_s(buf, size, 0, size); in OsalMemCalloc()
69 void *OsalMemAllocAlign(size_t alignment, size_t size) in OsalMemAllocAlign() argument
73 if (size in OsalMemAllocAlign()
[all...]
/drivers/hdf_core/adapter/khdf/liteos_m/osal/src/
H A Dosal_mem.c38 void *OsalMemAlloc(size_t size) in OsalMemAlloc() argument
42 if (size == 0) { in OsalMemAlloc()
47 buf = LOS_MemAlloc((VOID *)OS_SYS_MEM_ADDR, size); in OsalMemAlloc()
52 void *OsalMemCalloc(size_t size) in OsalMemCalloc() argument
56 if (size == 0) { in OsalMemCalloc()
61 buf = OsalMemAlloc(size); in OsalMemCalloc()
63 (void)memset_s(buf, size, 0, size); in OsalMemCalloc()
69 void *OsalMemAllocAlign(size_t alignment, size_t size) in OsalMemAllocAlign() argument
73 if (size in OsalMemAllocAlign()
[all...]
/third_party/ltp/testcases/kernel/fs/fsx-linux/
H A Dfsx-linux.c329 void check_buffers(unsigned offset, unsigned size) in check_buffers() argument
337 if (memcmp(good_buf + offset, temp_buf, size) != 0) { in check_buffers()
338 prt("READ BAD DATA: offset = 0x%x, size = 0x%x\n", in check_buffers()
339 offset, size); in check_buffers()
341 while (size > 0) { in check_buffers()
356 size--; in check_buffers()
553 unsigned size, struct timeval *tv) in output_line()
570 (offset + size > monitorstart && in output_line()
581 offset + size - 1, size); in output_line()
552 output_line(struct test_file *tf, int op, unsigned offset, unsigned size, struct timeval *tv) output_line() argument
584 doread(unsigned offset, unsigned size) doread() argument
638 domapread(unsigned offset, unsigned size) domapread() argument
707 gendata(char *original_buf, char *good_buf, unsigned offset, unsigned size) gendata() argument
717 dowrite(unsigned offset, unsigned size) dowrite() argument
775 domapwrite(unsigned offset, unsigned size) domapwrite() argument
876 dotruncate(unsigned size) dotruncate() argument
974 unsigned long size = maxoplen; test() local
[all...]
/third_party/ffmpeg/libavformat/
H A Drtpenc_h264_hevc.c55 static void nal_send(AVFormatContext *s1, const uint8_t *buf, int size, int last) in nal_send() argument
60 av_log(s1, AV_LOG_DEBUG, "Sending NAL %x of len %d M=%d\n", buf[0] & 0x1F, size, last); in nal_send()
61 if (size <= s->max_payload_size) { in nal_send()
74 if (buffered_size + 2 + size > s->max_payload_size) { in nal_send()
82 if (buffered_size + 2 + header_size + size <= s->max_payload_size && in nal_send()
92 AV_WB16(s->buf_ptr, size); in nal_send()
94 memcpy(s->buf_ptr, buf, size); in nal_send()
95 s->buf_ptr += size; in nal_send()
99 ff_rtp_send_data(s1, buf, size, last); in nal_send()
106 "NAL size in nal_send()
180 ff_rtp_send_h264_hevc(AVFormatContext *s1, const uint8_t *buf1, int size) ff_rtp_send_h264_hevc() argument
[all...]
H A Davidec.c53 int sample_size; /* size of one sample (or packet)
133 #define print_tag(s, str, tag, size) \
134 av_log(s, AV_LOG_TRACE, "pos:%"PRIX64" %s: tag=%s size=0x%x\n", \
135 avio_tell(pb), str, av_fourcc2str(tag), size) \
155 avi->riff_end = avio_rl32(pb); /* RIFF chunk size */ in get_riff()
259 avio_rl32(pb); /* size */ in read_odml_index()
302 int64_t pos, size, ts; in clean_index() local
311 size = sti->index_entries[0].size; in clean_index()
314 for (j = 0; j < size; in clean_index()
320 avi_read_tag(AVFormatContext *s, AVStream *st, uint32_t tag, uint32_t size) avi_read_tag() argument
372 uint32_t size = avio_rl32(s->pb); avi_read_nikon() local
379 uint16_t size = avio_rl16(s->pb); avi_read_nikon() local
501 unsigned int size; avi_read_header() local
1114 int size; read_gab2_sub() local
1236 unsigned int size; avi_sync() local
1463 int size = avpriv_dv_get_packet(avi->dv_demux, pkt); avi_read_packet() local
1482 int size, err; avi_read_packet() local
1603 avi_read_idx1(AVFormatContext *s, int size) avi_read_idx1() argument
1760 unsigned int size; guess_ni_flag() local
1796 uint32_t tag, size; avi_load_index() local
[all...]
H A Dmovenchint.c91 queue->size = 0; in sample_queue_free()
99 static void sample_queue_push(HintSampleQueue *queue, const uint8_t *data, int size, in sample_queue_push() argument
104 if (size <= 14) in sample_queue_push()
106 if (!queue->samples || queue->len >= queue->size) { in sample_queue_push()
108 samples = av_realloc_array(queue->samples, queue->size + 10, sizeof(HintSample)); in sample_queue_push()
111 queue->size += 10; in sample_queue_push()
115 queue->samples[queue->len].size = size; in sample_queue_push()
131 uint8_t *ptr = av_malloc(sample->size); in sample_queue_retain()
139 memcpy(ptr, sample->data, sample->size); in sample_queue_retain()
250 output_immediate(const uint8_t *data, int size, AVIOContext *out, int *entries) output_immediate() argument
282 describe_payload(const uint8_t *data, int size, AVIOContext *out, int *entries, HintSampleQueue *queue) describe_payload() argument
314 write_hint_packets(AVIOContext *out, const uint8_t *data, int size, MOVTrack *trk, int64_t *dts) write_hint_packets() argument
408 int size; ff_mov_add_hinted_packet() local
[all...]
H A Dmvdec.c62 static char *var_read_string(AVIOContext *pb, int size) in var_read_string() argument
67 if (size < 0 || size == INT_MAX) in var_read_string()
70 str = av_malloc(size + 1); in var_read_string()
73 n = avio_get_str(pb, size, str, size + 1); in var_read_string()
74 if (n < size) in var_read_string()
75 avio_skip(pb, size - n); in var_read_string()
79 static int var_read_int(AVIOContext *pb, int size) in var_read_int() argument
82 char *s = var_read_string(pb, size); in var_read_int()
90 var_read_float(AVIOContext *pb, int size) var_read_float() argument
101 var_read_metadata(AVFormatContext *avctx, const char *tag, int size) var_read_metadata() argument
122 parse_global_var(AVFormatContext *avctx, AVStream *st, const char *name, int size) parse_global_var() argument
146 parse_audio_var(AVFormatContext *avctx, AVStream *st, const char *name, int size) parse_audio_var() argument
182 parse_video_var(AVFormatContext *avctx, AVStream *st, const char *name, int size) parse_video_var() argument
239 read_table(AVFormatContext *avctx, AVStream *st, int (*parse)(AVFormatContext *avctx, AVStream *st, const char *name, int size)) read_table() argument
252 int size; read_table() local
278 uint32_t size = avio_rb32(pb); read_index() local
[all...]
/third_party/node/deps/v8/src/base/
H A Dregion-allocator.h17 // Helper class for managing used/free regions within [address, address+size)
18 // region. Minimum allocation unit is |page_size|. Requested allocation size
30 using SplitMergeCallback = std::function<void(Address start, size_t size)>;
43 RegionAllocator(Address address, size_t size, size_t page_size);
59 // so that [start, start+size) becomes a new region.
64 // [start, start+size) are merged into a single one.
69 // Allocates region of |size| (must be |page_size|-aligned). Returns
71 Address AllocateRegion(size_t size);
73 Address AllocateRegion(RandomNumberGenerator* rng, size_t size);
75 // Allocates region of |size| a
117 size_t size() const { return whole_region_.size(); } size() function in v8::base::final
139 Region(Address address, size_t size, RegionState state) Region() argument
[all...]
/third_party/mesa3d/src/glx/
H A Dpackrender.h51 ** Network size parameters
72 ** Because of their size, they may not automatically fit in the buffer.
76 #define __GLX_BEGIN_VARIABLE(opcode,size) \
77 if (pc + (size) > gc->bufEnd) { \
80 __GLX_PUT_SHORT(0,size); \
83 #define __GLX_BEGIN_VARIABLE_LARGE(opcode,size) \
85 __GLX_PUT_LONG(0,size); \
88 #define __GLX_BEGIN_VARIABLE_WITH_PIXEL(opcode,size) \
89 if (pc + (size) > gc->bufEnd) { \
92 __GLX_PUT_SHORT(0,size); \
[all...]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/
H A DSemaphoreGL.cpp23 outIDs->resize(bufferBarriers.size()); in GatherNativeBufferIDs()
24 for (GLuint bufferIdx = 0; bufferIdx < bufferBarriers.size(); bufferIdx++) in GatherNativeBufferIDs()
34 outIDs->resize(textureBarriers.size()); in GatherNativeTextureIDs()
35 outLayouts->resize(textureBarriers.size()); in GatherNativeTextureIDs()
36 for (GLuint textureIdx = 0; textureIdx < textureBarriers.size(); textureIdx++) in GatherNativeTextureIDs()
84 gl::BarrierVector<GLuint> bufferIDs(bufferBarriers.size()); in wait()
87 gl::BarrierVector<GLuint> textureIDs(textureBarriers.size()); in wait()
88 gl::BarrierVector<GLenum> textureLayouts(textureBarriers.size()); in wait()
90 ASSERT(textureIDs.size() == textureLayouts.size()); in wait()
[all...]
/third_party/skia/third_party/externals/abseil-cpp/absl/base/internal/
H A Draw_logging.cc89 // sprintf the format to the buffer, adjusting *buf and *size to reflect the
93 bool VADoRawLog(char** buf, int* size, const char* format, va_list ap)
95 bool VADoRawLog(char** buf, int* size, const char* format, va_list ap) { in VADoRawLog() argument
96 int n = vsnprintf(*buf, *size, format, ap); in VADoRawLog()
98 if (n < 0 || n > *size) { in VADoRawLog()
100 if (static_cast<size_t>(*size) > sizeof(kTruncated)) { in VADoRawLog()
101 n = *size - sizeof(kTruncated); // room for truncation message in VADoRawLog()
106 *size -= n; in VADoRawLog()
118 // *DoRawLog writes to *buf of *size and move them past the written portion.
120 bool DoRawLog(char** buf, int* size, cons
122 DoRawLog(char** buf, int* size, const char* format, ...) DoRawLog() argument
139 int size = sizeof(buffer); RawLogVA() local
[all...]
/third_party/backends/backend/
H A Depsonds-ops.c94 /* first element is the list size */ in eds_add_resolution()
193 /* first element is the list size */ in eds_add_depth()
377 SANE_Status eds_ring_init(ring_buffer *ring, SANE_Int size) in eds_ring_init() argument
379 ring->ring = realloc(ring->ring, size); in eds_ring_init()
384 ring->size = size; in eds_ring_init()
386 ring->end = ring->ring + size; in eds_ring_init()
392 SANE_Status eds_ring_write(ring_buffer *ring, SANE_Byte *buf, SANE_Int size) in eds_ring_write() argument
396 if (size > (ring->size in eds_ring_write()
424 eds_ring_read(ring_buffer *ring, SANE_Byte *buf, SANE_Int size) eds_ring_read() argument
461 eds_ring_skip(ring_buffer *ring, SANE_Int size) eds_ring_skip() argument
[all...]
/third_party/skia/third_party/externals/dawn/src/tests/unittests/validation/
H A DTextureValidationTests.cpp46 descriptor.size.width = kWidth; in CreateDefaultTextureDescriptor()
47 descriptor.size.height = kHeight; in CreateDefaultTextureDescriptor()
48 descriptor.size.depthOrArrayLayers = kDefaultDepth; in CreateDefaultTextureDescriptor()
115 descriptor.size.height = 1; in TEST_F()
140 descriptor.size.depthOrArrayLayers = 2; in TEST_F()
162 descriptor.size.width = 32; in TEST_F()
163 descriptor.size.height = 32; in TEST_F()
172 descriptor.size.width = 32; in TEST_F()
173 descriptor.size.height = 32; in TEST_F()
182 descriptor.size in TEST_F()
[all...]
/third_party/skia/src/core/
H A DSkPicture.cpp29 // <0 : -size of the custom data
142 sk_sp<SkPicture> SkPicture::MakeFromData(const void* data, size_t size, in MakeFromData() argument
147 SkMemoryStream stream(data, size); in MakeFromData()
155 SkMemoryStream stream(data->data(), data->size()); in MakeFromData()
184 size_t size = sk_negate_to_size_t(ssize); in MakeFromStream() local
185 auto data = SkData::MakeUninitialized(size); in MakeFromStream()
186 if (stream->read(data->writable_data(), size) != size) { in MakeFromStream()
189 return procs.fPictureProc(data->data(), size, procs.fPictureCtx); in MakeFromStream()
202 // size shoul in MakeFromBuffer()
209 size_t size = sk_negate_to_size_t(ssize); MakeFromBuffer() local
243 size_t size = data->size(); custom_serialize() local
253 write_pad32(SkWStream* stream, const void* data, size_t size) write_pad32() argument
278 int32_t size = SkToS32(custom->size()); serialize() local
307 int32_t size = SkToS32(custom->size()); Flatten() local
[all...]

Completed in 14 milliseconds

1...<<11121314151617181920>>...775