Home
last modified time | relevance | path

Searched refs:lens (Results 1 – 25 of 76) sorted by relevance

1234

/external/ltrace/
Dlens.c36 && parent->type->lens == NULL); in format_argument()
40 struct lens *lens = &default_lens; in format_argument() local
42 && parent->type->lens != NULL) in format_argument()
43 lens = parent->type->lens; in format_argument()
45 return lens_format(lens, stream, value, arguments); in format_argument()
49 lens_format(struct lens *lens, FILE *stream, struct value *value, in lens_format() argument
52 assert(lens->format_cb != NULL); in lens_format()
53 return lens->format_cb(lens, stream, value, arguments); in lens_format()
57 lens_destroy(struct lens *lens) in lens_destroy() argument
59 if (lens != NULL in lens_destroy()
[all …]
Dlens_enum.c50 enum_lens_destroy_cb(struct lens *lens) in enum_lens_destroy_cb() argument
52 struct enum_lens *self = (void *)lens; in enum_lens_destroy_cb()
104 enum_get(struct enum_lens *lens, struct value *value, in enum_get() argument
108 for (i = 0; i < vect_size(&lens->entries); ++i) { in enum_get()
109 struct enum_entry *entry = VECT_ELEMENT(&lens->entries, in enum_get()
121 enum_lens_format_cb(struct lens *lens, FILE *stream, in enum_lens_format_cb() argument
124 struct enum_lens *self = (void *)lens; in enum_lens_format_cb()
135 lens_init_enum(struct enum_lens *lens) in lens_init_enum() argument
137 *lens = (struct enum_lens){ in lens_init_enum()
143 VECT_INIT(&lens->entries, struct enum_entry); in lens_init_enum()
[all …]
Dlens_default.c396 toplevel_format_lens(struct lens *lens, FILE *stream, in toplevel_format_lens() argument
445 default_lens_format_cb(struct lens *lens, FILE *stream, in default_lens_format_cb() argument
448 return toplevel_format_lens(lens, stream, value, arguments, in default_lens_format_cb()
452 struct lens default_lens = {
458 blind_lens_format_cb(struct lens *lens, FILE *stream, in blind_lens_format_cb() argument
464 struct lens blind_lens = {
470 octal_lens_format_cb(struct lens *lens, FILE *stream, in octal_lens_format_cb() argument
473 return toplevel_format_lens(lens, stream, value, arguments, INT_FMT_o); in octal_lens_format_cb()
476 struct lens octal_lens = {
482 hex_lens_format_cb(struct lens *lens, FILE *stream, in hex_lens_format_cb() argument
[all …]
Dlens.h27 struct lens { struct
32 int (*format_cb)(struct lens *lens, FILE *stream, struct value *value, argument
37 void (*destroy_cb)(struct lens *lens); argument
45 int lens_format(struct lens *lens, FILE *stream, struct value *value,
49 void lens_destroy(struct lens *lens);
Dlens_default.h27 extern struct lens default_lens;
30 extern struct lens blind_lens;
33 extern struct lens octal_lens;
36 extern struct lens hex_lens;
39 extern struct lens bool_lens;
44 extern struct lens guess_lens;
47 extern struct lens string_lens;
50 extern struct lens bitvect_lens;
Dlens_enum.h28 struct lens super;
33 void lens_init_enum(struct enum_lens *lens);
40 int lens_enum_add(struct enum_lens *lens,
45 size_t lens_enum_size(struct enum_lens *lens);
Dread_config_file.c653 info->lens = &string_lens; in parse_string()
830 struct enum_lens *lens = malloc(sizeof(*lens)); in parse_enum() local
831 if (lens == NULL) { in parse_enum()
837 lens_init_enum(lens); in parse_enum()
838 (*retp)->lens = &lens->super; in parse_enum()
852 if (lens_enum_size(lens) > 0) in parse_enum()
876 if (lens_enum_add(lens, key, 1, value, 1) < 0) in parse_enum()
958 struct lens *lens; member
969 static struct lens *
976 return lenses[i].lens; in name2lens()
[all …]
Dprintf.c213 struct lens *lens = NULL; in param_printf_next() local
306 lens = &octal_lens; in param_printf_next()
310 lens = &hex_lens; in param_printf_next()
342 lens = &string_lens; in param_printf_next()
370 infop->lens = lens; in param_printf_next()
Dtype.h65 struct lens *lens; member
DNEWS20 lens as usual, but use array of integers as underlying type.
107 *** New lens "bitvec" is available
111 *** Octal lens renamed to "oct"
115 *** The hex lens can now format floating point arguments
200 | void func(lens(int)); |
204 "octal", which used to be a separate type, is now lens, which can
210 Similarly, "hex" lens was introduced to format as base 16.
211 "hide" was introduced to conceal given argument. "bool" lens was
216 "enum" became lens as well. Because enum already uses
224 "string" was also turned to lens. The argument can be either a
/external/zlib/src/contrib/infback9/
Dinfback9.c63 while (sym < 144) state.lens[sym++] = 8; in makefixed9()
64 while (sym < 256) state.lens[sym++] = 9; in makefixed9()
65 while (sym < 280) state.lens[sym++] = 7; in makefixed9()
66 while (sym < 288) state.lens[sym++] = 8; in makefixed9()
70 inflate_table9(LENS, state.lens, 288, &(next), &(bits), state.work); in makefixed9()
74 while (sym < 32) state.lens[sym++] = 5; in makefixed9()
77 inflate_table9(DISTS, state.lens, 32, &(next), &(bits), state.work); in makefixed9()
364 state->lens[order[state->have++]] = (unsigned short)BITS(3);
368 state->lens[order[state->have++]] = 0;
372 ret = inflate_table9(CODES, state->lens, 19, &(state->next),
[all …]
Dinftree9.c32 int inflate_table9(type, lens, codes, table, bits, work) in inflate_table9() argument
34 unsigned short FAR *lens;
112 count[lens[sym]]++;
141 if (lens[sym] != 0) work[offs[lens[sym]]++] = (unsigned short)sym;
249 len = lens[work[sym]];
/external/valgrind/none/tests/x86/
Dbug152818-x86.c79 const int lens[] = { 4, 3, 2, 1, 0, 0, 1, 2, 3, 4}; variable
91 for (idx = 0; idx < sizeof (lens)/sizeof(lens[0]); ++idx) in main()
130 len = lens[idx]; in main()
131 df = (idx >= (sizeof(lens)/sizeof(lens[0]))/2); in main()
/external/pdfium/third_party/zlib_v128/
Dinfback.c97 while (sym < 144) state->lens[sym++] = 8; in fixedtables()
98 while (sym < 256) state->lens[sym++] = 9; in fixedtables()
99 while (sym < 280) state->lens[sym++] = 7; in fixedtables()
100 while (sym < 288) state->lens[sym++] = 8; in fixedtables()
104 inflate_table(LENS, state->lens, 288, &(next), &(bits), state->work); in fixedtables()
108 while (sym < 32) state->lens[sym++] = 5; in fixedtables()
111 inflate_table(DISTS, state->lens, 32, &(next), &(bits), state->work); in fixedtables()
380 state->lens[order[state->have++]] = (unsigned short)BITS(3); in inflateBack()
384 state->lens[order[state->have++]] = 0; in inflateBack()
388 ret = inflate_table(CODES, state->lens, 19, &(state->next), in inflateBack()
[all …]
Dinftrees.c34 unsigned short FAR *lens, in inflate_table() argument
110 count[lens[sym]]++; in inflate_table()
147 if (lens[sym] != 0) work[offs[lens[sym]]++] = (unsigned short)sym; in inflate_table()
256 len = lens[work[sym]]; in inflate_table()
Dinflate.c276 while (sym < 144) state->lens[sym++] = 8; in fixedtables()
277 while (sym < 256) state->lens[sym++] = 9; in fixedtables()
278 while (sym < 280) state->lens[sym++] = 7; in fixedtables()
279 while (sym < 288) state->lens[sym++] = 8; in fixedtables()
283 inflate_table(LENS, state->lens, 288, &(next), &(bits), state->work); in fixedtables()
287 while (sym < 32) state->lens[sym++] = 5; in fixedtables()
290 inflate_table(DISTS, state->lens, 32, &(next), &(bits), state->work); in fixedtables()
918 state->lens[order[state->have++]] = (unsigned short)BITS(3); in inflate()
922 state->lens[order[state->have++]] = 0; in inflate()
926 ret = inflate_table(CODES, state->lens, 19, &(state->next), in inflate()
[all …]
/external/zlib/src/
Dinfback.c97 while (sym < 144) state->lens[sym++] = 8;
98 while (sym < 256) state->lens[sym++] = 9;
99 while (sym < 280) state->lens[sym++] = 7;
100 while (sym < 288) state->lens[sym++] = 8;
104 inflate_table(LENS, state->lens, 288, &(next), &(bits), state->work);
108 while (sym < 32) state->lens[sym++] = 5;
111 inflate_table(DISTS, state->lens, 32, &(next), &(bits), state->work);
380 state->lens[order[state->have++]] = (unsigned short)BITS(3);
384 state->lens[order[state->have++]] = 0;
388 ret = inflate_table(CODES, state->lens, 19, &(state->next),
[all …]
Dinftrees.c32 int ZLIB_INTERNAL inflate_table(type, lens, codes, table, bits, work) in inflate_table() argument
34 unsigned short FAR *lens;
110 count[lens[sym]]++;
147 if (lens[sym] != 0) work[offs[lens[sym]]++] = (unsigned short)sym;
256 len = lens[work[sym]];
Dinflate.c276 while (sym < 144) state->lens[sym++] = 8;
277 while (sym < 256) state->lens[sym++] = 9;
278 while (sym < 280) state->lens[sym++] = 7;
279 while (sym < 288) state->lens[sym++] = 8;
283 inflate_table(LENS, state->lens, 288, &(next), &(bits), state->work);
287 while (sym < 32) state->lens[sym++] = 5;
290 inflate_table(DISTS, state->lens, 32, &(next), &(bits), state->work);
918 state->lens[order[state->have++]] = (unsigned short)BITS(3);
922 state->lens[order[state->have++]] = 0;
926 ret = inflate_table(CODES, state->lens, 19, &(state->next),
[all …]
/external/e2fsprogs/lib/blkid/
Ddevname.c403 int lens[2] = { 0, 0 }; in probe_all() local
451 lens[which] = strlen(ptname); in probe_all()
454 if (isdigit(ptname[lens[which] - 1])) { in probe_all()
462 lens[which] = 0; /* mark as checked */ in probe_all()
470 if (lens[last] && !strncmp(ptnames[last], ptname, lens[last])) { in probe_all()
486 lens[last] = 0; in probe_all()
493 if (lens[last] && strncmp(ptnames[last], ptname, lens[last])) { in probe_all()
499 lens[last] = 0; in probe_all()
504 if (lens[which]) in probe_all()
/external/icu/icu4c/source/samples/cal/
Dcal.c425 int32_t lens [DAY_COUNT]; in print_month() local
453 lens[i] = u_strlen(days[i]); in print_month()
454 width += lens[i]; in print_month()
492 indent(lens[i] + 1, stdout); in print_month()
502 pad = lens[current] - u_strlen(s); in print_month()
543 int32_t lens [DAY_COUNT]; in print_year() local
576 lens[i] = u_strlen(days[i]); in print_year()
577 width += lens[i]; in print_year()
666 indent(lens[j] + 1, stdout); in print_year()
673 pad = lens[left_current] - u_strlen(s); in print_year()
[all …]
/external/llvm/test/CodeGen/PowerPC/
D2006-07-07-ComputeMaskedBits.ll3 @lens = external global i8* ; <i8**> [#uses=1]
7 %tmp = load i8*, i8** @lens ; <i8*> [#uses=1]
/external/bsdiff/
Dbsdiff.cc117 off_t overlap,Ss,lens; in bsdiff() local
241 s=0;Ss=0;lens=0; in bsdiff()
247 if(s>Ss) { Ss=s; lens=i+1; }; in bsdiff()
250 lenf+=lens-overlap; in bsdiff()
251 lenb-=lens; in bsdiff()
/external/autotest/cli/
Dtopic_common.py653 lens = {}
661 lens[key] = max(len(self.__conv_value(key,
664 lens[key] = max(lens[key], len(KEYS_TO_NAMES_EN[key]))
665 lens[keys[-1]] = 0
667 return ' '.join(["%%-%ds" % lens[key] for key in keys])
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/bidi/
DTestStreaming.java30 public TestCase(String in, int ch, int[] np, int[][] lens, String[] msg) { in TestCase() argument
34 this.portionLens = lens; in TestCase()

1234