Home
last modified time | relevance | path

Searched refs:new_size (Results 1 – 3 of 3) sorted by relevance

/bionic/libc/bionic/
Dmremap.cpp39 void* mremap(void* old_address, size_t old_size, size_t new_size, int flags, ...) { in mremap() argument
41 size_t rounded = __BIONIC_ALIGN(new_size, PAGE_SIZE); in mremap()
42 if (rounded < new_size || rounded > PTRDIFF_MAX) { in mremap()
56 return __mremap(old_address, old_size, new_size, flags, new_address); in mremap()
Dmalloc_common.cpp197 size_t new_size; in reallocarray() local
198 if (__builtin_mul_overflow(item_count, item_size, &new_size)) { in reallocarray()
204 return realloc(old_mem, new_size); in reallocarray()
/bionic/libc/stdio/
Dprintf_common.h646 int new_size = *tablesize * 2; in __grow_type_table() local
648 if (new_size < getpagesize()) new_size = getpagesize(); in __grow_type_table()
651 *typetable = static_cast<unsigned char*>(mmap(nullptr, new_size, in __grow_type_table()
657 unsigned char* new_table = static_cast<unsigned char*>(mmap(nullptr, new_size, in __grow_type_table()
665 memset(*typetable + *tablesize, T_UNUSED, (new_size - *tablesize)); in __grow_type_table()
667 *tablesize = new_size; in __grow_type_table()