mirror of
https://github.com/rockchip-linux/mpp.git
synced 2024-11-27 03:54:00 +08:00
chore[mpp_mem]: Add mpp_realloc_size
Signed-off-by: Herman Chen <herman.chen@rock-chips.com> Change-Id: I896b4132e0fded153ee4d932b9c011bf3ba41c16
This commit is contained in:
parent
2988a0c499
commit
295aa22639
@ -31,15 +31,18 @@
|
||||
#define mpp_malloc_size(type, size) \
|
||||
(type*)mpp_osal_malloc(__FUNCTION__, size)
|
||||
|
||||
#define mpp_calloc_size(type, size) \
|
||||
(type*)mpp_osal_calloc(__FUNCTION__, size)
|
||||
|
||||
#define mpp_calloc(type, count) \
|
||||
(type*)mpp_osal_calloc(__FUNCTION__, sizeof(type) * (count))
|
||||
|
||||
#define mpp_calloc_size(type, size) \
|
||||
(type*)mpp_osal_calloc(__FUNCTION__, size)
|
||||
|
||||
#define mpp_realloc(ptr, type, count) \
|
||||
(type*)mpp_osal_realloc(__FUNCTION__, ptr, sizeof(type) * (count))
|
||||
|
||||
#define mpp_realloc_size(ptr, type, size) \
|
||||
(type*)mpp_osal_realloc(__FUNCTION__, ptr, size)
|
||||
|
||||
#define mpp_free(ptr) \
|
||||
mpp_osal_free(__FUNCTION__, ptr)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user