Lines Matching refs:element_count
27 inline static void __set_element_count ( void *p, size_t element_count ) {
28 static_cast <size_t *> (p)[-1] = element_count;
111 // __cxa_vec_new2(element_count, element_size, padding_size, constructor,
114 size_t element_count, size_t element_size, size_t padding_size,
117 return __cxa_vec_new2 ( element_count, element_size, padding_size,
140 size_t element_count, size_t element_size, size_t padding_size,
144 const size_t heap_size = element_count * element_size + padding_size;
154 __set_element_count ( vec_base, element_count );
158 __cxa_vec_ctor ( vec_base, element_count, element_size, constructor, destructor );
169 size_t element_count, size_t element_size, size_t padding_size,
173 const size_t heap_size = element_count * element_size + padding_size;
183 __set_element_count ( vec_base, element_count );
187 __cxa_vec_ctor ( vec_base, element_count, element_size, constructor, destructor );
206 size_t element_count, size_t element_size,
215 for ( idx = 0; idx < element_count;
231 void* array_address, size_t element_count, size_t element_size,
240 for ( idx = 0; idx < element_count; ++idx, ptr += element_size )
253 void* array_address, size_t element_count, size_t element_size,
258 size_t idx = element_count;
262 ptr += element_count * element_size; // one past the last element
278 void __cxa_vec_cleanup( void* array_address, size_t element_count,
283 size_t idx = element_count;
286 ptr += element_count * element_size; // one past the last element
355 const size_t element_count = padding_size ? __get_element_count ( vec_base ) : 0;
356 const size_t heap_block_size = element_size * element_count + padding_size;
360 __cxa_vec_dtor ( array_address, element_count, element_size, destructor );