Lines Matching refs:size
116 void __libc_alloc_buffer_create_failure (void *start, size_t size);
123 alloc_buffer_create (void *start, size_t size) in alloc_buffer_create() argument
126 uintptr_t end = (uintptr_t) start + size; in alloc_buffer_create()
128 __libc_alloc_buffer_create_failure (start, size); in alloc_buffer_create()
133 struct alloc_buffer __libc_alloc_buffer_allocate (size_t size, void **pptr)
141 struct alloc_buffer alloc_buffer_allocate (size_t size, void **pptr) in alloc_buffer_allocate() argument
143 return __libc_alloc_buffer_allocate (size, pptr); in alloc_buffer_allocate()
206 __alloc_buffer_assert_size (size_t size) in __alloc_buffer_assert_size() argument
208 if (!__builtin_constant_p (size)) in __alloc_buffer_assert_size()
213 else if (size == 0) in __alloc_buffer_assert_size()
218 return size; in __alloc_buffer_assert_size()
246 __alloc_buffer_alloc (struct alloc_buffer *buf, size_t size, size_t align) in __alloc_buffer_alloc() argument
248 if (size == 1 && align == 1) in __alloc_buffer_alloc()
249 return alloc_buffer_alloc_bytes (buf, size); in __alloc_buffer_alloc()
253 size_t new_current = aligned + size; in __alloc_buffer_alloc()
255 && new_current >= size /* No overflow in size computation. */ in __alloc_buffer_alloc()
333 size_t size, size_t align,
357 alloc_buffer_copy_bytes (struct alloc_buffer *buf, const void *src, size_t size) in alloc_buffer_copy_bytes() argument
359 *buf = __libc_alloc_buffer_copy_bytes (*buf, src, size); in alloc_buffer_copy_bytes()