Searched defs:element_size (Results 1 - 25 of 45) sorted by relevance

12

/external/google-breakpad/src/common/
H A Dmemory_range.h103 // of elements of length |element_size| starting at |sub_offset| bytes
106 size_t element_size,
108 size_t sub_offset = element_offset + element_index * element_size;
109 return GetData(sub_offset, element_size);
105 GetArrayElement(size_t element_offset, size_t element_size, unsigned element_index) const argument
H A Dmemory_range_unittest.cc176 size_t element_size = kElements[i].size; local
180 << ", size=" << element_size
183 element_offset, element_size, element_index));
/external/selinux/libsepol/cil/src/
H A Dcil_mem.c63 void *cil_calloc(size_t num_elements, size_t element_size) argument
65 void *mem = calloc(num_elements, element_size);
/external/google-breakpad/src/tools/linux/md2core/
H A Dminidump_memory_range_unittest.cc205 size_t element_size = kElements[i].size; local
209 << ", size=" << element_size
212 element_offset, element_size, element_index));
/external/libpng/
H A Dpngmem.c110 size_t element_size)
114 if (req <= PNG_SIZE_MAX/element_size)
115 return png_malloc_base(png_ptr, req * element_size);
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*(unsigne
109 png_malloc_array_checked(png_const_structrp png_ptr, int nelements, size_t element_size) argument
121 PNG_FUNCTION(png_voidp , png_malloc_array,(png_const_structrp png_ptr, int nelements, size_t element_size),PNG_ALLOCATED) argument
131 PNG_FUNCTION(png_voidp , png_realloc_array,(png_const_structrp png_ptr, png_const_voidp old_array, int old_elements, int add_elements, size_t element_size),PNG_ALLOCATED) argument
[all...]
/external/pdfium/third_party/lpng_v163/
H A Dpngmem.c115 size_t element_size)
119 if (req <= PNG_SIZE_MAX/element_size)
120 return png_malloc_base(png_ptr, req * element_size);
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*(unsigne
114 png_malloc_array_checked(png_const_structrp png_ptr, int nelements, size_t element_size) argument
126 PNG_FUNCTION(png_voidp , png_malloc_array,(png_const_structrp png_ptr, int nelements, size_t element_size),PNG_ALLOCATED) argument
136 PNG_FUNCTION(png_voidp , png_realloc_array,(png_const_structrp png_ptr, png_const_voidp old_array, int old_elements, int add_elements, size_t element_size),PNG_ALLOCATED) argument
[all...]
/external/libgdx/extensions/gdx-bullet/jni/src/bullet/BulletCollision/Gimpact/
H A DbtGenericPoolAllocator.cpp84 void btGenericMemoryPool::init_pool(size_t element_size, size_t element_count) argument
89 m_element_size = element_size;
H A DbtGenericPoolAllocator.h51 void init_pool(size_t element_size, size_t element_count);
56 btGenericMemoryPool(size_t element_size, size_t element_count) argument
58 init_pool(element_size, element_count);
/external/mesa3d/src/glx/
H A Dindirect_vertex_array_priv.h69 GLsizei element_size; member in struct:array_state
/external/mesa3d/src/mesa/vbo/
H A Dvbo_primitive_restart.c79 find_sub_primitives(const void *elements, unsigned element_size, argument
133 switch (element_size) {
/external/webrtc/webrtc/common_audio/
H A Dring_buffer.c29 size_t element_size; member in struct:RingBuffer
54 *data_ptr_1 = buf->data + buf->read_pos * buf->element_size;
55 *data_ptr_bytes_1 = margin * buf->element_size;
57 *data_ptr_bytes_2 = (read_elements - margin) * buf->element_size;
59 *data_ptr_1 = buf->data + buf->read_pos * buf->element_size;
60 *data_ptr_bytes_1 = read_elements * buf->element_size;
68 RingBuffer* WebRtc_CreateBuffer(size_t element_count, size_t element_size) { argument
70 if (element_count == 0 || element_size == 0) {
79 self->data = malloc(element_count * element_size);
87 self->element_size
[all...]
/external/dbus/dbus/
H A Ddbus-mempool.c100 int element_size; /**< size of a single object in the pool */ member in struct:DBusMemPool
133 * @param element_size size of an element allocated from the pool.
138 _dbus_mem_pool_new (int element_size, argument
148 if (element_size < 8)
149 element_size = 8;
154 _dbus_assert (element_size >= (int) sizeof (void*));
155 _dbus_assert (element_size >= (int) sizeof (DBusFreedElement));
160 pool->element_size = _DBUS_ALIGN_VALUE (element_size, sizeof (void *));
171 pool->block_size = pool->element_size *
[all...]
/external/libcxxabi/src/
H A Dcxa_vector.cpp79 st_cxa_cleanup ( void *ptr, size_t &idx, size_t element_size, destruct_f destructor ) argument
80 : ptr_ ( ptr ), idx_ ( idx ), element_size_ ( element_size ),
115 // __cxa_vec_new2(element_count, element_size, padding_size, constructor,
118 size_t element_count, size_t element_size, size_t padding_size,
121 return __cxa_vec_new2 ( element_count, element_size, padding_size,
144 size_t element_count, size_t element_size, size_t padding_size,
148 const size_t heap_size = element_count * element_size + padding_size;
162 __cxa_vec_ctor ( vec_base, element_count, element_size, constructor, destructor );
173 size_t element_count, size_t element_size, size_t padding_size,
177 const size_t heap_size = element_count * element_size
117 __cxa_vec_new( size_t element_count, size_t element_size, size_t padding_size, void (*constructor)(void*), void (*destructor)(void*) ) argument
143 __cxa_vec_new2( size_t element_count, size_t element_size, size_t padding_size, void (*constructor)(void*), void (*destructor)(void*), void* (*alloc)(size_t), void (*dealloc)(void*) ) argument
172 __cxa_vec_new3( size_t element_count, size_t element_size, size_t padding_size, void (*constructor)(void*), void (*destructor)(void*), void* (*alloc)(size_t), void (*dealloc)(void*, size_t) ) argument
209 __cxa_vec_cctor( void* dest_array, void* src_array, size_t element_count, size_t element_size, void (*constructor) (void*, void*), void (*destructor)(void*) ) argument
234 __cxa_vec_ctor( void* array_address, size_t element_count, size_t element_size, void (*constructor)(void*), void (*destructor)(void*) ) argument
256 __cxa_vec_dtor( void* array_address, size_t element_count, size_t element_size, void (*destructor)(void*) ) argument
282 __cxa_vec_cleanup( void* array_address, size_t element_count, size_t element_size, void (*destructor)(void*) ) argument
319 __cxa_vec_delete( void* array_address, size_t element_size, size_t padding_size, void (*destructor)(void*) ) argument
331 __cxa_vec_delete2( void* array_address, size_t element_size, size_t padding_size, void (*destructor)(void*), void (*dealloc)(void*) ) argument
352 __cxa_vec_delete3( void* array_address, size_t element_size, size_t padding_size, void (*destructor)(void*), void (*dealloc) (void*, size_t)) argument
[all...]
/external/libgdx/extensions/gdx-bullet/jni/swig-src/collision/com/badlogic/gdx/physics/bullet/collision/
H A DbtGenericMemoryPool.java106 public void init_pool(long element_size, long element_count) { argument
107 CollisionJNI.btGenericMemoryPool_init_pool(swigCPtr, this, element_size, element_count);
114 public btGenericMemoryPool(long element_size, long element_count) { argument
115 this(CollisionJNI.new_btGenericMemoryPool(element_size, element_count), true);
/external/mesa3d/src/mesa/state_tracker/
H A Dst_atom_array.c406 GLuint element_size = array->_ElementSize; local
408 assert(element_size == array->Size * _mesa_sizeof_type(array->Type));
/external/v8/src/runtime/
H A Druntime-typedarray.cc80 size_t* element_size) {
86 *element_size = size; \
112 size_t element_size = 1; // Bogus initialization. local
115 &element_size);
133 CHECK(byte_length % element_size == 0);
134 size_t length = byte_length / element_size;
193 size_t element_size = 1; // Bogus initialization. local
196 &element_size);
211 (length > (kMaxInt / element_size))) {
215 size_t byte_length = length * element_size;
78 ArrayIdToTypeAndSize(int arrayId, ExternalArrayType* array_type, ElementsKind* fixed_elements_kind, size_t* element_size) argument
[all...]
/external/v8/test/unittests/compiler/
H A Djs-typed-lowering-unittest.cc598 int const element_size = static_cast<int>(array->element_size()); local
601 Type::Range(kMinInt / element_size, kMaxInt / element_size, zone()));
612 element_size == 1
614 : IsWord32Shl(key, IsInt32Constant(WhichPowerOf2(element_size)));
675 int const element_size = static_cast<int>(array->element_size()); local
678 Type::Range(kMinInt / element_size, kMaxInt / element_size, zon
719 int const element_size = static_cast<int>(array->element_size()); local
[all...]
/external/opencv/cv/src/
H A Dcvmorph.cpp732 int element_size = sizeof(*element) + size*sizeof(element->values[0]); local
746 CV_CALL( element = (IplConvKernel *)cvAlloc(element_size + 32));
/external/mesa3d/src/mesa/drivers/dri/i965/
H A Dbrw_fs_visitor.cpp165 int element_size; local
170 element_size = type_size(ir->type);
175 this->result.reg_offset += index->value.i[0] * element_size;
H A Dbrw_vec4_visitor.cpp1445 int element_size = type_size(ir->type); local
1453 src.reg_offset += constant_index->value.i[0] * element_size;
1463 if (element_size == 1) {
1468 emit(MUL(dst_reg(index_reg), this->result, src_reg(element_size)));
/external/libvpx/libvpx/third_party/libwebm/
H A 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);
737 long long element_size; member in struct:mkvparser::SeekHead::Entry
748 long long element_size; member in struct:mkvparser::SeekHead::VoidElement
[all...]
/external/libvpx/libwebm/mkvparser/
H A 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);
824 long long element_size; member in struct:mkvparser::SeekHead::Entry
835 long long element_size; member in struct:mkvparser::SeekHead::VoidElement
[all...]
/external/mesa3d/src/mesa/program/
H A Dir_to_mesa.cpp1581 int element_size = type_size(ir->type); local
1589 src.index += index->value.i[0] * element_size;
1599 if (element_size == 1) {
1605 this->result, src_reg_for_float(element_size));
/external/opencv3/modules/imgproc/src/
H A Dmorph.cpp1896 int element_size = sizeof(IplConvKernel) + size*sizeof(int); local
1897 IplConvKernel *element = (IplConvKernel*)cvAlloc(element_size + 32);
/external/v8/src/
H A Dcode-stubs.cc4632 int element_size = local
4637 element_size;

Completed in 665 milliseconds

12