aligned_malloc -> aligned_alloc

This commit is contained in:
SG
2024-04-09 17:08:12 +03:00
parent 5bca6d2e84
commit 0d3a717762
5 changed files with 4 additions and 14 deletions

View File

@@ -38,7 +38,7 @@ char* strdup(const char* s) {
return y;
}
void* aligned_malloc(size_t size, size_t alignment) {
void* aligned_alloc(size_t size, size_t alignment) {
return pvPortAllocAligned(size, alignment);
}

View File

@@ -35,14 +35,6 @@ size_t memmgr_get_total_heap(void);
*/
size_t memmgr_get_minimum_free_heap(void);
/**
* An aligned version of malloc, used when you need to get the aligned space on the heap.
* @param size
* @param alignment
* @return void*
*/
void* aligned_malloc(size_t size, size_t alignment);
/**
* @brief Allocate memory from the auxiliary memory pool. That memory can't be freed.
*

View File

@@ -461,7 +461,7 @@ static bool elf_load_section_data(ELFFile* elf, ELFSection* section, Elf32_Shdr*
return true;
}
section->data = aligned_malloc(section_header->sh_size, section_header->sh_addralign);
section->data = aligned_alloc(section_header->sh_size, section_header->sh_addralign);
section->size = section_header->sh_size;
if(section_header->sh_type == SHT_NOBITS) {

View File

@@ -514,8 +514,7 @@ Function,-,acosh,double,double
Function,-,acoshf,float,float
Function,-,acoshl,long double,long double
Function,-,acosl,long double,long double
Function,-,aligned_alloc,void*,"size_t, size_t"
Function,+,aligned_malloc,void*,"size_t, size_t"
Function,+,aligned_alloc,void*,"size_t, size_t"
Function,-,arc4random,__uint32_t,
Function,-,arc4random_buf,void,"void*, size_t"
Function,-,arc4random_uniform,__uint32_t,__uint32_t
1 entry status name type params
514 Function - acoshf float float
515 Function - acoshl long double long double
516 Function - acosl long double long double
517 Function - + aligned_alloc void* size_t, size_t
Function + aligned_malloc void* size_t, size_t
518 Function - arc4random __uint32_t
519 Function - arc4random_buf void void*, size_t
520 Function - arc4random_uniform __uint32_t __uint32_t

View File

@@ -583,8 +583,7 @@ Function,-,acosh,double,double
Function,-,acoshf,float,float
Function,-,acoshl,long double,long double
Function,-,acosl,long double,long double
Function,-,aligned_alloc,void*,"size_t, size_t"
Function,+,aligned_malloc,void*,"size_t, size_t"
Function,+,aligned_alloc,void*,"size_t, size_t"
Function,-,arc4random,__uint32_t,
Function,-,arc4random_buf,void,"void*, size_t"
Function,-,arc4random_uniform,__uint32_t,__uint32_t
1 entry status name type params
583 Function - acoshf float float
584 Function - acoshl long double long double
585 Function - acosl long double long double
586 Function - + aligned_alloc void* size_t, size_t
Function + aligned_malloc void* size_t, size_t
587 Function - arc4random __uint32_t
588 Function - arc4random_buf void void*, size_t
589 Function - arc4random_uniform __uint32_t __uint32_t