| 3459 | } |
| 3460 | |
| 3461 | extern inline RPMALLOC_ALLOCATOR void* |
| 3462 | rpmalloc_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 | |
| 3472 | extern inline RPMALLOC_ALLOCATOR void* |
| 3473 | rpmalloc_heap_calloc(rpmalloc_heap_t* heap, size_t num, size_t size) { |
nothing calls this directly
no test coverage detected