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

Function rpmalloc_heap_aligned_alloc

source/extern/rpmalloc.c:3461–3470  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3459}
3460
3461extern inline RPMALLOC_ALLOCATOR void*
3462rpmalloc_heap_aligned_alloc(rpmalloc_heap_t* heap, size_t alignment, size_t size) {
3463#if ENABLE_VALIDATE_ARGS
3464 if (size >= MAX_ALLOC_SIZE) {
3465 errno = EINVAL;
3466 return 0;
3467 }
3468#endif
3469 return _rpmalloc_aligned_allocate(heap, alignment, size);
3470}
3471
3472extern inline RPMALLOC_ALLOCATOR void*
3473rpmalloc_heap_calloc(rpmalloc_heap_t* heap, size_t num, size_t size) {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected