diff options
Diffstat (limited to 'libvideoeditor/osal/src/M4PSW_MemoryInterface.c')
-rwxr-xr-x | libvideoeditor/osal/src/M4PSW_MemoryInterface.c | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/libvideoeditor/osal/src/M4PSW_MemoryInterface.c b/libvideoeditor/osal/src/M4PSW_MemoryInterface.c index a069b9b..6c33fc1 100755 --- a/libvideoeditor/osal/src/M4PSW_MemoryInterface.c +++ b/libvideoeditor/osal/src/M4PSW_MemoryInterface.c @@ -68,60 +68,5 @@ M4OSA_MemAddr32 M4OSA_32bitAlignedMalloc(M4OSA_UInt32 size, return Address; } -/** - ************************************************************************ - * @fn M4OSA_MemAddr32 M4OSA_malloc(M4OSA_UInt32 size, - * M4OSA_CoreID coreID, - * M4OSA_Char* string) - * @brief this function allocates a memory block (at least 32 bits aligned) - * @note - * @param size (IN): size of allocated block in bytes - * @param coreID (IN): identification of the caller component - * @param string (IN): description of the allocated block (null terminated) - * @return address of the allocated block, M4OSA_NULL if no memory available - ************************************************************************ -*/ - -M4OSA_MemAddr32 M4OSA_malloc(M4OSA_UInt32 size, - M4OSA_CoreID coreID, - M4OSA_Char* string) -{ - M4OSA_MemAddr32 Address = M4OSA_NULL; - - /** - * If size is 0, malloc on WIN OS allocates a zero-length item in - * the heap and returns a valid pointer to that item. - * On other platforms, malloc could returns an invalid pointer - * So, DON'T allocate memory of 0 byte */ - if (size == 0) - { - return Address; - } - - if (size%4 != 0) - { - size = size + 4 - (size%4); - } - - Address = (M4OSA_MemAddr32) malloc(size); - - return Address; -} - - -/** - ************************************************************************ - * @fn M4OSA_Void M4OSA_free(M4OSA_MemAddr32 address) - * @brief this function free the provided memory block - * @note As in stlib.h, this function does nothing if address is NULL. - * @param address (IN): address of the block to free - * @return none - ************************************************************************ -*/ - -M4OSA_Void M4OSA_free (M4OSA_MemAddr32 address) -{ - free(address); -} #endif |