| 3134 | } |
| 3135 | |
| 3136 | extern RPMALLOC_ALLOCATOR void* |
| 3137 | rpaligned_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 | |
| 3149 | extern RPMALLOC_ALLOCATOR void* |
| 3150 | rpaligned_alloc(size_t alignment, size_t size) { |
nothing calls this directly
no test coverage detected