mirror of
https://gitee.com/Vancouver2017/luban-lite.git
synced 2025-12-29 01:06:56 +00:00
v1.0.3
This commit is contained in:
@@ -246,20 +246,18 @@ static inline void aicos_free(unsigned int mem_type, void *mem)
|
||||
|
||||
static inline void *aicos_malloc_align(uint32_t mem_type, size_t size, size_t align)
|
||||
{
|
||||
/* Only support MEM_DEFAULT type by now */
|
||||
if (mem_type != MEM_DEFAULT)
|
||||
return NULL;
|
||||
|
||||
return rt_malloc_align(size, align);
|
||||
if (mem_type == MEM_DEFAULT)
|
||||
return rt_malloc_align(size, align);
|
||||
else
|
||||
return _aicos_malloc_align_(size, align, mem_type, (void *)aic_memheap_malloc);
|
||||
}
|
||||
|
||||
static inline void aicos_free_align(uint32_t mem_type, void *mem)
|
||||
{
|
||||
/* Only support MEM_DEFAULT type by now */
|
||||
if (mem_type != MEM_DEFAULT)
|
||||
return;
|
||||
|
||||
rt_free_align(mem);
|
||||
if (mem_type == MEM_DEFAULT)
|
||||
rt_free_align(mem);
|
||||
else
|
||||
_aicos_free_align_(mem, mem_type, (void *)aic_memheap_free);
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
Reference in New Issue
Block a user