Home
last modified time | relevance | path

Searched refs:width (Results 1 – 25 of 1176) sorted by relevance

12345678910>>...48

/openbsd-src/gnu/llvm/lldb/examples/customization/bin-utils/
H A Dbinutils.py3 def binary(n, width=None): argument
10 if width and width <= 0:
11 width = None
16 if width:
17 for i in range(width - len(l)):
24 def twos_complement(n, width): argument
29 val = 2**(width - 1)
34 return binary(n, width)
56 def positions(width): argument
60 return ['{0:2}'.format(i)[-2:] for i in reversed(range(width))]
[all …]
/openbsd-src/usr.bin/mandoc/
H A Dout.c112 * used for the actual width calculations.
124 size_t ewidth, min1, min2, wanted, width, xwidth; in tblcalc()
158 /* Handle explicit width specifications. */ in tblcalc()
159 if (col->width < dp->layout->width) in tblcalc()
160 col->width = dp->layout->width; in tblcalc()
167 * Calculate an automatic width. in tblcalc()
171 width = tblcalc_data(tbl, in tblcalc()
175 dp->layout->width in tblcalc()
125 size_t ewidth, min1, min2, wanted, width, xwidth; tblcalc() local
[all...]
/openbsd-src/usr.bin/tmux/
H A Dutf8.c31 u_int width;
53 { .wc = 0x0261D, .width = 2 },
54 { .wc = 0x026F9, .width = 2 },
55 { .wc = 0x0270A, .width = 2 },
56 { .wc = 0x0270B, .width = 2 },
57 { .wc = 0x0270C, .width = 2 },
58 { .wc = 0x0270D, .width = 2 },
59 { .wc = 0x1F1E6, .width = 2 },
60 { .wc = 0x1F1E7, .width = 2 },
61 { .wc = 0x1F1E8, .width
235 UTF8_SET_WIDTH(width) global() argument
402 utf8_width(struct utf8_data * ud,int * width) utf8_width() argument
448 int size, width; utf8_fromwc() local
493 int width; utf8_append() local
665 u_int width = 0; utf8_strwidth() local
728 u_int width; utf8_cstrwidth() local
751 utf8_padcstr(const char * s,u_int width) utf8_padcstr() argument
772 utf8_rpadcstr(const char * s,u_int width) utf8_rpadcstr() argument
[all...]
H A Dformat-draw.c74 u_int start, u_int width) in format_update_ranges() argument
85 if (fr->end <= start || fr->start >= start + width) { in format_update_ranges()
92 if (fr->end > start + width) in format_update_ranges()
93 fr->end = start + width; in format_update_ranges()
111 u_int width) in format_draw_put() argument
118 screen_write_fast_copy(octx, s, start, 0, width, 1); in format_draw_put()
119 format_update_ranges(frs, s, offset, start, width); in format_draw_put()
125 u_int ocx, u_int ocy, u_int offset, u_int width, struct screen *list, in format_draw_put_list() argument
132 if (width >= list->cx) { in format_draw_put_list()
133 format_draw_put(octx, ocx, ocy, list, frs, offset, 0, width); in format_draw_put_list()
[all …]
/openbsd-src/usr.bin/fold/
H A Dfold.c59 unsigned int width; in main() local
67 width = 0; in main()
80 width = strtonum(optarg, 1, UINT_MAX, &errstr); in main()
88 width = 0; in main()
91 if (width > UINT_MAX / 10 - 1) in main()
93 width = (width * 10) + (ch - '0'); in main()
94 if (width < 1) in main()
107 if (width == 0) in main()
108 width = DEFLINEWIDTH; in main()
113 fold(width); in main()
[all …]
/openbsd-src/bin/ps/
H A Dprint.c89 (void)printf("%-*s", v->width, v->header); in printheader()
91 (void)printf("%*s", v->width, v->header); in printheader()
128 left = termwidth - (totwidth - v->width); in command()
130 left = v->width; in command()
132 left = v->width; in command()
208 mbswprint(kp->p_comm, ve->var->width, ve->next != NULL); in ucomm()
222 mbswprint(path, ve->var->width, ve->next != NULL); in curwd()
233 int n = min(v->width, LOGIN_NAME_MAX); in logname()
236 while (n++ < v->width) in logname()
239 (void)printf("%-*s", v->width, "-"); in logname()
[all …]
/openbsd-src/usr.bin/colrm/
H A Dcolrm.c56 int ch, len, width; in main() local
95 width = 0; in main()
112 column > stop + (width > 1))) { in main()
114 if (width > 1 && p[1] == '\b') in main()
117 if (width > 1 && p[1] == '\b') in main()
119 column -= width; in main()
149 width = 1; in main()
150 } else if ((width = wcwidth(wc)) == -1) in main()
151 width = 1; in main()
158 if ((start == 0 || column + width < start || in main()
[all …]
/openbsd-src/lib/libc/stdio/
H A Dvfscanf.c104 size_t width; /* field width, or 0 */ in __svfscanf() local
141 width = 0; in __svfscanf()
196 width = width * 10 + c - '0'; in __svfscanf()
340 if (width == 0) in __svfscanf()
341 width = 1; in __svfscanf()
349 while (width != 0) { in __svfscanf()
367 width--; in __svfscanf()
387 if ((n = fp->_r) < width) { in __svfscanf()
389 width -= n; in __svfscanf()
397 sum += width; in __svfscanf()
[all …]
H A Dvfwscanf.c106 size_t width; /* field width, or 0 */ in __vfwscanf() local
154 width = 0; in __vfwscanf()
210 width = width * 10 + c - '0'; in __vfwscanf()
354 if (width == 0) in __vfwscanf()
355 width = 1; in __vfwscanf()
360 while (width-- != 0 && in __vfwscanf()
376 while (width != 0 && in __vfwscanf()
378 if (width >= MB_CUR_MAX && in __vfwscanf()
388 if (nconv > width) { in __vfwscanf()
398 width -= nconv; in __vfwscanf()
[all …]
/openbsd-src/gnu/usr.bin/binutils/gdb/
H A Dui-out.c37 int width; member
157 static void default_table_header (struct ui_out *uiout, int width,
166 static void default_field_int (struct ui_out *uiout, int fldno, int width,
170 static void default_field_skip (struct ui_out *uiout, int fldno, int width,
173 static void default_field_string (struct ui_out *uiout, int fldno, int width,
178 int width, enum ui_align align,
233 static void uo_table_header (struct ui_out *uiout, int width,
242 static void uo_field_int (struct ui_out *uiout, int fldno, int width,
244 static void uo_field_skip (struct ui_out *uiout, int fldno, int width,
246 static void uo_field_string (struct ui_out *uiout, int fldno, int width,
[all …]
/openbsd-src/sys/arch/luna88k/dev/
H A Domrasops1.c106 int width; /* add to get to same position in next line */ in om1_windowmove() local
124 width = ri->ri_stride / 4; /* convert to number in longword */ in om1_windowmove()
128 + ((sy + cy - 1) * width); in om1_windowmove()
130 + ((dy + cy - 1) * width); in om1_windowmove()
131 width = -width; in om1_windowmove()
133 psrcLine = ((u_int32_t *)OMFB_FB_WADDR) + (sy * width); in om1_windowmove()
134 pdstLine = ((u_int32_t *)OMFB_FB_WADDR) + (dy * width); in om1_windowmove()
151 pdst += width; in om1_windowmove()
152 psrc += width; in om1_windowmove()
213 pdstLine += width; in om1_windowmove()
[all …]
/openbsd-src/sys/lib/libsa/
H A Dprintf.c101 int ch, lflag, width, n; in kdoprnt() local
112 width = 0; in kdoprnt()
130 width = n; in kdoprnt()
141 kprintn(put, ul, *p++, width, padchar); in kdoprnt()
177 kprintn64(put, ull, 10, width, padchar); in kdoprnt()
187 kprintn(put, ul, 10, width, padchar); in kdoprnt()
193 kprintn64(put, ull, 8, width, padchar); in kdoprnt()
199 kprintn(put, ul, 8, width, padchar); in kdoprnt()
205 kprintn64(put, ull, 10, width, padchar); in kdoprnt()
211 kprintn(put, ul, 10, width, padchar); in kdoprnt()
[all …]
/openbsd-src/sys/dev/pci/drm/
H A Ddrm_panel_orientation_quirks.c27 int width; member
34 .width = 720,
42 .width = 1200,
50 .width = 1200,
58 .width = 1200,
66 .width = 720,
75 .width = 720,
83 .width = 800,
90 .width = 1200,
97 .width
474 drm_get_panel_orientation_quirk(int width,int height) drm_get_panel_orientation_quirk() argument
509 drm_get_panel_orientation_quirk(int width,int height) drm_get_panel_orientation_quirk() argument
[all...]
/openbsd-src/regress/usr.bin/mandoc/mdoc/Bl/
H A Doffset.out_markdown29 > Bl tag width Ds offset empty
33 > Bl tag width Ds offset left
37 > Bl tag width Ds offset indent
41 > Bl tag width Ds offset indent-two
45 > Bl tag width Ds offset 0.36i
49 > Bl tag width Ds offset mystring
53 > Bl tag width Ds offset Ds
57 > Bl tag width Ds offset 78n
61 > Bl tag width Ds offset -0.26i
H A Doffset.out_ascii28 tag Bl tag width Ds offset empty
30 tag Bl tag width Ds offset left
32 tag Bl tag width Ds offset indent
34 tag Bl tag width Ds offset indent-two
36 tag Bl tag width Ds offset 0.36i
38 tag Bl tag width Ds offset mystring
40 tag Bl tag width Ds offset Ds
44 width
49 tag Bl tag width Ds offset -0.26i
/openbsd-src/gnu/usr.bin/perl/cpan/podlators/lib/Pod/Text/
H A DTermcap.pm48 my ($bold, $undl, $norm, $width);
55 $width = $$term{_co};
56 $width =~ s/^\#//;
60 # Figure out the terminal width before calling the Pod::Text constructor,
62 # historically used 2 characters less than the width of the screen, while
65 unless (defined $args{width}) {
66 $args{width} = $ENV{COLUMNS} || $width || 80;
67 $args{width} -= 2;
148 my $width
[all...]
/openbsd-src/lib/libc/stdlib/
H A Dlsearch.c42 lsearch(const void *key, void *base, size_t *nelp, size_t width, in lsearch() argument
45 void *element = lfind(key, base, nelp, width, compar); in lsearch()
52 element = memmove((char *)base + *nelp * width, key, width); in lsearch()
59 lfind(const void *key, const void *base, size_t *nelp, size_t width, in lfind() argument
64 end = (const char *)base + *nelp * width; in lfind()
65 for (element = base; element < end; element += width) in lfind()
/openbsd-src/sys/ddb/
H A Ddb_examine.c77 int width; in db_examine() local
89 width = 12; in db_examine()
104 width = 4; in db_examine()
108 width = 8; in db_examine()
112 width = 12; in db_examine()
117 width = 20; in db_examine()
127 (long)value, DB_FORMAT_R, 0, width); in db_examine()
128 db_printf("%-*s", width, tmpfmt); in db_examine()
132 db_printf("%*lx", width, (long)value); in db_examine()
172 (long)value, DB_FORMAT_Z, 0, width); in db_examine()
[all …]
/openbsd-src/sys/dev/pci/drm/amd/display/dc/dcn32/
H A Ddcn32_dpp.c43 int line_size = scl_data->viewport.width < scl_data->recout.width ? in dscl32_calc_lb_num_partitions()
44 scl_data->viewport.width : scl_data->recout.width; in dscl32_calc_lb_num_partitions()
45 int line_size_c = scl_data->viewport_c.width < scl_data->recout.width ? in dscl32_calc_lb_num_partitions()
46 scl_data->viewport_c.width : scl_data->recout.width; in dscl32_calc_lb_num_partitions()
67 if (scl_data->viewport.width == scl_data->h_active && in dscl32_calc_lb_num_partitions()
81 if (scl_data->viewport.width == scl_data->h_active && in dscl32_calc_lb_num_partitions()
/openbsd-src/gnu/usr.bin/binutils/gdb/rdi-share/
H A Dlogging.c90 int width = 0; /* No field width by default */ in va_warn0() local
111 width = ((width * 10) + (fch - '0')); in va_warn0()
138 if ((width == 0) || (width > 8)) in va_warn0()
139 width = 8; in va_warn0()
141 for(loop = (width * 4); (loop != 0); loop -= 4) in va_warn0()
196 if (width != 0) in va_warn0()
198 width -= count; in va_warn0()
200 for (; (width != 0); width--) in va_warn0()
/openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/gcc.dg/
H A D20020430-1.c70 int width, height; member
96 Dimension width, height; member
139 if (x_loc < 0 || x_loc >= (((RectObj)smw)->rectangle.width) || in GetEventEntry()
142 if (x_root == ((((w)->core.screen))->width) - 1 && in GetEventEntry()
143 …(((RectObj)w)->rectangle.x) + (((RectObj)w)->rectangle.width) + ((((RectObj)w)->rectangle.border_w… in GetEventEntry()
148 + (((RectObj)smw->simple_menu.entry_set)->rectangle.width) + 1, in GetEventEntry()
152 warp = -(int)(((RectObj)entry)->rectangle.width) >> 1; in GetEventEntry()
153 …move = x_loc - (((RectObj)entry)->rectangle.width) - (((RectObj)entry)->rectangle.x) + (((RectObj)… in GetEventEntry()
157 move = ((((w)->core.screen))->width) - in GetEventEntry()
158 …((((RectObj)w)->rectangle.x) + (((RectObj)w)->rectangle.width) + ((((RectObj)w)->rectangle.border_… in GetEventEntry()
[all …]
/openbsd-src/usr.bin/systat/
H A Dengine.c277 if (len >= fld->width) { in print_fld_str()
279 print_str(fld->width, str); in print_fld_str()
283 move_horiz(fld->start + (fld->width - len)); in print_fld_str()
286 move_horiz(fld->start + (fld->width - len) / 2); in print_fld_str()
290 offset = (fld->width - len) / 2; in print_fld_str()
292 offset = (fld->width / 2) - (cpos - str); in print_fld_str()
295 else if (offset > (fld->width - len)) in print_fld_str()
296 offset = fld->width - len; in print_fld_str()
316 if (fld->width < 1) in print_bar_title()
324 if (divs[i] * len <= fld->width) in print_bar_title()
[all …]
/openbsd-src/usr.bin/lam/
H A Dutf8.c31 int len, width, sum; in mbswidth_truncate() local
36 len = width = 1; in mbswidth_truncate()
37 else if ((width = wcwidth(wc)) < 0) in mbswidth_truncate()
38 width = 1; in mbswidth_truncate()
39 if (sum + width > maxwidth) { in mbswidth_truncate()
43 sum += width; in mbswidth_truncate()
/openbsd-src/usr.bin/less/
H A Dcmdbuf.c231 int width; in cmd_repaint() local
232 char *pr = cmd_step_right(&np, &width, NULL); in cmd_repaint()
233 if (cmd_col + width >= sc_width) in cmd_repaint()
237 cmd_col += width; in cmd_repaint()
241 int width; in cmd_repaint() local
242 char *pr = cmd_step_right(&np, &width, NULL); in cmd_repaint()
243 if (width > 0) in cmd_repaint()
264 int width, bswidth; in cmd_home() local
266 cmd_step_left(&cp, &width, &bswidth); in cmd_home()
269 cmd_col -= width; in cmd_home()
[all …]
/openbsd-src/sys/dev/pci/drm/i915/selftests/
H A Di915_vma.c376 for (x = 0; x < r->plane[n].width; x++) { in assert_rotated()
456 for (x = 0; x < r->plane[n].width; x++) { in assert_remapped()
501 left = (r->plane[n].dst_stride - r->plane[n].width) * PAGE_SIZE; in assert_remapped()
539 return a->dst_stride * a->width + b->dst_stride * b->width; in remapped_size()
550 { .width = 1, .height = 1, .src_stride = 1 }, in igt_vma_rotate_remap()
551 { .width = 2, .height = 2, .src_stride = 2 }, in igt_vma_rotate_remap()
552 { .width = 4, .height = 4, .src_stride = 4 }, in igt_vma_rotate_remap()
553 { .width = 8, .height = 8, .src_stride = 8 }, in igt_vma_rotate_remap()
555 { .width = 3, .height = 5, .src_stride = 3 }, in igt_vma_rotate_remap()
556 { .width = 3, .height = 5, .src_stride = 4 }, in igt_vma_rotate_remap()
[all …]

12345678910>>...48