Lines Matching refs:size
113 sal_Size size; in rtl_memory_once_init() local
123 size = RTL_MEMALIGN; in rtl_memory_once_init()
126 while (size <= g_alloc_sizes[i]) in rtl_memory_once_init()
128 g_alloc_table[(size - 1) >> RTL_MEMALIGN_SHIFT] = g_alloc_caches[i]; in rtl_memory_once_init()
129 size += RTL_MEMALIGN; in rtl_memory_once_init()
202 sal_Size size = RTL_MEMORY_ALIGN(n + RTL_MEMALIGN, RTL_MEMALIGN); in rtl_allocateMemory() local
212 if (size <= RTL_MEMORY_CACHED_LIMIT) in rtl_allocateMemory()
213 addr = (char*)rtl_cache_alloc(g_alloc_table[(size - 1) >> RTL_MEMALIGN_SHIFT]); in rtl_allocateMemory()
215 addr = (char*)rtl_arena_alloc (gp_alloc_arena, &size); in rtl_allocateMemory()
219 ((sal_Size*)(addr))[0] = size; in rtl_allocateMemory()
241 sal_Size size = ((sal_Size*)(addr))[0]; in rtl_freeMemory() local
243 if (size <= RTL_MEMORY_CACHED_LIMIT) in rtl_freeMemory()
244 rtl_cache_free(g_alloc_table[(size - 1) >> RTL_MEMALIGN_SHIFT], addr); in rtl_freeMemory()
246 rtl_arena_free (gp_alloc_arena, addr, size); in rtl_freeMemory()