MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / rpaligned_realloc

Function rpaligned_realloc

source/extern/rpmalloc.c:3136–3147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3134}
3135
3136extern RPMALLOC_ALLOCATOR void*
3137rpaligned_realloc(void* ptr, size_t alignment, size_t size, size_t oldsize,
3138 unsigned int flags) {
3139#if ENABLE_VALIDATE_ARGS
3140 if ((size + alignment < size) || (alignment > _memory_page_size)) {
3141 errno = EINVAL;
3142 return 0;
3143 }
3144#endif
3145 heap_t* heap = get_thread_heap();
3146 return _rpmalloc_aligned_reallocate(heap, ptr, alignment, size, oldsize, flags);
3147}
3148
3149extern RPMALLOC_ALLOCATOR void*
3150rpaligned_alloc(size_t alignment, size_t size) {

Callers

nothing calls this directly

Calls 2

get_thread_heapFunction · 0.85

Tested by

no test coverage detected