Home
last modified time | relevance | path

Searched refs:d (Results 1 – 25 of 98) sorted by relevance

1234

/third_party/ulib/musl/src/string/
A Dmemcpy.c25 *d++ = *s++; in memcpy()
37 d += 8; in memcpy()
42 d += 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 Dmemmove.c9 char* d = dest; in memmove() local
12 if (d == s) in memmove()
13 return d; in memmove()
14 if (s + n <= d || d + n <= s) in memmove()
17 if (d < s) { in memmove()
19 while ((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 Dstpcpy.c11 char* __stpcpy(char* restrict d, const char* restrict s) { in __stpcpy() argument
16 if ((uintptr_t)s % ALIGN == (uintptr_t)d % ALIGN) { in __stpcpy()
17 for (; (uintptr_t)s % ALIGN; s++, d++) in __stpcpy()
18 if (!(*d = *s)) in __stpcpy()
19 return d; in __stpcpy()
20 size_t* wd = (void*)d; in __stpcpy()
24 d = (void*)wd; in __stpcpy()
28 for (; (*d = *s); s++, d++) in __stpcpy()
31 return d; in __stpcpy()
A Dstrlcpy.c12 size_t strlcpy(char* d, const char* s, size_t n) { in strlcpy() argument
13 char* d0 = d; in strlcpy()
21 if (((uintptr_t)s & ALIGN) == ((uintptr_t)d & ALIGN)) { in strlcpy()
22 for (; ((uintptr_t)s & ALIGN) && n && (*d = *s); n--, s++, d++) in strlcpy()
25 size_t* wd = (void*)d; in strlcpy()
29 d = (void*)wd; in strlcpy()
34 for (; n && (*d = *s); n--, s++, d++) in strlcpy()
36 *d = 0; in strlcpy()
38 return d - d0 + strlen(s); in strlcpy()
A Dstpncpy.c11 char* __stpncpy(char* restrict d, const char* restrict s, size_t n) { in __stpncpy() argument
16 ((uintptr_t)s & ALIGN) == ((uintptr_t)d & ALIGN)) { in __stpncpy()
17 for (; ((uintptr_t)s & ALIGN) && n && (*d = *s); n--, s++, d++) in __stpncpy()
21 size_t* wd = (void*)d; in __stpncpy()
25 d = (void*)wd; in __stpncpy()
28 for (; n && (*d = *s); n--, s++, d++) in __stpncpy()
31 memset(d, 0, n); in __stpncpy()
32 return d; in __stpncpy()
A Dstrncat.c3 char* strncat(char* restrict d, const char* restrict s, size_t n) { in strncat() argument
4 char* a = d; in strncat()
5 d += strlen(d); in strncat()
7 n--, *d++ = *s++; in strncat()
8 *d++ = 0; in strncat()
A Dmemccpy.c13 unsigned char* d = dest; in memccpy() local
21 ((uintptr_t)s & ALIGN) == ((uintptr_t)d & ALIGN)) { in memccpy()
22 for (; ((uintptr_t)s & ALIGN) && n && (*d = *s) != c; n--, s++, d++) in memccpy()
27 size_t* wd = (void*)d; in memccpy()
31 d = (void*)wd; in memccpy()
34 for (; n && (*d = *s) != c; n--, s++, d++) in memccpy()
38 return d + 1; in memccpy()
A Dwcsncat.c3 wchar_t* wcsncat(wchar_t* restrict d, const wchar_t* restrict s, size_t n) { in wcsncat() argument
4 wchar_t* a = d; in wcsncat()
5 d += wcslen(d); in wcsncat()
7 n--, *d++ = *s++; in wcsncat()
8 *d++ = 0; in wcsncat()
A Dstrndup.c6 char* d = malloc(l + 1); in strndup() local
7 if (!d) in strndup()
9 memcpy(d, s, l); in strndup()
10 d[l] = 0; in strndup()
11 return d; in strndup()
A Dwmemmove.c3 wchar_t* wmemmove(wchar_t* d, const wchar_t* s, size_t n) { in wmemmove() argument
4 wchar_t* d0 = d; in wmemmove()
5 if ((size_t)(d - s) < n) in wmemmove()
7 d[n] = s[n]; in wmemmove()
10 *d++ = *s++; in wmemmove()
A Dwcsncpy.c3 wchar_t* wcsncpy(wchar_t* restrict d, const wchar_t* restrict s, size_t n) { in wcsncpy() argument
4 wchar_t* a = d; in wcsncpy()
6 n--, *d++ = *s++; in wcsncpy()
7 wmemset(d, 0, n); in wcsncpy()
/third_party/ulib/musl/src/locale/
A Diconv.c159 unsigned c, d; in iconv() local
291 if (d - 0x40 >= 191 || d == 127) { in iconv()
307 for (d = 0; d <= c;) { in iconv()
311 if (gb18030[i][j] - d <= c - d) in iconv()
368 c = big5[c][d] | (c == 0x27 && (d == 0x3a || d == 0x3c || d == 0x42)) << 17; in iconv()
385 d = d - 'A'; in iconv()
387 d = d - 'a' + 26; in iconv()
389 d = d - 0x81 + 52; in iconv()
397 for (d = 0xac00; d <= c;) { in iconv()
401 if (ksc[i][j] - d <= c - d) in iconv()
[all …]
A Dpleval.c37 static const char* evalexpr(struct st* st, const char* s, int d);
41 if (--d < 0) in evalprim()
55 s = evalexpr(st, s + 1, d); in evalprim()
61 s = evalprim(st, s + 1, d); in evalprim()
145 d--; in evalbinop()
146 s = evalprim(st, s, d); in evalbinop()
158 s = evalbinop(st, s, prec[op], d); in evalbinop()
166 if (--d < 0) in evalexpr()
168 s = evalbinop(st, s, 0, d); in evalexpr()
172 s = evalexpr(st, s + 1, d); in evalexpr()
[all …]
/third_party/lib/acpica/source/include/acpica/
A Dacmacros.h93 #define ACPI_MOVE_16_TO_32(d, s) {(*(UINT32 *)(void *)(d))=0;\ argument
97 #define ACPI_MOVE_16_TO_64(d, s) {(*(UINT64 *)(void *)(d))=0;\ argument
103 #define ACPI_MOVE_32_TO_16(d, s) ACPI_MOVE_16_TO_16(d, s) /* Truncate to 16 */ argument
110 #define ACPI_MOVE_32_TO_64(d, s) {(*(UINT64 *)(void *)(d))=0;\ argument
141 #define ACPI_MOVE_16_TO_16(d, s) *(UINT16 *)(void *)(d) = *(UINT16 *)(void *)(s) argument
169 #define ACPI_MOVE_16_TO_32(d, s) {(*(UINT32 *)(void *)(d)) = 0; ACPI_MOVE_16_TO_16(d, s);} argument
170 #define ACPI_MOVE_16_TO_64(d, s) {(*(UINT64 *)(void *)(d)) = 0; ACPI_MOVE_16_TO_16(d, s);} argument
181 #define ACPI_MOVE_32_TO_64(d, s) {(*(UINT64 *)(void *)(d)) = 0; ACPI_MOVE_32_TO_32(d, s);} argument
360 #define ARGI_LIST4(a, b, c, d) (ARG_1(d)|ARG_2(c)|ARG_3(b)|ARG_4(a)) argument
367 #define ARGP_LIST4(a, b, c, d) (ARG_1(a)|ARG_2(b)|ARG_3(c)|ARG_4(d)) argument
[all …]
/third_party/ulib/musl/include/sys/
A Dselect.h31 #define FD_SET(d, s) \ argument
32 ((s)->fds_bits[(d) / (8 * sizeof(long))] |= (1UL << ((d) % (8 * sizeof(long)))))
33 #define FD_CLR(d, s) \ argument
34 ((s)->fds_bits[(d) / (8 * sizeof(long))] &= ~(1UL << ((d) % (8 * sizeof(long)))))
35 #define FD_ISSET(d, s) \ argument
36 !!((s)->fds_bits[(d) / (8 * sizeof(long))] & (1UL << ((d) % (8 * sizeof(long)))))
A Dparam.h26 #define howmany(n, d) (((n) + ((d)-1)) / (d)) argument
27 #define roundup(n, d) (howmany(n, d) * (d)) argument
/third_party/ulib/musl/third_party/include/
A Dlibm.h89 #define EXTRACT_WORDS(hi, lo, d) \ argument
95 __u.f = (d); \
101 #define GET_HIGH_WORD(hi, d) \ argument
107 __u.f = (d); \
112 #define GET_LOW_WORD(lo, d) \ argument
118 __u.f = (d); \
134 #define SET_HIGH_WORD(d, hi) \ argument
160 #define GET_FLOAT_WORD(w, d) \ argument
166 __u.f = (d); \
171 #define SET_FLOAT_WORD(d, w) \ argument
[all …]
/third_party/ulib/musl/ldso/
A Ddlstart.c32 for (const ElfW(Dyn)* d = _DYNAMIC; d->d_tag != DT_NULL; ++d) { in _dl_start()
33 switch (d->d_tag) { in _dl_start()
35 rel = (const void*)(base + d->d_un.d_ptr); in _dl_start()
38 rela = (const void*)(base + d->d_un.d_ptr); in _dl_start()
41 relr = (const void*)(base + d->d_un.d_ptr); in _dl_start()
44 relcount = d->d_un.d_val; in _dl_start()
47 relacount = d->d_un.d_val; in _dl_start()
50 relrsz = d->d_un.d_val; in _dl_start()
53 if (d->d_un.d_val != sizeof(relr[0])) { in _dl_start()
/third_party/ulib/uboringssl/crypto/fipsmodule/sha/
A Dsha256.c238 d = state[3]; in sha256_block_data_order()
248 ROUND_00_15(0, a, b, c, d, e, f, g, h); in sha256_block_data_order()
251 ROUND_00_15(1, h, a, b, c, d, e, f, g); in sha256_block_data_order()
254 ROUND_00_15(2, g, h, a, b, c, d, e, f); in sha256_block_data_order()
257 ROUND_00_15(3, f, g, h, a, b, c, d, e); in sha256_block_data_order()
260 ROUND_00_15(4, e, f, g, h, a, b, c, d); in sha256_block_data_order()
263 ROUND_00_15(5, d, e, f, g, h, a, b, c); in sha256_block_data_order()
266 ROUND_00_15(6, c, d, e, f, g, h, a, b); in sha256_block_data_order()
269 ROUND_00_15(7, b, c, d, e, f, g, h, a); in sha256_block_data_order()
272 ROUND_00_15(8, a, b, c, d, e, f, g, h); in sha256_block_data_order()
[all …]
/third_party/ulib/chromiumos-platform-ec/
A Dcomm-lpc.cpp55 const uint8_t *d; in CommandLpc3() local
75 for (i = 0, d = (const uint8_t *)outdata; i < outsize; i++, d++) { in CommandLpc3()
77 outb(*d, addr); in CommandLpc3()
78 csum += *d; in CommandLpc3()
82 for (i = 0, d = (const uint8_t *)&rq; i < sizeof(rq); i++, d++) in CommandLpc3()
83 csum += *d; in CommandLpc3()
89 for (i = 0, d = (const uint8_t *)&rq; i < sizeof(rq); i++, d++) { in CommandLpc3()
91 outb(*d, addr); in CommandLpc3()
/third_party/ulib/ngunwind/src/x86_64/
A DGstash_frame.c30 tdep_stash_frame (struct dwarf_cursor *d, struct dwarf_reg_state *rs) in tdep_stash_frame() argument
32 struct cursor *c = (struct cursor *) dwarf_to_cursor (d); in tdep_stash_frame()
37 d->ip, d->cfa, f->frame_type, in tdep_stash_frame()
41 DWARF_GET_LOC(d->loc[d->ret_addr_column]), in tdep_stash_frame()
42 rs->reg[RBP].where, rs->reg[RBP].val, DWARF_GET_LOC(d->loc[RBP]), in tdep_stash_frame()
43 rs->reg[RSP].where, rs->reg[RSP].val, DWARF_GET_LOC(d->loc[RSP])); in tdep_stash_frame()
55 && DWARF_GET_LOC(d->loc[d->ret_addr_column]) == d->cfa-8 in tdep_stash_frame()
89 assert (DWARF_GET_LOC(d->loc[RIP]) - uc == UC_MCONTEXT_GREGS_RIP); in tdep_stash_frame()
90 assert (DWARF_GET_LOC(d->loc[RBP]) - uc == UC_MCONTEXT_GREGS_RBP); in tdep_stash_frame()
91 assert (DWARF_GET_LOC(d->loc[RSP]) - uc == UC_MCONTEXT_GREGS_RSP); in tdep_stash_frame()
/third_party/ulib/musl/include/
A Dsched.h75 #define CPU_AND_S(a, b, c, d) __CPU_AND_S(a, b, c, d) argument
76 #define CPU_OR_S(a, b, c, d) __CPU_OR_S(a, b, c, d) argument
77 #define CPU_XOR_S(a, b, c, d) __CPU_XOR_S(a, b, c, d) argument
94 #define CPU_AND(d, s1, s2) CPU_AND_S(sizeof(cpu_set_t), d, s1, s2) argument
95 #define CPU_OR(d, s1, s2) CPU_OR_S(sizeof(cpu_set_t), d, s1, s2) argument
96 #define CPU_XOR(d, s1, s2) CPU_XOR_S(sizeof(cpu_set_t), d, s1, s2) argument
/third_party/ulib/musl/src/regex/
A Dglob.c57 size_t l = strlen(d); in match_in_dir()
71 if (*d == '/' && !*(d + 1)) in match_in_dir()
75 dir = opendir(*d ? d : "."); in match_in_dir()
83 if (!stat(d, &st) && S_ISDIR(st.st_mode)) { in match_in_dir()
84 if (append(tail, d, l, l)) in match_in_dir()
89 if (errfunc(d, error) || (flags & GLOB_ERR)) in match_in_dir()
106 if (*d) { in match_in_dir()
107 memcpy(name, d, l); in match_in_dir()
159 const char *p = pat, *d; in glob() local
168 d = "/"; in glob()
[all …]
/third_party/ulib/ngunwind/src/aarch64/
A DGstash_frame.c31 tdep_stash_frame (struct dwarf_cursor *d, struct dwarf_reg_state *rs) in tdep_stash_frame() argument
33 struct cursor *c = (struct cursor *) dwarf_to_cursor (d); in tdep_stash_frame()
39 d->ip, d->cfa, f->frame_type, in tdep_stash_frame()
43 DWARF_GET_LOC(d->loc[d->ret_addr_column]), in tdep_stash_frame()
44 rs->reg[FP].where, rs->reg[FP].val, DWARF_GET_LOC(d->loc[FP]), in tdep_stash_frame()
45 rs->reg[LR].where, rs->reg[LR].val, DWARF_GET_LOC(d->loc[LR]), in tdep_stash_frame()
46 rs->reg[SP].where, rs->reg[SP].val, DWARF_GET_LOC(d->loc[SP])); in tdep_stash_frame()
59 && d->ret_addr_column == LR in tdep_stash_frame()
/third_party/ulib/ngunwind/src/arm/
A DGstash_frame.c31 tdep_stash_frame (struct dwarf_cursor *d, struct dwarf_reg_state *rs) in tdep_stash_frame() argument
33 struct cursor *c = (struct cursor *) dwarf_to_cursor (d); in tdep_stash_frame()
39 (int) d->ip, (int) d->cfa, f->frame_type, in tdep_stash_frame()
43 (int) DWARF_GET_LOC(d->loc[d->ret_addr_column]), in tdep_stash_frame()
44 rs->reg[R7].where, (int) rs->reg[R7].val, (int) DWARF_GET_LOC(d->loc[R7]), in tdep_stash_frame()
45 rs->reg[LR].where, (int) rs->reg[LR].val, (int) DWARF_GET_LOC(d->loc[LR]), in tdep_stash_frame()
46 rs->reg[SP].where, (int) rs->reg[SP].val, (int) DWARF_GET_LOC(d->loc[SP])); in tdep_stash_frame()
59 && d->ret_addr_column == LR in tdep_stash_frame()

Completed in 32 milliseconds

1234