/external/libcxxabi/src/ |
D | cxa_vector.cpp | 79 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/ |
D | ring_buffer.c | 29 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/ |
D | pngmem.c | 110 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/ |
D | pngmem.c | 113 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/ |
D | cxxabi.h | 93 __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/ |
D | repeated_field.c | 50 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/ |
D | u_vector.c | 26 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()
|
D | u_vector.h | 48 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)
|
D | slab.c | 81 ((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/ |
D | mkvparser.h | 30 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 …]
|
D | mkvparser.cc | 47 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/ |
D | mkvparser.h | 30 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 …]
|
D | mkvparser.cc | 41 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/ |
D | runtime-typedarray.cc | 80 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/ |
D | memory_range.h | 106 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()
|
D | memory_range_unittest.cc | 176 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/ |
D | builtins-typedarray.cc | 225 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/ |
D | partitioned_variables.py | 133 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/ |
D | cil_mem.c | 63 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()
|
D | cil_mem.h | 35 void *cil_calloc(size_t num_elements, size_t element_size);
|
/external/mesa3d/src/glx/ |
D | indirect_vertex_array.c | 365 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/ |
D | temporary_memory_manager.cc | 95 uint64 element_size) { in AllocateArrayBase() argument 96 uint64 byte_size = element_count * element_size; in AllocateArrayBase()
|
/external/mesa3d/src/mapi/glapi/gen/ |
D | glX_proto_recv.py | 203 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/ |
D | si_hw_context.c | 30 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/ |
D | minidump_memory_range_unittest.cc | 205 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()
|