| 3512 | } |
| 3513 | |
| 3514 | extern inline RPMALLOC_ALLOCATOR void* |
| 3515 | rpmalloc_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 | |
| 3525 | extern inline void |
| 3526 | rpmalloc_heap_free(rpmalloc_heap_t* heap, void* ptr) { |
nothing calls this directly
no test coverage detected