Home
last modified time | relevance | path

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

1234

/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 __cxa_vec_new(size_t element_count, size_t element_size, size_t padding_size, in __cxa_vec_new() argument
120 return __cxa_vec_new2 ( element_count, element_size, padding_size, in __cxa_vec_new()
143 __cxa_vec_new2(size_t element_count, size_t element_size, size_t padding_size, in __cxa_vec_new2() argument
146 const size_t heap_size = element_count * element_size + padding_size; in __cxa_vec_new2()
160 __cxa_vec_ctor ( vec_base, element_count, element_size, constructor, destructor ); in __cxa_vec_new2()
171 __cxa_vec_new3(size_t element_count, size_t element_size, size_t padding_size, in __cxa_vec_new3() argument
174 const size_t heap_size = element_count * element_size + padding_size; in __cxa_vec_new3()
188 __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 …]
/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/libpng16/
Dpngmem.c113 size_t element_size) in png_malloc_array_checked() argument
117 if (req <= PNG_SIZE_MAX/element_size) in png_malloc_array_checked()
118 return png_malloc_base(png_ptr, req * element_size); in png_malloc_array_checked()
126 size_t element_size),PNG_ALLOCATED)
128 if (nelements <= 0 || element_size == 0)
131 return png_malloc_array_checked(png_ptr, nelements, element_size);
136 int old_elements, int add_elements, size_t element_size),PNG_ALLOCATED)
139 if (add_elements <= 0 || element_size == 0 || old_elements < 0 ||
149 old_elements+add_elements, element_size);
157 memcpy(new_array, old_array, element_size*(unsigned)old_elements);
[all …]
/external/libcxxabi/include/
Dcxxabi.h93 __cxa_vec_new(size_t element_count, size_t element_size, size_t padding_size,
97 __cxa_vec_new2(size_t element_count, size_t element_size, size_t padding_size,
102 __cxa_vec_new3(size_t element_count, size_t element_size, size_t padding_size,
107 __cxa_vec_ctor(void *array_address, size_t element_count, size_t element_size,
112 size_t element_size,
117 size_t element_size,
121 size_t element_size,
126 __cxa_vec_delete2(void *array_address, size_t element_size, size_t padding_size,
130 __cxa_vec_delete3(void *__array_address, size_t element_size,
136 size_t element_size, void (*constructor)(void *, void *),
/external/protobuf/ruby/ext/google/protobuf_c/
Drepeated_field.c50 void* RepeatedField_memoryat(RepeatedField* self, int index, int element_size) { in RepeatedField_memoryat() argument
51 return ((uint8_t *)self->elements) + index * element_size; in RepeatedField_memoryat()
64 int element_size = native_slot_size(self->field_type); in RepeatedField_subarray() local
68 size_t off = beg * element_size; in RepeatedField_subarray()
70 for (int i = beg; i < beg + len; i++, off += element_size) { in RepeatedField_subarray()
90 int element_size = native_slot_size(field_type); in RepeatedField_each() local
93 for (int i = 0; i < self->size; i++, off += element_size) { in RepeatedField_each()
110 int element_size = native_slot_size(self->field_type); in RepeatedField_index() local
125 memory = RepeatedField_memoryat(self, index, element_size); in RepeatedField_index()
162 int element_size = native_slot_size(field_type); in RepeatedField_index_set() local
[all …]
/external/mesa3d/src/util/
Du_vector.c26 u_vector_init(struct u_vector *vector, uint32_t element_size, uint32_t size) in u_vector_init() argument
29 assert(element_size < size && util_is_power_of_two(element_size)); in u_vector_init()
33 vector->element_size = element_size; in u_vector_init()
79 vector->head += vector->element_size; in u_vector_add()
95 vector->tail += vector->element_size; in u_vector_remove()
Du_vector.h48 uint32_t element_size; member
53 int u_vector_init(struct u_vector *queue, uint32_t element_size, uint32_t size);
60 return (queue->head - queue->tail) / queue->element_size; in u_vector_length()
68 ((vector->head - vector->element_size) & in u_vector_head()
88 __u_vector_offset += (queue)->element_size)
Dslab.c81 ((uint8_t*)&page[1] + (parent->element_size * index)); in slab_get_element()
112 parent->element_size = ALIGN(sizeof(struct slab_element_header) + item_size, in slab_create_parent()
178 pool->parent->num_elements * pool->parent->element_size); in slab_add_new_page()
/external/libvpx/libvpx/third_party/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);
494 long long element_size, Projection** projection);
508 VideoTrack(Segment*, long long element_start, long long element_size);
513 long long element_size, VideoTrack*&);
548 AudioTrack(Segment*, long long element_start, long long element_size);
552 long long element_size, AudioTrack*&);
[all …]
Dmkvparser.cc47 unsigned long long element_size) { in SafeArrayAlloc() argument
48 if (num_elements == 0 || element_size == 0) in SafeArrayAlloc()
52 const unsigned long long num_bytes = num_elements * element_size; in SafeArrayAlloc()
53 if (element_size > (kMaxAllocSize / num_elements)) in SafeArrayAlloc()
926 const long long element_size = size + pos - element_start; in ParseHeaders() local
943 SegmentInfo(this, pos, size, element_start, element_size); in ParseHeaders()
957 Tracks(this, pos, size, element_start, element_size); in ParseHeaders()
969 Cues(this, pos, size, element_start, element_size); in ParseHeaders()
977 SeekHead(this, pos, size, element_start, element_size); in ParseHeaders()
990 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/v8/src/runtime/
Druntime-typedarray.cc80 size_t* element_size) { in ArrayIdToTypeAndSize() argument
86 *element_size = size; \ in ArrayIdToTypeAndSize()
112 size_t element_size = 1; // Bogus initialization. in RUNTIME_FUNCTION() local
115 &element_size); in RUNTIME_FUNCTION()
132 CHECK(byte_length % element_size == 0); in RUNTIME_FUNCTION()
133 size_t length = byte_length / element_size; in RUNTIME_FUNCTION()
192 size_t element_size = 1; // Bogus initialization. in RUNTIME_FUNCTION() local
195 &element_size); in RUNTIME_FUNCTION()
209 (length > (kMaxInt / element_size))) { in RUNTIME_FUNCTION()
213 size_t byte_length = length * element_size; in RUNTIME_FUNCTION()
[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/builtins/
Dbuiltins-typedarray.cc225 size_t element_size = array->element_size(); in BUILTIN() local
226 to = to * element_size; in BUILTIN()
227 from = from * element_size; in BUILTIN()
228 count = count * element_size; in BUILTIN()
/external/tensorflow/tensorflow/python/ops/
Dpartitioned_variables.py133 element_size = bytes_per_string_element
135 element_size = dtype.size
139 shape.num_elements() / shape[axis].value) * element_size
/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/mesa3d/src/glx/
Dindirect_vertex_array.c365 arrays->arrays[i].element_size); in emit_element_none()
366 dst += arrays->arrays[i].element_size; in emit_element_none()
373 arrays->arrays[i].element_size); in emit_element_none()
374 dst += __GLX_PAD(arrays->arrays[i].element_size); in emit_element_none()
382 arrays->arrays[i].element_size); in emit_element_none()
383 dst += __GLX_PAD(arrays->arrays[i].element_size); in emit_element_none()
386 arrays->arrays[i].element_size); in emit_element_none()
387 dst += __GLX_PAD(arrays->arrays[i].element_size); in emit_element_none()
412 arrays->arrays[i].element_size); in emit_element_old()
414 dst += __GLX_PAD(arrays->arrays[i].element_size); in emit_element_old()
[all …]
/external/tensorflow/tensorflow/stream_executor/
Dtemporary_memory_manager.cc95 uint64 element_size) { in AllocateArrayBase() argument
96 uint64 byte_size = element_count * element_size; in AllocateArrayBase()
/external/mesa3d/src/mapi/glapi/gen/
DglX_proto_recv.py203 element_size = param.size() / param.get_element_count()
205 if self.do_swap and (element_size != 1):
207 real_name = self.real_types[ element_size ]
209 swap_func = self.swap_name( element_size )
/external/mesa3d/src/gallium/drivers/radeonsi/
Dsi_hw_context.c30 static unsigned si_descriptor_list_cs_space(unsigned count, unsigned element_size) in si_descriptor_list_cs_space() argument
33 assert(element_size >= 3); in si_descriptor_list_cs_space()
39 return 5 + 5 + 3 + count * element_size; in si_descriptor_list_cs_space()
/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()

1234