Home
last modified time | relevance | path

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

/glibc-2.36/support/
Dblob_repeat.c39 fill0 (char *target, const char *element, size_t element_size, in fill0() argument
44 memcpy (target, element, element_size); in fill0()
45 target += element_size; in fill0()
53 fill (char *target, const char *element, size_t element_size, in fill() argument
56 if (element_size == 0 || count == 0) in fill()
58 else if (element_size == 1) in fill()
60 else if (element_size == sizeof (wchar_t)) in fill()
66 else if (element_size < 1024 && count > 4096) in fill()
70 size_t buffer_count = sizeof (buffer) / element_size; in fill()
71 fill0 (buffer, element, element_size, buffer_count); in fill()
[all …]
Dblob_repeat.h38 size_t element_size,
48 (const void *element, size_t element_size, size_t count);
/glibc-2.36/malloc/
Ddynarray_emplace_enlarge.c27 void *scratch, size_t element_size) in __libc_dynarray_emplace_enlarge() argument
34 if (element_size < 4) in __libc_dynarray_emplace_enlarge()
36 else if (element_size < 8) in __libc_dynarray_emplace_enlarge()
55 if (INT_MULTIPLY_WRAPV (new_allocated, element_size, &new_size)) in __libc_dynarray_emplace_enlarge()
63 memcpy (new_array, list->array, list->used * element_size); in __libc_dynarray_emplace_enlarge()
Ddynarray_resize_clear.c24 void *scratch, size_t element_size) in __libc_dynarray_resize_clear() argument
27 if (!__libc_dynarray_resize (list, size, scratch, element_size)) in __libc_dynarray_resize_clear()
31 memset (array + (old_size * element_size), 0, in __libc_dynarray_resize_clear()
32 (size - old_size) * element_size); in __libc_dynarray_resize_clear()
Ddynarray.h130 void *scratch, size_t element_size);
139 void *scratch, size_t element_size);
144 void *scratch, size_t element_size);
161 size_t element_size,
Ddynarray_resize.c27 void *scratch, size_t element_size) in __libc_dynarray_resize() argument
41 if (INT_MULTIPLY_WRAPV (size, element_size, &new_size_bytes)) in __libc_dynarray_resize()
53 memcpy (new_array, list->array, list->used * element_size); in __libc_dynarray_resize()
Dalloc_buffer_alloc_array.c23 __libc_alloc_buffer_alloc_array (struct alloc_buffer *buf, size_t element_size, in __libc_alloc_buffer_alloc_array() argument
30 bool overflow = __builtin_mul_overflow (element_size, count, &size); in __libc_alloc_buffer_alloc_array()
Ddynarray_finalize.c25 void *scratch, size_t element_size, in __libc_dynarray_finalize() argument
45 size_t allocation_size = used * element_size; in __libc_dynarray_finalize()
/glibc-2.36/elf/
Ddl-find_object.c174 element_size = sizeof ((struct dlfo_mappings_segment) {}.objects[0]) in _dlfo_mappings_segment_allocate_unpadded() enumerator
177 + size * element_size); in _dlfo_mappings_segment_allocate_unpadded()
212 element_size = sizeof ((struct dlfo_mappings_segment) {}.objects[0]) in _dlfo_mappings_segment_allocate() enumerator
215 + size * element_size in _dlfo_mappings_segment_allocate()
235 / element_size); in _dlfo_mappings_segment_allocate()