Home
last modified time | relevance | path

Searched refs:s (Results 1 – 20 of 20) sorted by relevance

/stdlib/
A Dtst-random.c62 for (s = 0; s < nseq; ++s) in do_test()
64 srandom ( seed[s] ); in do_test()
66 rnd[s][i] = random (); in do_test()
71 for (s = 0; s < nseq; ++s) in do_test()
73 srandom (seed[s]); in do_test()
75 if (rnd[s][i] != random ()) in do_test()
83 for (s = 1; s < nseq; ++s) in do_test()
86 oldstate[s] = initstate (seed[s], state[s], degree); in do_test()
91 for (s = 1; s < nseq - 1; ++s) in do_test()
92 if (state[s] != oldstate[s + 1]) in do_test()
[all …]
A Dtst-strtod-nan-locale-main.c37 test_strto ## FSUF (const char * loc, CHAR * s) \
40 FTYPE val = FNX (FSUF) (s, &ep); \
63 CHAR s[7]; in GEN_TEST_STRTOD_FOREACH() local
64 s[0] = L_('N'); in GEN_TEST_STRTOD_FOREACH()
65 s[1] = L_('A'); in GEN_TEST_STRTOD_FOREACH()
66 s[2] = L_('N'); in GEN_TEST_STRTOD_FOREACH()
67 s[3] = L_('('); in GEN_TEST_STRTOD_FOREACH()
68 s[4] = L_('A') + i - 10; in GEN_TEST_STRTOD_FOREACH()
69 s[5] = L_(')'); in GEN_TEST_STRTOD_FOREACH()
70 s[6] = 0; in GEN_TEST_STRTOD_FOREACH()
[all …]
A Dmsort.c30 size_t s; member
56 const size_t s = p->s; in msort_with_tmp() local
103 tmp += s; in msort_with_tmp()
107 b1 += s; in msort_with_tmp()
113 b2 += s; in msort_with_tmp()
144 b1 += s; in msort_with_tmp()
150 b2 += s; in msort_with_tmp()
171 if (s > 32) in __qsort_r()
233 p.s = s; in __qsort_r()
238 if (s > 32) in __qsort_r()
[all …]
A Dtst-strtol-locale-main.c59 CHAR s[2]; in test_one_locale() local
60 s[0] = L_('A') + i - 10; in test_one_locale()
61 s[1] = 0; in test_one_locale()
62 TEST (loc, s, i, l, long int, "%ld"); in test_one_locale()
63 TEST (loc, s, i, ul, unsigned long int, "%lu"); in test_one_locale()
64 TEST (loc, s, i, ll, long long int, "%lld"); in test_one_locale()
66 s[0] = L_('a') + i - 10; in test_one_locale()
67 s[1] = 0; in test_one_locale()
68 TEST (loc, s, i, l, long int, "%ld"); in test_one_locale()
69 TEST (loc, s, i, ul, unsigned long int, "%lu"); in test_one_locale()
[all …]
A Dmblen.c33 mblen (const char *s, size_t n) in mblen() argument
40 if (s == NULL) in mblen()
52 else if (*s == '\0') in mblen()
59 result = __mbrtowc (NULL, s, n, &state); in mblen()
A Dmbtowc.c34 mbtowc (wchar_t *pwc, const char *s, size_t n) in mbtowc() argument
42 if (s == NULL) in mbtowc()
55 else if (*s == '\0') in mbtowc()
63 result = __mbrtowc (pwc, s, n, &state); in mbtowc()
A Dwctomb.c36 wctomb (char *s, wchar_t wchar) in wctomb() argument
41 if (s == NULL) in wctomb()
55 return __wcrtomb (s, wchar, &__wctomb_state); in wctomb()
A Dtest-a64l.c53 const char *s; in do_test() local
68 s = l64a (at->value); in do_test()
69 if (strcmp (s, at->base64) == 0) in do_test()
73 printf ("\tBAD\n returns \"%s\", expected \"%s\"\n", s, at->base64); in do_test()
A Dstrtol_l.c288 save = s = nptr; in INTERNAL()
292 ++s; in INTERNAL()
301 ++s; in INTERNAL()
304 ++s; in INTERNAL()
311 s += 2; in INTERNAL()
321 save = s; in INTERNAL()
334 end = s; in INTERNAL()
377 c = *s; in INTERNAL()
385 if (s == end) in INTERNAL()
433 if (s == end) in INTERNAL()
[all …]
A Dgen-tst-strtod-round.c46 string_to_fp (mpfr_t f, const char *s, mpfr_rnd_t rnd) in string_to_fp() argument
52 int r0 = mpfr_strtofr (f2, s, NULL, 0, rnd); in string_to_fp()
58 int r = mpfr_strtofr (f, s, NULL, 0, rnd); in string_to_fp()
83 int r = string_to_fp (f, s, MPFR_RNDD); in round_str()
101 string_to_fp (f, s, MPFR_RNDN); in round_str()
105 string_to_fp (f, s, MPFR_RNDZ); in round_str()
109 string_to_fp (f, s, MPFR_RNDU); in round_str()
119 round_for_all (FILE *fout, const char *s) in round_for_all() argument
138 for (p = s; *p; p++) in round_for_all()
141 if ((p - s) % 60 == 59 && p[1]) in round_for_all()
[all …]
A Dwcstombs.c27 wcstombs (char *s, const wchar_t *pwcs, size_t n) in wcstombs() argument
34 return __wcsrtombs (s, &pwcs, n, &state); in wcstombs()
A Dmbstowcs.c27 mbstowcs (wchar_t *pwcs, const char *s, size_t n) in mbstowcs() argument
33 return __mbsrtowcs (pwcs, &s, n, &state); in mbstowcs()
A Dtst-strtod-underflow.c58 const char *s; member
137 test_in_one_mode (const char *s, enum underflow_case c, int rm, in test_in_one_mode() argument
143 double d = strtod (s, NULL); in test_in_one_mode()
151 s, mode_name, d, got_errno, got_fe_underflow ? "" : "no "); in test_in_one_mode()
194 result |= test_in_one_mode (tests[i].s, tests[i].c, fe_tonearest, in do_test()
199 result |= test_in_one_mode (tests[i].s, tests[i].c, FE_DOWNWARD, in do_test()
207 result |= test_in_one_mode (tests[i].s, tests[i].c, FE_TOWARDZERO, in do_test()
215 result |= test_in_one_mode (tests[i].s, tests[i].c, FE_UPWARD, in do_test()
A Dstrfmon.c25 __strfmon (char *s, size_t maxsize, const char *format, ...) in __strfmon() argument
31 ssize_t res = __vstrfmon_l_internal (s, maxsize, _NL_CURRENT_LOCALE, in __strfmon()
A Dtst-strfrom.h52 const char *s; member
58 #define TEST(s, fmt, size, rc, val) \ argument
60 s, fmt, size, rc, { GEN_TEST_STRTOD_FOREACH (ENTRY, val) } \
84 rc1 = (strcmp (sbuf, stest[i].s) != 0) || (rc != stest[i].rc); \
88 sbuf, rc, stest[i].s, stest[i].rc); \
95 rc1 = (strcmp (buf, tests[i].s) != 0) || (rc != tests[i].rc); \
99 buf, rc, tests[i].s, tests[i].rc); \
A Dtst-strtod-round-skeleton.c140 #define TEST(s, \ argument
152 L_ (s), \
184 const CHAR *s; member
208 FTYPE f = STRTO (FSUF) (s, NULL); \
218 "%s (%s)\n", s, fstr, efstr, mode_name); \
233 "not %d\n", s, inexact_raised, \
249 "not %d\n", s, overflow_raised, \
261 test_in_one_mode (const CHAR *s, const struct test_results *expected, in test_in_one_mode() argument
297 result |= test_in_one_mode (tests[i].s, &tests[i].r[modes[0].rnd_i], in do_test()
304 result |= test_in_one_mode (tests[i].s, &tests[i].r[m->rnd_i], in do_test()
A Dstrfmon_l.c36 if (dest >= s + maxsize - 1) \
79 __vstrfmon_l_internal (char *s, size_t maxsize, locale_t loc, in __vstrfmon_l_internal() argument
88 dest = s; in __vstrfmon_l_internal()
231 if (width >= maxsize - (dest - s)) in __vstrfmon_l_internal()
531 _IO_str_init_static_internal (&f, dest, (s + maxsize) - dest, dest); in __vstrfmon_l_internal()
534 s[maxsize - 1] = '\0'; in __vstrfmon_l_internal()
551 if (s[maxsize - 1] != '\0') in __vstrfmon_l_internal()
623 return dest - s; in __vstrfmon_l_internal()
627 ___strfmon_l (char *s, size_t maxsize, locale_t loc, const char *format, ...) in ___strfmon_l() argument
633 ssize_t res = __vstrfmon_l_internal (s, maxsize, loc, format, ap, 0); in ___strfmon_l()
A DVersions60 # s*
84 # s*
118 # s*
A Dlonglong.h826 __a.s.low = (al); __a.s.high = (ah); \
827 __b.s.low = (bl); __b.s.high = (bh); \
829 (sl) = __s.s.low; (sh) = __s.s.high; \
834 __a.s.low = (al); __a.s.high = (ah); \
835 __b.s.low = (bl); __b.s.high = (bh); \
837 (sl) = __s.s.low; (sh) = __s.s.high; \
1545 w1 = __w.s.high; \
1546 w0 = __w.s.low; \
1676 umul_ppmm (__w.s.high, __w.s.low, u, v); \
A Disomac.c231 xstrndup (const char *s, size_t n) in xstrndup() argument
240 return memcpy (new, s, len); in xstrndup()

Completed in 33 milliseconds