Lines Matching refs:ALIGN
24 #undef ALIGN
26 #define ALIGN(X) (((X) + 7) & ~7) macro
28 #define ALIGN(X) (((X) + 3) & ~3) macro
73 size_t s = ALIGN(sizeof(*c)) + ALIGN(c->alloc_size * sizeof(lv_color_t)); in get_cache_item_size()
75 s += ALIGN(c->size * sizeof(lv_color32_t)); in get_cache_item_size()
77 s += ALIGN(c->w * sizeof(lv_scolor24_t)); in get_cache_item_size()
163 size_t req_size = ALIGN(sizeof(lv_grad_t)) + ALIGN(map_size * sizeof(lv_color_t)); in allocate_item()
165 req_size += ALIGN(size * sizeof(lv_color32_t)); in allocate_item()
167 req_size += ALIGN(w * sizeof(lv_scolor24_t)); in allocate_item()
205 item->map = (lv_color_t *)(p + ALIGN(sizeof(*item))); in allocate_item()
207 … item->hmap = (lv_color32_t *)(p + ALIGN(sizeof(*item)) + ALIGN(map_size * sizeof(lv_color_t))); in allocate_item()
209 …item->error_acc = (lv_scolor24_t *)(p + ALIGN(sizeof(*item)) + ALIGN(size * sizeof(lv_grad_color_t… in allocate_item()
210 ALIGN(map_size * sizeof(lv_color_t))); in allocate_item()
216 item->map = (lv_color_t *)(grad_cache_end + ALIGN(sizeof(*item))); in allocate_item()
218 …item->hmap = (lv_color32_t *)(grad_cache_end + ALIGN(sizeof(*item)) + ALIGN(map_size * sizeof(lv_c… in allocate_item()
220 …item->error_acc = (lv_scolor24_t *)(grad_cache_end + ALIGN(sizeof(*item)) + ALIGN(size * sizeof(lv… in allocate_item()
221 ALIGN(map_size * sizeof(lv_color_t))); in allocate_item()