Home
last modified time | relevance | path

Searched refs:i_guess (Results 1 – 1 of 1) sorted by relevance

/lvgl-3.5.0/src/misc/
Dlv_mem.c283 int8_t i_guess = -1; in lv_mem_buf_get() local
290 else if(i_guess < 0) { in lv_mem_buf_get()
291 i_guess = i; in lv_mem_buf_get()
294 else if(LV_GC_ROOT(lv_mem_buf[i]).size < LV_GC_ROOT(lv_mem_buf[i_guess]).size) { in lv_mem_buf_get()
295 i_guess = i; in lv_mem_buf_get()
300 if(i_guess >= 0) { in lv_mem_buf_get()
301 LV_GC_ROOT(lv_mem_buf[i_guess]).used = 1; in lv_mem_buf_get()
302 MEM_TRACE("returning already allocated buffer (buffer id: %d, address: %p)", i_guess, in lv_mem_buf_get()
303 LV_GC_ROOT(lv_mem_buf[i_guess]).p); in lv_mem_buf_get()
304 return LV_GC_ROOT(lv_mem_buf[i_guess]).p; in lv_mem_buf_get()