ref: bcbc4761fa72117be4ba32889ea79fca94c21956
parent: c892521b1d81d7d2f5f5fbd523aae88215cb979f
author: James Zern <[email protected]>
date: Wed Sep 7 06:51:33 EDT 2016
vpx_mem.c: remove unnecessary inline these aren't overly speed critical, best to leave it to the compiler. Change-Id: I231c14abee5b845d7b8e8454832f2feb22c6ce45
--- a/vpx_mem/vpx_mem.c
+++ b/vpx_mem/vpx_mem.c
@@ -33,21 +33,21 @@
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);
}