Lines Matching refs:size
39 void * lv_malloc_core(size_t size);
62 void * lv_malloc(size_t size) in lv_malloc() argument
64 LV_TRACE_MEM("allocating %lu bytes", (unsigned long)size); in lv_malloc()
65 if(size == 0) { in lv_malloc()
70 void * alloc = lv_malloc_core(size); in lv_malloc()
73 LV_LOG_INFO("couldn't allocate memory (%lu bytes)", (unsigned long)size); in lv_malloc()
85 lv_memset(alloc, 0xaa, size); in lv_malloc()
92 void * lv_malloc_zeroed(size_t size) in lv_malloc_zeroed() argument
94 LV_TRACE_MEM("allocating %lu bytes", (unsigned long)size); in lv_malloc_zeroed()
95 if(size == 0) { in lv_malloc_zeroed()
100 void * alloc = lv_malloc_core(size); in lv_malloc_zeroed()
102 LV_LOG_INFO("couldn't allocate memory (%lu bytes)", (unsigned long)size); in lv_malloc_zeroed()
113 lv_memzero(alloc, size); in lv_malloc_zeroed()
119 void * lv_calloc(size_t num, size_t size) in lv_calloc() argument
121 LV_TRACE_MEM("allocating number of %zu each %zu bytes", num, size); in lv_calloc()
122 return lv_malloc_zeroed(num * size); in lv_calloc()
125 void * lv_zalloc(size_t size) in lv_zalloc() argument
127 return lv_malloc_zeroed(size); in lv_zalloc()