Lines Matching refs:size
118 sal_Size size; in rtl_memory_once_init() local
128 size = RTL_MEMALIGN; in rtl_memory_once_init()
131 while (size <= g_alloc_sizes[i]) in rtl_memory_once_init()
133 g_alloc_table[(size - 1) >> RTL_MEMALIGN_SHIFT] = g_alloc_caches[i]; in rtl_memory_once_init()
134 size += RTL_MEMALIGN; in rtl_memory_once_init()
207 sal_Size size = RTL_MEMORY_ALIGN(n + RTL_MEMALIGN, RTL_MEMALIGN); in rtl_allocateMemory() local
217 if (size <= RTL_MEMORY_CACHED_LIMIT) in rtl_allocateMemory()
218 addr = (char*)rtl_cache_alloc(g_alloc_table[(size - 1) >> RTL_MEMALIGN_SHIFT]); in rtl_allocateMemory()
220 addr = (char*)rtl_arena_alloc (gp_alloc_arena, &size); in rtl_allocateMemory()
224 ((sal_Size*)(addr))[0] = size; in rtl_allocateMemory()
246 sal_Size size = ((sal_Size*)(addr))[0]; in rtl_freeMemory() local
248 if (size <= RTL_MEMORY_CACHED_LIMIT) in rtl_freeMemory()
249 rtl_cache_free(g_alloc_table[(size - 1) >> RTL_MEMALIGN_SHIFT], addr); in rtl_freeMemory()
251 rtl_arena_free (gp_alloc_arena, addr, size); in rtl_freeMemory()