From bcbc4761fa72117be4ba32889ea79fca94c21956 Mon Sep 17 00:00:00 2001 From: James Zern Date: Wed, 7 Sep 2016 10:51:33 -0700 Subject: [PATCH] vpx_mem.c: remove unnecessary inline these aren't overly speed critical, best to leave it to the compiler. Change-Id: I231c14abee5b845d7b8e8454832f2feb22c6ce45 --- vpx_mem/vpx_mem.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/vpx_mem/vpx_mem.c b/vpx_mem/vpx_mem.c index 138a5402e..c94ed52d1 100644 --- a/vpx_mem/vpx_mem.c +++ b/vpx_mem/vpx_mem.c @@ -33,21 +33,21 @@ static int check_size_argument_overflow(uint64_t nmemb, uint64_t size) { return 1; } -static INLINE size_t *get_malloc_address_location(void *const mem) { +static size_t *get_malloc_address_location(void *const mem) { return ((size_t *)mem) - 1; } -static INLINE uint64_t get_aligned_malloc_size(size_t size, size_t align) { +static uint64_t get_aligned_malloc_size(size_t size, size_t align) { return (uint64_t)size + align - 1 + ADDRESS_STORAGE_SIZE; } -static INLINE void set_actual_malloc_address(void *const mem, - const void *const malloc_addr) { +static void set_actual_malloc_address(void *const mem, + const void *const malloc_addr) { size_t *const malloc_addr_location = get_malloc_address_location(mem); *malloc_addr_location = (size_t)malloc_addr; } -static INLINE void *get_actual_malloc_address(void *const mem) { +static void *get_actual_malloc_address(void *const mem) { size_t *const malloc_addr_location = get_malloc_address_location(mem); return (void *)(*malloc_addr_location); } -- 2.49.0