Home
last modified time | relevance | path

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

/dports/x11/kitty/kitty-0.23.1/kitty/
H A Dline.c24 PyMem_Free(self->cpu_cells); in dealloc()
61 char_type ch = self->cpu_cells[pos].ch; in find_colon_slash()
348 …for(unsigned c = 0; c < arraysz(self->cpu_cells[pos].cc_idx) && self->cpu_cells[pos].cc_idx[c]; c+… in line_as_ansi()
407 CPUCell *cell = self->cpu_cells + x; in line_add_combining_char()
466 memset(self->cpu_cells[i].cc_idx, 0, sizeof(self->cpu_cells[i].cc_idx)); in set_text()
497 …self->cpu_cells[i].ch = ch; memset(self->cpu_cells[i].cc_idx, 0, sizeof(self->cpu_cells[i].cc_idx)… in line_clear_text()
524 memset(self->cpu_cells[i].cc_idx, 0, sizeof(self->cpu_cells[i].cc_idx)); in line_apply_cursor()
591 char_type ch = self->cpu_cells[at].ch; in line_get_char()
607 self->cpu_cells[at].ch = ch; in line_set_char()
609 memset(self->cpu_cells[at].cc_idx, 0, sizeof(self->cpu_cells[at].cc_idx)); in line_set_char()
[all …]
H A Dlineops.h23 memcpy(dest->cpu_cells, src->cpu_cells, sizeof(CPUCell) * MIN(src->xnum, dest->xnum)); in copy_line()
28 clear_chars_in_line(CPUCell *cpu_cells, GPUCell *gpu_cells, index_type xnum, char_type ch) { in clear_chars_in_line() argument
31 …for (index_type i = 0; i < xnum; i++) { cpu_cells[i].ch = ch; cpu_cells[i].hyperlink_id = 0; gpu_c… in clear_chars_in_line()
39 while (xlimit > 0 && (line->cpu_cells[xlimit - 1].ch) == BLANK_CHAR) xlimit--; in xlimit_for_line()
46 …_save_cells(Line *line, index_type start, index_type num, GPUCell *gpu_cells, CPUCell *cpu_cells) { in line_save_cells() argument
48 memcpy(cpu_cells + start, line->cpu_cells + start, sizeof(CPUCell) * num); in line_save_cells()
52 …reset_cells(Line *line, index_type start, index_type num, GPUCell *gpu_cells, CPUCell *cpu_cells) { in line_reset_cells() argument
54 memcpy(line->cpu_cells + start, cpu_cells + start, sizeof(CPUCell) * num); in line_reset_cells()
63 line->cpu_cells[at].ch = BLANK_CHAR; in left_shift_line()
64 line->cpu_cells[at].hyperlink_id = 0; in left_shift_line()
H A Drewrap.h47 memcpy(dest->cpu_cells + dest_at, src->cpu_cells + src_at, num * sizeof(CPUCell)); in copy_range()
72 … while(src_x_limit && (src->line->cpu_cells[src_x_limit - 1].ch) == BLANK_CHAR) src_x_limit--; in rewrap_inner()
H A Dhistory.c25 …s->cpu_cells = calloc(1, cpu_cells_size + gpu_cells_size + SEGMENT_SIZE * sizeof(line_attrs_type)); in add_segment()
26 if (!s->cpu_cells) fatal("Out of memory allocating new history buffer segment"); in add_segment()
27 s->gpu_cells = (GPUCell*)(((uint8_t*)s->cpu_cells) + cpu_cells_size); in add_segment()
47 seg_ptr(cpu_cells, self->xnum); in cpu_lineptr()
130 for (size_t i = 0; i < self->num_segments; i++) free(self->segments[i].cpu_cells); in dealloc()
148 l->cpu_cells = cpu_lineptr(self, num); in init_line()
545 …memcpy(other->segments[i].cpu_cells, self->segments[i].cpu_cells, SEGMENT_SIZE * self->xnum * size… in historybuf_rewrap()
H A Dline-buf.c123 l->cpu_cells = cpu_lineptr(lb, ynum); in init_line()
199 line->cpu_cells = PyMem_Calloc(line->xnum, sizeof(CPUCell)); in allocate_line_storage()
201 if (line->cpu_cells == NULL || line->gpu_cells) { PyErr_NoMemory(); return false; } in allocate_line_storage()
202 …if (BLANK_CHAR != 0) clear_chars_in_line(line->cpu_cells, line->gpu_cells, line->xnum, BLANK_CHAR); in allocate_line_storage()
204 line->cpu_cells = PyMem_Malloc(line->xnum * sizeof(CPUCell)); in allocate_line_storage()
206 if (line->cpu_cells == NULL || line->gpu_cells == NULL) { PyErr_NoMemory(); return false; } in allocate_line_storage()
252 zero_at_ptr_count(l->cpu_cells, xnum); in clear_line_()
254 if (BLANK_CHAR != 0) clear_chars_in_line(l->cpu_cells, l->gpu_cells, xnum, BLANK_CHAR); in clear_line_()
H A Ddata-types.h102 (dest)->cpu_cells[d] = (src)->cpu_cells[s]; (dest)->gpu_cells[d] = (src)->gpu_cells[s];
178 CPUCell *cpu_cells; member
196 CPUCell *cpu_cells; member
H A Dfonts.c642 render_group(FontGroup *fg, unsigned int num_cells, unsigned int num_glyphs, CPUCell *cpu_cells, GP… in render_group() argument
663 bool was_colored = (gpu_cells->attrs & WIDTH_MASK) == 2 && is_emoji(cpu_cells->ch); in render_group()
831 CPUCell cpu_cells[3] = {{.ch = '='}, {.ch = '='}, {.ch = '='}}; in detect_spacer_strategy() local
833 shape(cpu_cells, gpu_cells, arraysz(cpu_cells), hbf, font, false); in detect_spacer_strategy()
841 shape(cpu_cells, gpu_cells, 2, hbf, font, false); in detect_spacer_strategy()
1144 … while(num < line->xnum && line->cpu_cells[num].ch) num += line->gpu_cells[num].attrs & WIDTH_MASK; in test_shape()
1157 shape_run(line->cpu_cells, line->gpu_cells, num, font, false); in test_shape()
1224 …render_run(fg, line->cpu_cells + first_cell_in_run, line->gpu_cells + first_cell_in_run, i - first… in render_line()
1234 CPUCell *cpu_cell = line->cpu_cells + i; in render_line()
1253 while ((line->cpu_cells[i+num_spaces+1].ch == ' ') in render_line()
[all …]
H A Dscreen.c52 PyMem_Free(self->overlay_line.cpu_cells); in init_overlay_line()
56 if (!self->overlay_line.cpu_cells || !self->overlay_line.gpu_cells) { in init_overlay_line()
387 PyMem_Free(self->overlay_line.cpu_cells); in dealloc()
440 dest_cpu = self->linebuf->line->cpu_cells; in move_widened_char()
519 CPUCell *cell = self->linebuf->line->cpu_cells + xpos; in draw_second_flag_codepoint()
574 cpu_cell = self->linebuf->line->cpu_cells + xpos; in draw_combining_char()
2074 if (line->cpu_cells[x].hyperlink_id) return line->cpu_cells[x].hyperlink_id; in hyperlink_id_for_range()
2214 if (line->cpu_cells[x].hyperlink_id) { in screen_detect_url()
2612 char_type ch = line->cpu_cells[x].ch; in is_char_ok_for_word_extension()
2615 …if (ch == ':' && x + 2 < line->xnum && line->cpu_cells[x+1].ch == '/' && line->cpu_cells[x+2].ch =… in is_char_ok_for_word_extension()
[all …]
H A Dscreen.h76 CPUCell *cpu_cells; member
/dports/devel/libvirt/libvirt-7.10.0/src/test/
H A Dtest_driver.c319 virCapsHostNUMACellCPU *cpu_cells; in testBuildCapabilities() local
323 cpu_cells = g_new0(virCapsHostNUMACellCPU, privconn->cells[i].numCpus); in testBuildCapabilities()
326 memcpy(cpu_cells, privconn->cells[i].cpus, in testBuildCapabilities()
327 sizeof(*cpu_cells) * privconn->cells[i].numCpus); in testBuildCapabilities()
341 privconn->cells[i].numCpus, &cpu_cells, in testBuildCapabilities()