| /third_party/ulib/musl/src/multibyte/ |
| A D | mbsrtowcs.c | 30 if (!*s) in mbsrtowcs() 32 c = *s++; in mbsrtowcs() 43 if (*s - 1u < 0x7f && (uintptr_t)s % 4 == 0) { in mbsrtowcs() 50 s++; in mbsrtowcs() 59 s--; in mbsrtowcs() 62 s++; in mbsrtowcs() 68 s++; in mbsrtowcs() 74 s++; in mbsrtowcs() 86 if (*s - 1u < 0x7f && (uintptr_t)s % 4 == 0) { in mbsrtowcs() 105 s--; in mbsrtowcs() [all …]
|
| A D | wcrtomb.c | 7 if (!s) in wcrtomb() 10 *s = wc; in wcrtomb() 17 *s = wc; in wcrtomb() 20 *s++ = 0xc0 | (wc >> 6); in wcrtomb() 21 *s = 0x80 | (wc & 0x3f); in wcrtomb() 24 *s++ = 0xe0 | (wc >> 12); in wcrtomb() 25 *s++ = 0x80 | ((wc >> 6) & 0x3f); in wcrtomb() 26 *s = 0x80 | (wc & 0x3f); in wcrtomb() 29 *s++ = 0xf0 | (wc >> 18); in wcrtomb() 31 *s++ = 0x80 | ((wc >> 6) & 0x3f); in wcrtomb() [all …]
|
| A D | mbtowc.c | 11 if (!s) in mbtowc() 18 if (*s < 0x80) in mbtowc() 19 return !!(*wc = *s); in mbtowc() 22 if (*s - SA > SB - SA) in mbtowc() 24 c = bittab[*s++ - SA]; in mbtowc() 32 if (OOB(c, *s)) in mbtowc() 34 c = c << 6 | (*s++ - 0x80); in mbtowc() 40 if (*s - 0x80u >= 0x40) in mbtowc() 42 c = c << 6 | (*s++ - 0x80); in mbtowc() 48 if (*s - 0x80u >= 0x40) in mbtowc() [all …]
|
| /third_party/ulib/musl/src/string/ |
| A D | memcpy.c | 25 *d++ = *s++; in memcpy() 38 s += 8; in memcpy() 43 s += 4; in memcpy() 50 *d = *s; in memcpy() 107 *d++ = *s++; in memcpy() 108 *d++ = *s++; in memcpy() 109 *d++ = *s++; in memcpy() 110 *d++ = *s++; in memcpy() 111 *d++ = *s++; in memcpy() 112 *d++ = *s++; in memcpy() [all …]
|
| A D | memset.c | 7 unsigned char* s = dest; in memset() local 16 s[0] = s[n - 1] = c; in memset() 19 s[1] = s[n - 2] = c; in memset() 20 s[2] = s[n - 3] = c; in memset() 23 s[3] = s[n - 4] = c; in memset() 32 k = -(uintptr_t)s & 3; in memset() 33 s += k; in memset() 49 *(u32*)(s + 0) = c32; in memset() 73 s += k; in memset() 89 for (; n; n--, s++) in memset() [all …]
|
| A D | strchrnul.c | 11 char* __strchrnul(const char* s, int c) { in __strchrnul() argument 14 return (char*)s + strlen(s); in __strchrnul() 16 for (; (uintptr_t)s % ALIGN; s++) in __strchrnul() 17 if (!*s || *(unsigned char*)s == c) in __strchrnul() 18 return (char*)s; in __strchrnul() 19 const size_t* w = (const void*)s; in __strchrnul() 28 for (s = (const void*)w; *s && *(unsigned char*)s != c; s++) in __strchrnul() 30 return (char*)s; in __strchrnul()
|
| A D | strlen.c | 12 size_t strlen(const char* s) { in strlen() argument 13 const char* a = s; in strlen() 14 for (; (uintptr_t)s % ALIGN; s++) in strlen() 15 if (!*s) in strlen() 16 return s - a; in strlen() 17 const size_t* w = (const void*)s; in strlen() 25 for (s = (const void*)w; *s; s++) in strlen() 27 return s - a; in strlen()
|
| A D | memmove.c | 10 const char* s = src; in memmove() local 12 if (d == s) in memmove() 14 if (s + n <= d || d + n <= s) in memmove() 15 return __unsanitized_memcpy(d, s, n); in memmove() 17 if (d < s) { in memmove() 18 if ((uintptr_t)s % WS == (uintptr_t)d % WS) { in memmove() 22 *d++ = *s++; in memmove() 25 *(WT*)d = *(WT*)s; in memmove() 28 *d++ = *s++; in memmove() 34 d[n] = s[n]; in memmove() [all …]
|
| A D | wcscspn.c | 3 size_t wcscspn(const wchar_t* s, const wchar_t* c) { in wcscspn() argument 6 return wcslen(s); in wcscspn() 8 return (s = wcschr(a = s, *c)) ? s - a : wcslen(a); in wcscspn() 9 for (a = s; *s && !wcschr(c, *s); s++) in wcscspn() 11 return s - a; in wcscspn()
|
| /third_party/ulib/musl/src/passwd/ |
| A D | getpwent_a.c | 5 for (x = 0; **s - '0' < 10U; ++*s) in atou() 12 char* s; in __getpwent_a() local 26 if (!(s = strchr(s, ':'))) in __getpwent_a() 29 *s++ = 0; in __getpwent_a() 31 if (!(s = strchr(s, ':'))) in __getpwent_a() 34 *s++ = 0; in __getpwent_a() 39 *s++ = 0; in __getpwent_a() 44 *s++ = 0; in __getpwent_a() 46 if (!(s = strchr(s, ':'))) in __getpwent_a() 49 *s++ = 0; in __getpwent_a() [all …]
|
| A D | getgrent_a.c | 5 for (x = 0; **s - '0' < 10U; ++*s) in atou() 13 char *s, *mems; in __getgrent_a() local 28 if (!(s = strchr(s, ':'))) in __getgrent_a() 31 *s++ = 0; in __getgrent_a() 33 if (!(s = strchr(s, ':'))) in __getgrent_a() 36 *s++ = 0; in __getgrent_a() 41 *s++ = 0; in __getgrent_a() 42 mems = s; in __getgrent_a() 46 for (*nmem = !!*s; *s; s++) in __getgrent_a() 60 for (s = mems, i = 0; *s; s++) in __getgrent_a() [all …]
|
| /third_party/ulib/musl/third_party/math/ |
| A D | erfl.c | 252 s * (pa[1] + in erfc1() 253 s * (pa[2] + s * (pa[3] + s * (pa[4] + s * (pa[5] + s * (pa[6] + s * pa[7])))))); in erfc1() 255 s * (qa[1] + s * (qa[2] + s * (qa[3] + s * (qa[4] + s * (qa[5] + s * (qa[6] + s)))))); in erfc1() 273 s * (ra[4] + s * (ra[5] + s * (ra[6] + s * (ra[7] + s * ra[8]))))))); in erfc2() 279 s * (sa[5] + s * (sa[6] + s * (sa[7] + s * (sa[8] + s)))))))); in erfc2() 283 s * (rb[2] + s * (rb[3] + s * (rb[4] + s * (rb[5] + s * (rb[6] + s * rb[7])))))); in erfc2() 285 s * (sb[1] + s * (sb[2] + s * (sb[3] + s * (sb[4] + s * (sb[5] + s * (sb[6] + s)))))); in erfc2() 287 R = rc[0] + s * (rc[1] + s * (rc[2] + s * (rc[3] + s * (rc[4] + s * rc[5])))); in erfc2() 288 S = sc[0] + s * (sc[1] + s * (sc[2] + s * (sc[3] + s * (sc[4] + s)))); in erfc2() 311 y = r / s; in erfl() [all …]
|
| A D | erff.c | 87 float_t s, P, Q; in erfc1() local 90 P = pa0 + s * (pa1 + s * (pa2 + s * (pa3 + s * (pa4 + s * (pa5 + s * pa6))))); in erfc1() 91 Q = 1 + s * (qa1 + s * (qa2 + s * (qa3 + s * (qa4 + s * (qa5 + s * qa6))))); in erfc1() 96 float_t s, R, S; in erfc2() local 103 s = 1 / (x * x); in erfc2() 105 R = ra0 + s * (ra1 + s * (ra2 + s * (ra3 + s * (ra4 + s * (ra5 + s * (ra6 + s * ra7)))))); in erfc2() 108 s * (sa2 + s * (sa3 + s * (sa4 + s * (sa5 + s * (sa6 + s * (sa7 + s * sa8))))))); in erfc2() 110 R = rb0 + s * (rb1 + s * (rb2 + s * (rb3 + s * (rb4 + s * (rb5 + s * rb6))))); in erfc2() 111 S = 1.0f + s * (sb1 + s * (sb2 + s * (sb3 + s * (sb4 + s * (sb5 + s * (sb6 + s * sb7)))))); in erfc2() 138 y = r / s; in erff() [all …]
|
| A D | erf.c | 177 double_t s, P, Q; in erfc1() local 179 s = fabs(x) - 1; in erfc1() 180 P = pa0 + s * (pa1 + s * (pa2 + s * (pa3 + s * (pa4 + s * (pa5 + s * pa6))))); in erfc1() 181 Q = 1 + s * (qa1 + s * (qa2 + s * (qa3 + s * (qa4 + s * (qa5 + s * qa6))))); in erfc1() 193 s = 1 / (x * x); in erfc2() 195 R = ra0 + s * (ra1 + s * (ra2 + s * (ra3 + s * (ra4 + s * (ra5 + s * (ra6 + s * ra7)))))); in erfc2() 198 s * (sa2 + s * (sa3 + s * (sa4 + s * (sa5 + s * (sa6 + s * (sa7 + s * sa8))))))); in erfc2() 200 R = rb0 + s * (rb1 + s * (rb2 + s * (rb3 + s * (rb4 + s * (rb5 + s * rb6))))); in erfc2() 201 S = 1.0 + s * (sb1 + s * (sb2 + s * (sb3 + s * (sb4 + s * (sb5 + s * (sb6 + s * sb7)))))); in erfc2() 228 y = r / s; in erf() [all …]
|
| /third_party/ulib/musl/src/locale/ |
| A D | pleval.c | 33 s++; in skipspace() 43 s = skipspace(s); in evalprim() 55 s = evalexpr(st, s + 1, d); in evalprim() 61 s = evalprim(st, s + 1, d); in evalprim() 146 s = evalprim(st, s, d); in evalbinop() 147 s = parseop(st, s); in evalbinop() 158 s = evalbinop(st, s, prec[op], d); in evalbinop() 168 s = evalbinop(st, s, 0, d); in evalexpr() 172 s = evalexpr(st, s + 1, d); in evalexpr() 176 s = evalexpr(st, s + 1, d); in evalexpr() [all …]
|
| /third_party/ulib/musl/src/time/ |
| A D | strptime.c | 17 for (; *s && isspace(*s); s++) in strptime() 22 s++; in strptime() 49 s = strptime(s, nl_langinfo(D_T_FMT), tm); in strptime() 50 if (!s) in strptime() 66 s = strptime(s, "%m/%d/%y", tm); in strptime() 98 for (; *s && isspace(*s); s++) in strptime() 117 s = strptime(s, nl_langinfo(T_FMT_AMPM), tm); in strptime() 122 s = strptime(s, "%H:%M", tm); in strptime() 132 s = strptime(s, "%H:%M:%S", tm); in strptime() 149 s = strptime(s, nl_langinfo(D_FMT), tm); in strptime() [all …]
|
| /third_party/ulib/musl/include/sys/ |
| A D | wait.h | 34 #define WEXITSTATUS(s) (((s)&0xff00) >> 8) argument 35 #define WTERMSIG(s) ((s)&0x7f) argument 36 #define WSTOPSIG(s) WEXITSTATUS(s) argument 37 #define WCOREDUMP(s) ((s)&0x80) argument 38 #define WIFEXITED(s) (!WTERMSIG(s)) argument 39 #define WIFSTOPPED(s) ((short)((((s)&0xffff) * 0x10001) >> 8) > 0x7f00) argument 40 #define WIFSIGNALED(s) (((s)&0xffff) - 1U < 0xffu) argument 41 #define WIFCONTINUED(s) ((s) == 0xffff) argument
|
| /third_party/ulib/jemalloc/include/jemalloc/ |
| A D | jemalloc_macros.h | 60 # define JEMALLOC_ATTR(s) argument 61 # define JEMALLOC_ALIGNED(s) __declspec(align(s)) argument 78 # define JEMALLOC_SECTION(s) __declspec(allocate(s)) argument 86 # define JEMALLOC_ATTR(s) __attribute__((s)) argument 87 # define JEMALLOC_ALIGNED(s) JEMALLOC_ATTR(aligned(s)) argument 89 # define JEMALLOC_ALLOC_SIZE(s) JEMALLOC_ATTR(alloc_size(s)) argument 99 # define JEMALLOC_FORMAT_PRINTF(s, i) JEMALLOC_ATTR(format(gnu_printf, s, i)) argument 101 # define JEMALLOC_FORMAT_PRINTF(s, i) JEMALLOC_ATTR(format(printf, s, i)) argument 107 # define JEMALLOC_SECTION(s) JEMALLOC_ATTR(section(s)) argument 111 # define JEMALLOC_ATTR(s) argument [all …]
|
| /third_party/uapp/dash/src/ |
| A D | mystring.c | 114 sh_error(illnum, s); in badnum() 129 badnum(s); in atomax() 135 if (p == s && base) in atomax() 136 badnum(s); in atomax() 142 badnum(s); in atomax() 158 number(const char *s) in number() argument 163 badnum(s); in number() 200 len = strchrnul(s, '\'') - s; in single_quote() 207 s += len; in single_quote() 220 s += len; in single_quote() [all …]
|
| /third_party/lib/acpica/source/include/acpica/ |
| A D | acmacros.h | 103 #define ACPI_MOVE_32_TO_16(d, s) ACPI_MOVE_16_TO_16(d, s) /* Truncate to 16 */ argument 118 #define ACPI_MOVE_64_TO_16(d, s) ACPI_MOVE_16_TO_16(d, s) /* Truncate to 16 */ argument 120 #define ACPI_MOVE_64_TO_32(d, s) ACPI_MOVE_32_TO_32(d, s) /* Truncate to 32 */ argument 141 #define ACPI_MOVE_16_TO_16(d, s) *(UINT16 *)(void *)(d) = *(UINT16 *)(void *)(s) argument 142 #define ACPI_MOVE_16_TO_32(d, s) *(UINT32 *)(void *)(d) = *(UINT16 *)(void *)(s) argument 143 #define ACPI_MOVE_16_TO_64(d, s) *(UINT64 *)(void *)(d) = *(UINT16 *)(void *)(s) argument 148 #define ACPI_MOVE_32_TO_32(d, s) *(UINT32 *)(void *)(d) = *(UINT32 *)(void *)(s) argument 149 #define ACPI_MOVE_32_TO_64(d, s) *(UINT64 *)(void *)(d) = *(UINT32 *)(void *)(s) argument 155 #define ACPI_MOVE_64_TO_64(d, s) *(UINT64 *)(void *)(d) = *(UINT64 *)(void *)(s) argument 383 #define ACPI_ERROR_NAMESPACE(s, e) AcpiUtNamespaceError (AE_INFO, s, e); argument [all …]
|
| /third_party/ulib/musl/src/stdlib/ |
| A D | strtol.c | 13 f.buf = f.rpos = (void*)s; in strtox() 14 if ((size_t)s > (size_t)-1 / 2) in strtox() 17 f.rend = (unsigned char*)s + (size_t)-1 / 2; in strtox() 23 *p = (char*)s + cnt; in strtox() 29 return strtox(s, p, base, ULLONG_MAX); in strtoull() 33 return strtox(s, p, base, LLONG_MIN); in strtoll() 37 return strtox(s, p, base, ULONG_MAX); in strtoul() 40 long strtol(const char* restrict s, char** restrict p, int base) { in strtol() argument 41 return strtox(s, p, base, 0UL + LONG_MIN); in strtol() 45 return strtoll(s, p, base); in strtoimax() [all …]
|
| /third_party/ulib/musl/src/network/ |
| A D | inet_pton.c | 24 v = 10 * v + s[j] - '0'; in inet_pton() 28 if (s[j] == 0 && i == 3) in inet_pton() 30 if (s[j] != '.') in inet_pton() 32 s += j + 1; in inet_pton() 40 if (*s == ':' && *++s != ':') in inet_pton() 44 if (s[0] == ':' && brk < 0) { in inet_pton() 47 if (!*++s) in inet_pton() 58 if (!s[j] && (brk >= 0 || i == 7)) in inet_pton() 62 if (s[j] != ':') { in inet_pton() 63 if (s[j] != '.' || (i < 6 && brk < 0)) in inet_pton() [all …]
|
| A D | gai_strerror.c | 19 const char* s; in gai_strerror() local 20 for (s = msgs, ecode++; ecode && *s; ecode++, s++) in gai_strerror() 21 for (; *s; s++) in gai_strerror() 23 if (!*s) in gai_strerror() 24 s++; in gai_strerror() 25 return LCTRANS_CUR(s); in gai_strerror()
|
| /third_party/ulib/musl/third_party/tre/ |
| A D | regerror.c | 29 const char* s; in regerror() local 30 for (s = messages; e && *s; e--, s += strlen(s) + 1) in regerror() 32 if (!*s) in regerror() 33 s++; in regerror() 34 s = LCTRANS_CUR(s); in regerror() 35 return 1 + snprintf(buf, size, "%s", s); in regerror()
|
| /third_party/ulib/jemalloc/test/unit/ |
| A D | zero.c | 11 uint8_t *s; in test_zero() local 16 s = (uint8_t *)mallocx(sz_min, 0); in test_zero() 19 for (sz = sallocx(s, 0); sz <= sz_max; in test_zero() 22 assert_u_eq(s[0], MAGIC, in test_zero() 25 assert_u_eq(s[sz_prev-1], MAGIC, in test_zero() 31 assert_u_eq(s[i], 0x0, in test_zero() 34 s[i] = MAGIC; in test_zero() 37 if (xallocx(s, sz+1, 0, 0) == sz) { in test_zero() 38 s = (uint8_t *)rallocx(s, sz+1, 0); in test_zero() 39 assert_ptr_not_null((void *)s, in test_zero() [all …]
|