mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'feat/newlib-add-aligned-alloc_v5.2' into 'release/v5.2'
feat(newlib): Add definition of aligned_alloc to heap.c (backport v5.2) See merge request espressif/esp-idf!29470
This commit is contained in:
commit
2ac4df6e47
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user