Home
last modified time | relevance | path

Searched refs:col (Results 1 – 25 of 262) sorted by relevance

1234567891011

/openbsd/games/snake/
H A Dsnake.c570 d.col = you.col-sp->col; in chase()
588 d.col = sp->col + mx[i]; in chase()
621 np->col = sp->col + mx[w]; in chase()
679 p.col = you.col; in stretch()
700 if (you.col < ps->col) { in stretch()
701 for (p.col = you.col + 1; p.col <= ps->col; p.col++) in stretch()
705 for (; p.col > you.col; p.col--) in stretch()
708 for (p.col = you.col - 1; p.col >= ps->col; p.col--) in stretch()
712 for (; p.col < you.col; p.col++) in stretch()
771 x.col = ps->col; in win()
[all …]
/openbsd/usr.bin/mandoc/
H A Dout.c221 col->width = 1; in tblcalc()
343 if (col->width > col->nwidth) in tblcalc()
344 col->decimal += (col->width - col->nwidth) / 2; in tblcalc()
411 col->width--; in tblcalc()
429 if (col != NULL && col->width < sz) in tblcalc_data()
478 if (col != NULL && col->width < msz) in tblcalc_literal()
495 if (col == NULL) in tblcalc_number()
520 if (col != NULL && col->width < totsz) in tblcalc_number()
543 col->nwidth += intsz - col->decimal; in tblcalc_number()
552 if (col->nwidth > col->width) in tblcalc_number()
[all …]
H A Dterm.c113 p->tcol->col = 0; in term_flushln()
201 p->tcol->col++; in term_flushln()
229 p->col = p->tcol->col = p->tcol->lastcol = 0; in term_flushln()
431 p->tcol->col = nbr; in term_field()
664 uc = -p->col; in term_word()
683 p->col--; in term_word()
686 p->col += uc; in term_word()
688 uc += p->col; in term_word()
689 p->col = 0; in term_word()
857 p->col--; in encode1()
[all …]
H A Dtbl_term.c290 tp->col = 0; in term_tbl()
608 col = tp->tbl.cols; in tbl_hrule()
611 col++; in tbl_hrule()
613 col = tp->tbl.cols + cp->col; in tbl_hrule()
623 col->width + col->spacing / 2); in tbl_hrule()
674 if (col->spacing) in tbl_hrule()
684 if (col->spacing > 2) in tbl_hrule()
690 if (col->spacing > 4) in tbl_hrule()
815 width = col->width; in tbl_literal()
816 ic = dp->layout->col; in tbl_literal()
[all …]
/openbsd/usr.bin/ul/
H A Dul.c73 int col, maxcol; variable
169 col = 1; in mfilter()
206 col++; in mfilter()
221 col = 1; in mfilter()
284 obuf[col].c_pos = obuf[col - 1].c_pos + 1; in mfilter()
286 col++; in mfilter()
309 obuf[col].c_pos = obuf[col - 1].c_pos + w; in mfilter()
314 obuf[col].c_pos = obuf[col - 1].c_pos + w; in mfilter()
322 col++; in mfilter()
448 col = 1; in initbuf()
[all …]
/openbsd/usr.bin/vis/
H A Dfoldit.c35 int foldit(char *chunk, int col, int max);
38 foldit(char *chunk, int col, int max) in foldit() argument
41 int first = (col != 0); in foldit()
53 col = 0; in foldit()
56 col = (col + 8) & ~07; in foldit()
59 col = col ? col - 1 : 0; in foldit()
62 col++; in foldit()
64 if (col > (max - 2)) { in foldit()
66 return (col); in foldit()
68 col = 0; in foldit()
[all …]
/openbsd/usr.bin/column/
H A Dcolumn.c156 int col, numcols; in c_columnate() local
167 col = 0; in c_columnate()
190 for (col = 0; col < numcols; ++col, base += numrows) { in r_columnate()
215 int col; in maketbl() local
218 for (col = 0; (*row)[col + 1].content != NULL; ++col) in maketbl()
220 maxwidths[col] - (*row)[col].width, ""); in maketbl()
234 int col, width, twidth; in input() local
246 for (col = 0;; col++) { in input()
317 if (col == 0) in input()
331 while (col--) in input()
[all …]
/openbsd/usr.bin/vi/ex/
H A Dex_print.c91 size_t col, len; in ex_print() local
97 col = 0; in ex_print()
164 size_t col, len; in ex_scprint() local
166 col = 0; in ex_scprint()
200 size_t col, tlen, ts; in ex_prchars() local
205 for (col = *colp; len--;) in ex_prchars()
208 col < sp->cols && tlen--; ++col) { in ex_prchars()
219 col += tlen; in ex_prchars()
222 if (col == sp->cols) { in ex_prchars()
223 col = 0; in ex_prchars()
[all …]
/openbsd/games/hunt/hunt/
H A Dotto.c122 static int row, col; variable
152 row = y; col = x; in otto()
275 for (c = col - 1; c < col + 2; c++) { in ottolook()
286 been_there[r][col] |= NORTH; in ottolook()
296 for (c = col - 1; c < col + 2; c++) { in ottolook()
327 been_there[r][col] |= WEST; in ottolook()
328 for (c = col - 1; c > col - itemp->distance; c--) in ottolook()
347 been_there[r][col] |= EAST; in ottolook()
348 for (c = col + 1; c < col + itemp->distance; c++) in ottolook()
399 case WEST: col--; break; in face_and_move_direction()
[all …]
/openbsd/sys/dev/rasops/
H A Drasops4.c113 if ((unsigned)col >= (unsigned)ri->ri_cols) in rasops4_putchar()
119 col *= width; in rasops4_putchar()
121 col = col & 31; in rasops4_putchar()
139 if ((col + width) <= 32) { in rasops4_putchar()
140 rmask = rasops_pmask[col][width]; in rasops4_putchar()
165 lmask = ~rasops_lmask[col]; in rasops4_putchar()
166 rmask = ~rasops_rmask[(col + width) & 31]; in rasops4_putchar()
178 width = 32 - col; in rasops4_putchar()
186 | MBE((u_int)fb >> col); in rasops4_putchar()
273 if ((unsigned)col >= (unsigned)ri->ri_cols) { in rasops4_putchar8()
[all …]
H A Drasops1.c100 if ((unsigned)col >= (unsigned)ri->ri_cols) in rasops1_putchar()
104 col *= ri->ri_font->fontwidth; in rasops1_putchar()
108 col = col & 31; in rasops1_putchar()
126 if ((col + width) <= 32) { in rasops1_putchar()
127 rmask = rasops_pmask[col][width]; in rasops1_putchar()
144 | (MBE(fb >> col) & rmask); in rasops1_putchar()
154 | (MBE(fb >> col) & rmask); in rasops1_putchar()
168 lmask = ~rasops_lmask[col]; in rasops1_putchar()
181 width = 32 - col; in rasops1_putchar()
190 | MBE((u_int)fb >> col); in rasops1_putchar()
[all …]
H A Drasops_bitops.h53 if (col < 0) { in NAME()
54 num += col; in NAME()
55 col = 0; in NAME()
58 if ((col + num) > ri->ri_cols) in NAME()
59 num = ri->ri_cols - col; in NAME()
70 if ((col & 31) + num <= 32) { in NAME()
71 lmask = ~rasops_pmask[col & 31][num]; in NAME()
81 lmask = rasops_rmask[col & 31]; in NAME()
127 if ((col & 31) + num <= 32) { in NAME()
128 lmask = rasops_pmask[col & 31][num]; in NAME()
[all …]
H A Drasops.c1295 for (col = 0; col < ri->ri_cols; col++) in rasops_copyrows_rotated()
1297 col, col); in rasops_copyrows_rotated()
1300 for (col = 0; col < ri->ri_cols; col++) in rasops_copyrows_rotated()
1302 col, col); in rasops_copyrows_rotated()
1336 for (col = 0; col < ri->ri_cols; col++) { in rasops_eraserows_rotated()
1477 for (col = 0; col < ri->ri_cols; col++) { in rasops_doswitch()
1563 for (col = dst; col < dst + num; col++) { in rasops_vcons_copycols()
1628 for (col = 0; col < cols; col++) { in rasops_vcons_copyrows()
1706 for (col = dst; col < dst + num; col++) { in rasops_wronly_copycols()
1746 for (col = 0; col < cols; col++) { in rasops_wronly_copyrows()
[all …]
/openbsd/usr.bin/mg/
H A Dparagraph.c36 int col, nospace; in gotobop() local
46 col = 0; in gotobop()
50 col++; in gotobop()
93 col = 0; in do_gotoeop()
98 col++; in do_gotoeop()
380 col = 0; in findpara()
386 col++; in findpara()
409 int col, i, nce; in fillword() local
411 for (i = col = 0; col <= fillcol; ++i, ++col) { in fillword()
416 col = ntabstop(col, curwp->w_bufp->b_tabw); in fillword()
[all …]
H A Dutil.c26 ntabstop(int col, int tabw) in ntabstop() argument
107 int col, i, c; in getcolpos() local
111 col = 0; in getcolpos()
116 col = ntabstop(col, wp->w_bufp->b_tabw); in getcolpos()
118 col += 2; in getcolpos()
120 col++; in getcolpos()
126 return (col); in getcolpos()
277 int col, s; in delwhite() local
279 col = curwp->w_doto; in delwhite()
283 ++col; in delwhite()
[all …]
/openbsd/usr.sbin/lpr/filters/
H A Dlpf.c68 int i, col; in main() local
112 col = indent; in main()
131 if (--col < indent) in main()
132 col = indent; in main()
136 col = indent; in main()
140 col = ((col - indent) | 07) + indent + 1; in main()
160 col++; in main()
163 cp = &buf[0][col]; in main()
169 if (col > maxcol[i]) in main()
170 maxcol[i] = col; in main()
[all …]
/openbsd/sys/arch/luna88k/stand/boot/
H A Dbmd.c210 int col; in bmd_escape_0() local
211 for (col = bq->bl_col; col < bp->bc_xmax; col++) in bmd_escape_0()
214 col, bp->bc_row); in bmd_escape_0()
243 int col = 0, row = 0; in bmd_escape_1() local
259 col = (col * 10) + (*p - 0x30); in bmd_escape_1()
261 bq->bl_col = col + bp->bc_xmin; in bmd_escape_1()
474 switch (col % 4) { in bmd_draw_char()
528 bmd_reverse_char(char *raddr, char *waddr, int col, int row) in bmd_reverse_char() argument
533 switch (col%4) { in bmd_reverse_char()
583 bmd_erase_char(char *raddr, char *waddr, int col, int row) in bmd_erase_char() argument
[all …]
/openbsd/usr.bin/less/
H A Doutput.c187 int col; in less_printf() local
189 col = 0; in less_printf()
193 col++; in less_printf()
202 col++; in less_printf()
216 return (col); in less_printf()
241 int col = 0; in error() local
252 col += so_s_width; in error()
255 col += less_printf(fmt, parg); in error()
270 if (col >= sc_width) in error()
310 int col = 0; in query() local
[all …]
/openbsd/lib/libcurses/base/
H A Dlib_vline.c60 int col = win->_curx; in NCURSES_EXPORT() local
75 if (col > 0 && isWidecExt(line->text[col])) { in NCURSES_EXPORT()
76 SetChar2(line->text[col - 1], ' '); in NCURSES_EXPORT()
78 if (col < win->_maxx && isWidecExt(line->text[col + 1])) { in NCURSES_EXPORT()
79 SetChar2(line->text[col + 1], ' '); in NCURSES_EXPORT()
82 line->text[col] = wch; in NCURSES_EXPORT()
83 CHANGED_CELL(line, col); in NCURSES_EXPORT()
H A Dwresize.c112 int col, row, size_x, size_y; in wresize() local
180 for (col = 0; col <= ToCols; ++col) { in wresize()
181 bool valid = (col <= size_x); in wresize()
183 if (col == ToCols in wresize()
184 && col < size_x in wresize()
185 && isWidecBase(win->_line[row].text[col])) { in wresize()
189 s[col] = (valid in wresize()
190 ? win->_line[row].text[col] in wresize()
200 for (col = 0; col <= ToCols; ++col) in wresize()
201 s[col] = win->_nc_bkgd; in wresize()
/openbsd/games/bcd/
H A Dbcd.c252 int col, i; in decode() local
278 for (col = 0; col < columns; col++) { in decode()
281 if (lines[i][col] == ']') in decode()
283 buf[col] = ' '; in decode()
286 buf[col] = i; in decode()
290 buf[col] = 0; in decode()
291 for (col = columns - 1; col >= 0; col--) { in decode()
292 if (buf[col] == ' ') in decode()
293 buf[col] = '\0'; in decode()
/openbsd/games/boggle/boggle/
H A Dmach.c141 int col, row; in results() local
152 move(row + 1, col); in results()
155 move(row + 2, col); in results()
194 int row, col; in get_line() local
215 move(row, col - 1); in get_line()
397 int col, row; in showword() local
401 move(row, col); in showword()
408 move(row, col); in showword()
423 int i, row, col; in doword() local
429 move(row, col); in doword()
[all …]
/openbsd/gnu/llvm/clang/lib/Headers/
H A Damxintrin.h308 const unsigned short col; member
328 dst->tile = _tile_loadd_internal(dst->row, dst->col, base, stride); in __tile_loadd()
349 dst->tile = _tile_loaddt1_internal(dst->row, dst->col, base, stride); in __tile_stream_loadd()
371 dst->tile = _tile_dpbssd_internal(src0.row, src1.col, src0.col, dst->tile, in __tile_dpbssd()
394 dst->tile = _tile_dpbsud_internal(src0.row, src1.col, src0.col, dst->tile, in __tile_dpbsud()
417 dst->tile = _tile_dpbusd_internal(src0.row, src1.col, src0.col, dst->tile, in __tile_dpbusd()
440 dst->tile = _tile_dpbuud_internal(src0.row, src1.col, src0.col, dst->tile, in __tile_dpbuud()
458 _tile_stored_internal(src.row, src.col, base, stride, src.tile); in __tile_stored()
471 dst->tile = __builtin_ia32_tilezero_internal(dst->row, dst->col); in __tile_zero()
492 dst->tile = _tile_dpbf16ps_internal(src0.row, src1.col, src0.col, dst->tile, in __tile_dpbf16ps()
[all …]
/openbsd/bin/ls/
H A Dprint.c207 if (++col == numcols) in printcol()
273 int chcnt, col, colwidth; in printacol() local
282 col = 0; in printacol()
286 if (col >= numcols) { in printacol()
287 col = 0; in printacol()
291 col++; in printacol()
292 if (col < numcols) in printacol()
304 int col; in printstream() local
318 if (col > 0) { in printstream()
319 (void)putchar(','), col++; in printstream()
[all …]
/openbsd/sys/arch/armv7/exynos/
H A Dcrosec_kbd.c177 int col, row, s; in cros_ec_get_keystate() local
180 for (col = 0; col < sc->keyboard.cols; col++) { in cros_ec_get_keystate()
183 int pressed = !!(state[col] & (1 << row)); in cros_ec_get_keystate()
184 if (pressed && !sc->keyboard.state[off+col]) { in cros_ec_get_keystate()
186 sc->keyboard.state[off+col] = 1; in cros_ec_get_keystate()
188 return off+col; in cros_ec_get_keystate()
192 } else if (!pressed && sc->keyboard.state[off+col]) { in cros_ec_get_keystate()
194 sc->keyboard.state[off+col] = 0; in cros_ec_get_keystate()
196 return off+col; in cros_ec_get_keystate()
198 wskbd_input(sc->keyboard.wskbddev, WSCONS_EVENT_KEY_UP, off+col); in cros_ec_get_keystate()
[all …]

1234567891011