feat(newlib): Add definition of aligned_alloc to heap.c

Add the definition of aligned_alloc to the list of
definitions provided by heap.c.

Note that memalign (strictly equivalent) to aligned_alloc
is already defined in heap.c.
pull/13572/head
Guillaume Souchere 2024-01-31 09:00:35 +01:00 zatwierdzone przez BOT
rodzic f93025b7f9
commit 7c82811e70
1 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -74,6 +74,11 @@ void* memalign(size_t alignment, size_t n)
return heap_caps_aligned_alloc(alignment, n, MALLOC_CAP_DEFAULT);
}
void* aligned_alloc(size_t alignment, size_t n)
{
return heap_caps_aligned_alloc(alignment, n, MALLOC_CAP_DEFAULT);
}
int posix_memalign(void **out_ptr, size_t alignment, size_t size)
{
if (size == 0) {