diff --git a/src/liballocator/mem-heap.c b/src/liballocator/mem-heap.c index 4a4b26a24..881831d38 100644 --- a/src/liballocator/mem-heap.c +++ b/src/liballocator/mem-heap.c @@ -96,9 +96,9 @@ typedef struct */ mem_HeapState_t mem_Heap; -static inline size_t mem_get_block_chunks_count( const mem_BlockHeader_t *block_header_p); -static inline size_t mem_get_block_data_space_size( const mem_BlockHeader_t *block_header_p); -static inline size_t mem_get_block_chunks_count_from_data_size( size_t block_allocated_size); +static size_t mem_get_block_chunks_count( const mem_BlockHeader_t *block_header_p); +static size_t mem_get_block_data_space_size( const mem_BlockHeader_t *block_header_p); +static size_t mem_get_block_chunks_count_from_data_size( size_t block_allocated_size); static void mem_InitBlockHeader( uint8_t *pFirstChunk, size_t sizeInChunks, @@ -131,7 +131,7 @@ static void mem_HeapStatFreeBlockMerge( void); * * @return chunks count */ -static inline size_t +static size_t mem_get_block_chunks_count( const mem_BlockHeader_t *block_header_p) /**< block header */ { JERRY_ASSERT( block_header_p != NULL ); @@ -158,7 +158,7 @@ mem_get_block_chunks_count( const mem_BlockHeader_t *block_header_p) /**< block * * @return size of block area that can be used to store data */ -static inline size_t +static size_t mem_get_block_data_space_size( const mem_BlockHeader_t *block_header_p) /**< block header */ { return mem_get_block_chunks_count( block_header_p) * MEM_HEAP_CHUNK_SIZE - sizeof (mem_BlockHeader_t); @@ -169,7 +169,7 @@ mem_get_block_data_space_size( const mem_BlockHeader_t *block_header_p) /**< blo * * @return chunks count */ -static inline size_t +static size_t mem_get_block_chunks_count_from_data_size( size_t block_allocated_size) /**< size of block's allocated area */ { return JERRY_ALIGNUP( sizeof (mem_BlockHeader_t) + block_allocated_size, MEM_HEAP_CHUNK_SIZE) / MEM_HEAP_CHUNK_SIZE; diff --git a/src/liballocator/mem-poolman.h b/src/liballocator/mem-poolman.h index 36da10af9..7ac285a29 100644 --- a/src/liballocator/mem-poolman.h +++ b/src/liballocator/mem-poolman.h @@ -56,7 +56,7 @@ typedef enum { * * @return size (in bytes) of chunk of specified type */ -static inline size_t +static size_t mem_GetChunkSize( mem_PoolChunkType_t chunkType) /**< chunk type */ { uint32_t chunkTypeId = (uint32_t) chunkType;