Home
last modified time | relevance | path

Searched refs:val (Results 1 – 18 of 18) sorted by relevance

/coreutils/src/
Dnumfmt.c340 absld (long double val) in absld() argument
342 return val < 0 ? -val : val; in absld()
350 expld (long double val, int base, int /*output */ *x) in expld() argument
354 if (val >= -LDBL_MAX && val <= LDBL_MAX) in expld()
356 while (absld (val) >= base) in expld()
359 val /= base; in expld()
364 return val; in expld()
370 simple_round_ceiling (long double val) in simple_round_ceiling() argument
372 intmax_t intval = val; in simple_round_ceiling()
373 if (intval < val) in simple_round_ceiling()
[all …]
Djoin.c843 intmax_t val; in string_to_join_field() local
845 strtol_error s_err = xstrtoimax (str, nullptr, 10, &val, ""); in string_to_join_field()
846 if (s_err == LONGINT_OVERFLOW || (s_err == LONGINT_OK && PTRDIFF_MAX < val)) in string_to_join_field()
847 val = PTRDIFF_MAX; in string_to_join_field()
848 else if (s_err != LONGINT_OK || val <= 0) in string_to_join_field()
851 return val - 1; in string_to_join_field()
914 set_join_field (ptrdiff_t *var, idx_t val) in set_join_field() argument
916 if (0 <= *var && *var != val) in set_join_field()
918 _("incompatible join fields %td, %td"), *var, val); in set_join_field()
919 *var = val; in set_join_field()
[all …]
Dtest.c63 # define test_exit(val) exit (val) argument
64 # define test_main_return(val) return val argument
68 # define test_exit(val) test_error_return = val, longjmp (test_exit_buf, 1) argument
69 # define test_main_return(val) test_exit (val) argument
Dcsplit.c1068 uintmax_t val; in parse_repeat_count() local
1069 if (xstrtoumax (str + 1, nullptr, 10, &val, "") != LONGINT_OK in parse_repeat_count()
1070 || INTMAX_MAX < val) in parse_repeat_count()
1076 p->repeat = val; in parse_repeat_count()
1147 uintmax_t val; in parse_patterns() local
1148 if (xstrtoumax (argv[i], nullptr, 10, &val, "") != LONGINT_OK in parse_patterns()
1149 || INTMAX_MAX < val) in parse_patterns()
1151 if (val == 0) in parse_patterns()
1154 if (val < last_val) in parse_patterns()
1163 if (val == last_val) in parse_patterns()
[all …]
Duname.c173 char const *val = getenv (envvar); in print_element_env() local
174 if (val) in print_element_env()
175 element = val; in print_element_env()
Dprintf.c166 TYPE val; \
171 val = ch; \
183 val = wc; \
198 val = (LIB_FUNC_EXPR); \
201 return val; \
Dexpr.c878 bool val = false; in eval2() local
922 case less_than: val = (cmp < 0); break; in eval2()
923 case less_equal: val = (cmp <= 0); break; in eval2()
924 case equal: val = (cmp == 0); break; in eval2()
925 case not_equal: val = (cmp != 0); break; in eval2()
926 case greater_equal: val = (cmp >= 0); break; in eval2()
927 case greater_than: val = (cmp > 0); break; in eval2()
934 l = int_value (val); in eval2()
Dbasenc.c749 int_fast64_t val = quad[0]; in z85_encode() local
750 val = (val << 24) + (quad[1] << 16) + (quad[2] << 8) + quad[3]; in z85_encode()
754 int c = val % 85; in z85_encode()
755 val /= 85; in z85_encode()
866 int_fast64_t val = Z85_LO_CTX_TO_32BIT_VAL (ctx); in z85_decode_ctx() local
871 val += Z85_HI_CTX_TO_32BIT_VAL (ctx); in z85_decode_ctx()
872 if ((val >> 24) & ~0xFF) in z85_decode_ctx()
875 *out++ = val >> 24; in z85_decode_ctx()
876 *out++ = (val >> 16) & 0xFF; in z85_decode_ctx()
877 *out++ = (val >> 8) & 0xFF; in z85_decode_ctx()
[all …]
Ddd.c1493 char const *val = strchr (name, '='); in scanargs() local
1495 if (val == nullptr) in scanargs()
1500 val++; in scanargs()
1503 input_file = val; in scanargs()
1505 output_file = val; in scanargs()
1507 conversions_mask |= parse_symbols (val, conversions, false, in scanargs()
1510 input_flags |= parse_symbols (val, flags, false, in scanargs()
1513 output_flags |= parse_symbols (val, flags, false, in scanargs()
1516 status_level = parse_symbols (val, statuses, true, in scanargs()
1521 intmax_t n = parse_integer (val, &invalid); in scanargs()
[all …]
Dstat.c1434 uint64_t *val; in get_birthtime() local
1436 if (nvlist_lookup_uint64_array (response, A_CRTIME, &val, &n) == 0 in get_birthtime()
1438 && val[0] <= TYPE_MAXIMUM (time_t) in get_birthtime()
1439 && val[1] < 1000000000 * 2 /* for leap seconds */) in get_birthtime()
1441 ts.tv_sec = val[0]; in get_birthtime()
1442 ts.tv_nsec = val[1]; in get_birthtime()
Dcp.c908 enum File_attribute val; in decode_preserve_arg() local
915 val = XARGMATCH (on_off ? "--preserve" : "--no-preserve", in decode_preserve_arg()
917 switch (val) in decode_preserve_arg()
Dsort.c228 int val; member
1315 monthtab[i].val = i + 1; in inittables()
2068 return monthtab[ix].val; in getmonth()
4159 parse_field_count (char const *string, size_t *val, char const *msgid) in parse_field_count() argument
4168 *val = n; in parse_field_count()
4169 if (*val == n) in parse_field_count()
4174 *val = SIZE_MAX; in parse_field_count()
Dod.c599 simple_strtoi (char const *s, char const **p, int *val) in simple_strtoi() argument
607 *val = sum; in simple_strtoi()
Dstty.c1204 int val = ! reversed; in apply_settings() local
1209 if (ioctl (STDIN_FILENO, TIOCEXT, &val) != 0) in apply_settings()
Dls.c1878 uintmax_t val; in decode_line_length() local
1882 switch (xstrtoumax (spec, nullptr, 0, &val, "")) in decode_line_length()
1885 return val <= MIN (PTRDIFF_MAX, SIZE_MAX) ? val : 0; in decode_line_length()
/coreutils/tests/
DCoreutils.pm325 my ($type, $val) = each %$io_spec;
335 $expect->{$type} = $val;
341 my $t = ref $val;
344 @$val == 2
348 foreach my $e (@$val)
363 my ($ff, $val) = each %$e;
367 $e->{$new_ff} = $val;
377 $expect->{$type} = $val;
384 if $val !~ /^\d+$/;
386 $expect->{EXIT} = $val;
[all …]
/coreutils/gl/lib/
Drandperm.c85 size_t val; member
129 v1->index = v1->val = i; in sparse_swap()
134 v2->index = v2->val = j; in sparse_swap()
137 size_t t = v1->val; in sparse_swap()
138 v1->val = v2->val; in sparse_swap()
139 v2->val = t; in sparse_swap()
145 v[i] = v1->val; in sparse_swap()
/coreutils/tests/uniq/
Duniq.pl56 my $val = $e->{$k};
58 if (defined $val)
60 $val =~ /\0/
64 $val =~ s/\n/\0/g;
65 $tmp = {$k => $val};