Home
last modified time | relevance | path

Searched refs:element_size (Results 1 – 25 of 64) sorted by relevance

123

/external/libcxxabi/src/
Dcxa_vector.cpp79 st_cxa_cleanup ( void *ptr, size_t &idx, size_t element_size, destruct_f destructor ) in st_cxa_cleanup() argument
80 : ptr_ ( ptr ), idx_ ( idx ), element_size_ ( element_size ), in st_cxa_cleanup()
118 size_t element_count, size_t element_size, size_t padding_size, in __cxa_vec_new() argument
121 return __cxa_vec_new2 ( element_count, element_size, padding_size, in __cxa_vec_new()
144 size_t element_count, size_t element_size, size_t padding_size, in __cxa_vec_new2() argument
148 const size_t heap_size = element_count * element_size + padding_size; in __cxa_vec_new2()
162 __cxa_vec_ctor ( vec_base, element_count, element_size, constructor, destructor ); in __cxa_vec_new2()
173 size_t element_count, size_t element_size, size_t padding_size, in __cxa_vec_new3() argument
177 const size_t heap_size = element_count * element_size + padding_size; in __cxa_vec_new3()
191 __cxa_vec_ctor ( vec_base, element_count, element_size, constructor, destructor ); in __cxa_vec_new3()
[all …]
/external/webrtc/webrtc/common_audio/
Dring_buffer.c29 size_t element_size; member
54 *data_ptr_1 = buf->data + buf->read_pos * buf->element_size; in GetBufferReadRegions()
55 *data_ptr_bytes_1 = margin * buf->element_size; in GetBufferReadRegions()
57 *data_ptr_bytes_2 = (read_elements - margin) * buf->element_size; in GetBufferReadRegions()
59 *data_ptr_1 = buf->data + buf->read_pos * buf->element_size; in GetBufferReadRegions()
60 *data_ptr_bytes_1 = read_elements * buf->element_size; in GetBufferReadRegions()
68 RingBuffer* WebRtc_CreateBuffer(size_t element_count, size_t element_size) { in WebRtc_CreateBuffer() argument
70 if (element_count == 0 || element_size == 0) { in WebRtc_CreateBuffer()
79 self->data = malloc(element_count * element_size); in WebRtc_CreateBuffer()
87 self->element_size = element_size; in WebRtc_CreateBuffer()
[all …]
Dring_buffer.h26 RingBuffer* WebRtc_CreateBuffer(size_t element_count, size_t element_size);
/external/dbus/dbus/
Ddbus-mempool.c100 int element_size; /**< size of a single object in the pool */ member
138 _dbus_mem_pool_new (int element_size, in _dbus_mem_pool_new() argument
148 if (element_size < 8) in _dbus_mem_pool_new()
149 element_size = 8; in _dbus_mem_pool_new()
154 _dbus_assert (element_size >= (int) sizeof (void*)); in _dbus_mem_pool_new()
155 _dbus_assert (element_size >= (int) sizeof (DBusFreedElement)); in _dbus_mem_pool_new()
160 pool->element_size = _DBUS_ALIGN_VALUE (element_size, sizeof (void *)); in _dbus_mem_pool_new()
171 pool->block_size = pool->element_size * 8; in _dbus_mem_pool_new()
174 pool->element_size) == 0); in _dbus_mem_pool_new()
230 pool->element_size; in _dbus_mem_pool_alloc()
[all …]
Ddbus-mempool.h35 DBusMemPool* _dbus_mem_pool_new (int element_size,
/external/libcxxabi/include/
Dcxxabi.h86 size_t element_size,
92 size_t element_size,
100 size_t element_size,
109 size_t element_size,
115 size_t element_size,
120 size_t element_size,
124 size_t element_size,
129 size_t element_size,
135 size_t element_size,
143 size_t element_size,
/external/libpng/
Dpngmem.c110 size_t element_size) in png_malloc_array_checked() argument
114 if (req <= PNG_SIZE_MAX/element_size) in png_malloc_array_checked()
115 return png_malloc_base(png_ptr, req * element_size); in png_malloc_array_checked()
123 size_t element_size),PNG_ALLOCATED)
125 if (nelements <= 0 || element_size == 0)
128 return png_malloc_array_checked(png_ptr, nelements, element_size);
133 int old_elements, int add_elements, size_t element_size),PNG_ALLOCATED)
136 if (add_elements <= 0 || element_size == 0 || old_elements < 0 ||
146 old_elements+add_elements, element_size);
154 memcpy(new_array, old_array, element_size*(unsigned)old_elements);
[all …]
/external/pdfium/third_party/lpng_v163/
Dpngmem.c115 size_t element_size) in png_malloc_array_checked() argument
119 if (req <= PNG_SIZE_MAX/element_size) in png_malloc_array_checked()
120 return png_malloc_base(png_ptr, req * element_size); in png_malloc_array_checked()
128 size_t element_size),PNG_ALLOCATED)
130 if (nelements <= 0 || element_size == 0)
133 return png_malloc_array_checked(png_ptr, nelements, element_size);
138 int old_elements, int add_elements, size_t element_size),PNG_ALLOCATED)
141 if (add_elements <= 0 || element_size == 0 || old_elements < 0 ||
151 old_elements+add_elements, element_size);
159 memcpy(new_array, old_array, element_size*(unsigned)old_elements);
[all …]
/external/libvpx/libvpx/third_party/libwebm/
Dmkvparser.hpp32 unsigned long long element_size);
308 long long element_size, Track*&);
375 Track(Segment*, long long element_start, long long element_size);
398 VideoTrack(Segment*, long long element_start, long long element_size);
402 long long element_size, VideoTrack*&);
430 AudioTrack(Segment*, long long element_start, long long element_size);
434 long long element_size, AudioTrack*&);
458 long long element_size);
474 long long element_start, long long element_size,
490 long long element_start, long long element_size);
[all …]
Dmkvparser.cpp42 unsigned long long element_size) { in SafeArrayAlloc() argument
43 if (num_elements == 0 || element_size == 0) in SafeArrayAlloc()
47 const unsigned long long num_bytes = num_elements * element_size; in SafeArrayAlloc()
48 if (element_size > (kMaxAllocSize / num_elements)) in SafeArrayAlloc()
921 const long long element_size = size + pos - element_start; in ParseHeaders() local
938 SegmentInfo(this, pos, size, element_start, element_size); in ParseHeaders()
952 Tracks(this, pos, size, element_start, element_size); in ParseHeaders()
964 Cues(this, pos, size, element_start, element_size); in ParseHeaders()
972 SeekHead(this, pos, size, element_start, element_size); in ParseHeaders()
985 Chapters(this, pos, size, element_start, element_size); in ParseHeaders()
[all …]
/external/libvpx/libwebm/mkvparser/
Dmkvparser.h30 unsigned long long element_size);
306 long long element_size, Track*&);
373 Track(Segment*, long long element_start, long long element_size);
420 long long element_size,
457 long long element_size, Colour** colour);
480 VideoTrack(Segment*, long long element_start, long long element_size);
485 long long element_size, VideoTrack*&);
517 AudioTrack(Segment*, long long element_start, long long element_size);
521 long long element_size, AudioTrack*&);
545 long long element_size);
[all …]
Dmkvparser.cc41 unsigned long long element_size) { in SafeArrayAlloc() argument
42 if (num_elements == 0 || element_size == 0) in SafeArrayAlloc()
46 const unsigned long long num_bytes = num_elements * element_size; in SafeArrayAlloc()
47 if (element_size > (kMaxAllocSize / num_elements)) in SafeArrayAlloc()
920 const long long element_size = size + pos - element_start; in ParseHeaders() local
937 SegmentInfo(this, pos, size, element_start, element_size); in ParseHeaders()
951 Tracks(this, pos, size, element_start, element_size); in ParseHeaders()
963 Cues(this, pos, size, element_start, element_size); in ParseHeaders()
971 SeekHead(this, pos, size, element_start, element_size); in ParseHeaders()
984 Chapters(this, pos, size, element_start, element_size); in ParseHeaders()
[all …]
/external/google-breakpad/src/common/
Dmemory_range.h106 size_t element_size, in GetArrayElement() argument
108 size_t sub_offset = element_offset + element_index * element_size; in GetArrayElement()
109 return GetData(sub_offset, element_size); in GetArrayElement()
Dmemory_range_unittest.cc176 size_t element_size = kElements[i].size; in TEST() local
180 << ", size=" << element_size in TEST()
183 element_offset, element_size, element_index)); in TEST()
/external/v8/src/runtime/
Druntime-typedarray.cc72 size_t* element_size) { in ArrayIdToTypeAndSize() argument
78 *element_size = size; \ in ArrayIdToTypeAndSize()
104 size_t element_size = 1; // Bogus initialization. in RUNTIME_FUNCTION() local
107 &element_size); in RUNTIME_FUNCTION()
125 RUNTIME_ASSERT(byte_length % element_size == 0); in RUNTIME_FUNCTION()
126 size_t length = byte_length / element_size; in RUNTIME_FUNCTION()
185 size_t element_size = 1; // Bogus initialization. in RUNTIME_FUNCTION() local
188 &element_size); in RUNTIME_FUNCTION()
203 (length > (kMaxInt / element_size))) { in RUNTIME_FUNCTION()
207 size_t byte_length = length * element_size; in RUNTIME_FUNCTION()
[all …]
/external/selinux/libsepol/cil/src/
Dcil_mem.c63 void *cil_calloc(size_t num_elements, size_t element_size) in cil_calloc() argument
65 void *mem = calloc(num_elements, element_size); in cil_calloc()
Dcil_mem.h35 void *cil_calloc(size_t num_elements, size_t element_size);
/external/v8/test/unittests/compiler/
Djs-typed-lowering-unittest.cc633 int const element_size = static_cast<int>(array->element_size()); in TEST_F() local
636 Type::Range(kMinInt / element_size, kMaxInt / element_size, zone())); in TEST_F()
648 element_size == 1 in TEST_F()
650 : IsWord32Shl(key, IsInt32Constant(WhichPowerOf2(element_size))); in TEST_F()
715 int const element_size = static_cast<int>(array->element_size()); in TEST_F() local
718 Type::Range(kMinInt / element_size, kMaxInt / element_size, zone())); in TEST_F()
734 element_size == 1 in TEST_F()
736 : IsWord32Shl(key, IsInt32Constant(WhichPowerOf2(element_size))); in TEST_F()
760 int const element_size = static_cast<int>(array->element_size()); in TEST_F() local
763 Type::Range(kMinInt / element_size, kMaxInt / element_size, zone())); in TEST_F()
[all …]
/external/mesa3d/src/mapi/glapi/gen/
DglX_proto_recv.py205 element_size = param.size() / param.get_element_count()
207 if self.do_swap and (element_size != 1):
209 real_name = self.real_types[ element_size ]
211 swap_func = self.swap_name( element_size )
/external/google-breakpad/src/tools/linux/md2core/
Dminidump_memory_range_unittest.cc205 size_t element_size = kElements[i].size; in TEST() local
209 << ", size=" << element_size in TEST()
212 element_offset, element_size, element_index)); in TEST()
/external/mesa3d/src/mesa/vbo/
Dvbo_primitive_restart.c79 find_sub_primitives(const void *elements, unsigned element_size, in find_sub_primitives() argument
133 switch (element_size) { in find_sub_primitives()
/external/vixl/src/vixl/a64/
Dsimulator-a64.cc1177 int element_size = 1 << instr->SizeLSPair(); in LoadStorePairHelper() local
1178 int64_t offset = instr->ImmLSPair() * element_size; in LoadStorePairHelper()
1180 uintptr_t address2 = address + element_size; in LoadStorePairHelper()
1253 LogVRead(address, rt, GetPrintRegisterFormatForSizeFP(element_size)); in LoadStorePairHelper()
1254 LogVRead(address2, rt2, GetPrintRegisterFormatForSizeFP(element_size)); in LoadStorePairHelper()
1256 LogVRead(address, rt, GetPrintRegisterFormatForSize(element_size)); in LoadStorePairHelper()
1257 LogVRead(address2, rt2, GetPrintRegisterFormatForSize(element_size)); in LoadStorePairHelper()
1259 LogRead(address, rt, GetPrintRegisterFormatForSize(element_size)); in LoadStorePairHelper()
1260 LogRead(address2, rt2, GetPrintRegisterFormatForSize(element_size)); in LoadStorePairHelper()
1264 LogVWrite(address, rt, GetPrintRegisterFormatForSizeFP(element_size)); in LoadStorePairHelper()
[all …]
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_draw_upload.c322 element->element_size, in copy_array_to_vbo_array()
323 element->element_size, in copy_array_to_vbo_array()
407 input->element_size = type_size * glarray->Size; in brw_prepare_vertices()
518 buffer, upload[i]->element_size); in brw_prepare_vertices()
527 buffer, upload[i]->element_size); in brw_prepare_vertices()
/external/mesa3d/src/glx/
Dindirect_vertex_array_priv.h69 GLsizei element_size; member
Dindirect_vertex_array.c349 arrays->arrays[i].element_size); in emit_element_none()
351 dst += __GLX_PAD(arrays->arrays[i].element_size); in emit_element_none()
375 arrays->arrays[i].element_size); in emit_element_old()
377 dst += __GLX_PAD(arrays->arrays[i].element_size); in emit_element_old()
573 single_vertex_size += __GLX_PAD(arrays->arrays[i].element_size); in emit_DrawArrays_header_old()
1095 (a)->element_size = __glXTypeSize( TYPE ) * COUNT; \
1097 ? (a)->element_size : STRIDE; \
1100 ((uint16_t *) (a)->header)[0] = __GLX_PAD((a)->header_size + (a)->element_size); \

123