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

Function rpmalloc_heap_aligned_realloc

source/extern/rpmalloc.c:3514–3523  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3512}
3513
3514extern inline RPMALLOC_ALLOCATOR void*
3515rpmalloc_heap_aligned_realloc(rpmalloc_heap_t* heap, void* ptr, size_t alignment, size_t size, unsigned int flags) {
3516#if ENABLE_VALIDATE_ARGS
3517 if ((size + alignment < size) || (alignment > _memory_page_size)) {
3518 errno = EINVAL;
3519 return 0;
3520 }
3521#endif
3522 return _rpmalloc_aligned_reallocate(heap, ptr, alignment, size, 0, flags);
3523}
3524
3525extern inline void
3526rpmalloc_heap_free(rpmalloc_heap_t* heap, void* ptr) {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected