Home
last modified time | relevance | path

Searched refs:src (Results 1 – 25 of 73) sorted by relevance

123

/bionic/libm/
DAndroid.bp19 "upstream-freebsd/lib/msun/src/catrig.c",
20 "upstream-freebsd/lib/msun/src/catrigf.c",
21 "upstream-freebsd/lib/msun/src/e_acos.c",
22 "upstream-freebsd/lib/msun/src/e_acosf.c",
23 "upstream-freebsd/lib/msun/src/e_acosh.c",
24 "upstream-freebsd/lib/msun/src/e_acoshf.c",
25 "upstream-freebsd/lib/msun/src/e_asin.c",
26 "upstream-freebsd/lib/msun/src/e_asinf.c",
27 "upstream-freebsd/lib/msun/src/e_atan2.c",
28 "upstream-freebsd/lib/msun/src/e_atan2f.c",
[all …]
/bionic/libc/include/bits/fortify/
Dstring.h46 void* memcpy(void* const dst __pass_object_size0, const void* src, size_t copy_amount) in memcpy() argument
48 return __builtin___memcpy_chk(dst, src, copy_amount, __bos0(dst)); in memcpy()
53 void* memmove(void* const dst __pass_object_size0, const void* src, size_t len) __overloadable { in memmove() argument
54 return __builtin___memmove_chk(dst, src, len, __bos0(dst)); in memmove()
61 void* mempcpy(void* const dst __pass_object_size0, const void* src, size_t copy_amount) in mempcpy() argument
68 return __builtin___mempcpy_chk(dst, src, copy_amount, bos_dst); in mempcpy()
71 return __builtin_mempcpy(dst, src, copy_amount); in mempcpy()
77 char* stpcpy(char* const dst __pass_object_size, const char* src) in stpcpy() argument
79 __clang_error_if(__bos_unevaluated_le(__bos(dst), __builtin_strlen(src)), in stpcpy()
82 return __builtin___stpcpy_chk(dst, src, __bos(dst)); in stpcpy()
[all …]
/bionic/libc/arch-arm/bionic/
D__aeabi.c62 void __attribute__((weak)) __aeabi_memcpy8_impl(void *dest, const void *src, size_t n) { in __aeabi_memcpy8_impl() argument
63 memcpy(dest, src, n); in __aeabi_memcpy8_impl()
66 void __attribute__((weak)) __aeabi_memcpy4_impl(void *dest, const void *src, size_t n) { in __aeabi_memcpy4_impl() argument
67 memcpy(dest, src, n); in __aeabi_memcpy4_impl()
70 void __attribute__((weak)) __aeabi_memcpy_impl(void *dest, const void *src, size_t n) { in __aeabi_memcpy_impl() argument
71 memcpy(dest, src, n); in __aeabi_memcpy_impl()
74 void __attribute__((weak)) __aeabi_memcpy8_impl2(void *dest, const void *src, size_t n) { in __aeabi_memcpy8_impl2() argument
75 memcpy(dest, src, n); in __aeabi_memcpy8_impl2()
78 void __attribute__((weak)) __aeabi_memcpy4_impl2(void *dest, const void *src, size_t n) { in __aeabi_memcpy4_impl2() argument
79 memcpy(dest, src, n); in __aeabi_memcpy4_impl2()
[all …]
/bionic/libc/bionic/
Dwchar.cpp68 size_t mbsnrtowcs(wchar_t* dst, const char** src, size_t nmc, size_t len, mbstate_t* ps) { in mbsnrtowcs() argument
76 if (nmc > 0 && mbstate_bytes_so_far(state) > 0 && static_cast<uint8_t>((*src)[0]) < 0x80) { in mbsnrtowcs()
83 if (static_cast<uint8_t>((*src)[i]) < 0x80) { in mbsnrtowcs()
85 if ((*src)[i] == '\0') { in mbsnrtowcs()
90 r = mbrtowc(nullptr, *src + i, nmc - i, state); in mbsnrtowcs()
107 if (static_cast<uint8_t>((*src)[i]) < 0x80) { in mbsnrtowcs()
109 dst[o] = (*src)[i]; in mbsnrtowcs()
111 if ((*src)[i] == '\0') { in mbsnrtowcs()
112 *src = nullptr; in mbsnrtowcs()
116 r = mbrtowc(dst + o, *src + i, nmc - i, state); in mbsnrtowcs()
[all …]
Dfortify.cpp135 extern "C" void* __memmove_chk(void* dst, const void* src, size_t len, size_t dst_len) { in __memmove_chk() argument
137 return memmove(dst, src, len); in __memmove_chk()
236 extern "C" char* __stpcpy_chk(char* dst, const char* src, size_t dst_len) { in __stpcpy_chk() argument
238 size_t src_len = strlen(src) + 1; in __stpcpy_chk()
240 return stpcpy(dst, src); in __stpcpy_chk()
244 extern "C" char* __stpncpy_chk(char* dst, const char* src, size_t len, size_t dst_len) { in __stpncpy_chk() argument
246 return stpncpy(dst, src, len); in __stpncpy_chk()
253 char* __stpncpy_chk2(char* dst, const char* src, size_t n, size_t dst_len, size_t src_len) { in __stpncpy_chk2() argument
257 const char* s = src; in __stpncpy_chk2()
260 size_t s_copy_len = static_cast<size_t>(s - src); in __stpncpy_chk2()
[all …]
Dtime64.c362 static void copy_tm_to_TM(const struct tm *src, struct TM *dest) { in copy_tm_to_TM() argument
363 if( src == NULL ) { in copy_tm_to_TM()
368 dest->tm_sec = src->tm_sec; in copy_tm_to_TM()
369 dest->tm_min = src->tm_min; in copy_tm_to_TM()
370 dest->tm_hour = src->tm_hour; in copy_tm_to_TM()
371 dest->tm_mday = src->tm_mday; in copy_tm_to_TM()
372 dest->tm_mon = src->tm_mon; in copy_tm_to_TM()
373 dest->tm_year = (Year)src->tm_year; in copy_tm_to_TM()
374 dest->tm_wday = src->tm_wday; in copy_tm_to_TM()
375 dest->tm_yday = src->tm_yday; in copy_tm_to_TM()
[all …]
Datexit.cpp130 size_t src = 0, dst = 0; in recompact() local
131 while (src < size_ && array_[src].fn != nullptr) { in recompact()
132 ++src; in recompact()
137 for (; src < size_; ++src) { in recompact()
138 const AtexitEntry entry = array_[src]; in recompact()
139 array_[src] = {}; in recompact()
/bionic/libc/arch-arm64/generic/bionic/
Dmemcpy_base.S64 #define src x1 macro
80 #define E_l src
97 prfm PLDL1KEEP, [src]
98 add srcend, src, count
107 ldp A_l, A_h, [src]
111 ldp B_l, B_h, [src, 16]
126 ldr A_l, [src]
134 ldr A_lw, [src]
145 ldrb A_lw, [src]
147 ldrb B_lw, [src, tmp1]
[all …]
Dmemmove.S64 #define src x1 macro
92 sub tmp1, dstin, src
99 add srcend, src, count
135 ldp E_l, E_h, [src, 48]
137 ldp A_l, A_h, [src, 32]
139 ldp B_l, B_h, [src, 16]
141 ldp C_l, C_h, [src]
/bionic/libc/upstream-openbsd/lib/libc/net/
Dinet_pton.c32 static int inet_pton4(const char *src, u_char *dst);
33 static int inet_pton6(const char *src, u_char *dst);
47 inet_pton(int af, const char *src, void *dst) in inet_pton() argument
51 return (inet_pton4(src, dst)); in inet_pton()
53 return (inet_pton6(src, dst)); in inet_pton()
73 inet_pton4(const char *src, u_char *dst) in inet_pton4() argument
82 while ((ch = *src++) != '\0') { in inet_pton4()
124 inet_pton6(const char *src, u_char *dst) in inet_pton6() argument
137 if (*src == ':') in inet_pton6()
138 if (*++src != ':') in inet_pton6()
[all …]
Dbase64.c126 b64_ntop(src, srclength, target, targsize) in b64_ntop() argument
127 u_char const *src; in b64_ntop()
138 input[0] = *src++;
139 input[1] = *src++;
140 input[2] = *src++;
161 input[i] = *src++;
190 b64_pton(src, target, targsize) in b64_pton() argument
191 char const *src; in b64_pton()
202 while ((ch = (unsigned char)*src++) != '\0') {
268 ch = (unsigned char)*src++; /* Skip it, get next. */
[all …]
Dinet_ntop.c33 static const char *inet_ntop4(const u_char *src, char *dst, size_t size);
34 static const char *inet_ntop6(const u_char *src, char *dst, size_t size);
45 inet_ntop(int af, const void *src, char *dst, socklen_t size) in inet_ntop() argument
49 return (inet_ntop4(src, dst, size)); in inet_ntop()
51 return (inet_ntop6(src, dst, size)); in inet_ntop()
72 inet_ntop4(const u_char *src, char *dst, size_t size) in inet_ntop4() argument
78 src[0], src[1], src[2], src[3]); in inet_ntop4()
94 inet_ntop6(const u_char *src, char *dst, size_t size) in inet_ntop6() argument
117 words[i / 2] |= (src[i] << ((1 - (i % 2)) << 3)); in inet_ntop6()
170 if (!inet_ntop4(src+12, tp, ep - tp)) in inet_ntop6()
/bionic/tests/
Dwchar_test.cpp122 const wchar_t* src; in TEST() local
129 src = chars; in TEST()
130 EXPECT_EQ(5U, wcsrtombs(nullptr, &src, 0, nullptr)); in TEST()
131 EXPECT_EQ(&chars[0], src); in TEST()
132 src = chars; in TEST()
133 EXPECT_EQ(5U, wcsrtombs(nullptr, &src, 4, nullptr)); in TEST()
134 EXPECT_EQ(&chars[0], src); in TEST()
135 src = chars; in TEST()
136 EXPECT_EQ(5U, wcsrtombs(nullptr, &src, 256, nullptr)); in TEST()
137 EXPECT_EQ(&chars[0], src); in TEST()
[all …]
Dsys_uio_test.cpp75 char src[1024] = "This is the source buffer containing some data"; in TEST() local
77 iovec remote = { src, sizeof src }; in TEST()
79 ASSERT_EQ(ssize_t(sizeof src), process_vm_readv(getpid(), &local, 1, &remote, 1, 0)); in TEST()
82 ASSERT_EQ(0, memcmp(src, dst, sizeof src)); in TEST()
94 char src[1024] = "This is the source buffer containing some data"; in TEST() local
97 iovec local = { src, sizeof src }; in TEST()
98 ASSERT_EQ(ssize_t(sizeof src), process_vm_writev(getpid(), &local, 1, &remote, 1, 0)); in TEST()
101 ASSERT_EQ(0, memcmp(src, dst, sizeof src)); in TEST()
Dfortify_test.cpp134 char* src = strdup(""); in TEST_F() local
135 ASSERT_FORTIFY(stpcpy(myfoo.empty, src)); in TEST_F()
136 free(src); in TEST_F()
146 char* src = strdup(""); in TEST_F() local
147 ASSERT_FORTIFY(strcpy(myfoo.empty, src)); in TEST_F()
148 free(src); in TEST_F()
158 char* src = strdup("1"); in TEST_F() local
159 ASSERT_FORTIFY(strcpy(myfoo.empty, src)); in TEST_F()
160 free(src); in TEST_F()
170 char* src = strdup("12"); in TEST_F() local
[all …]
/bionic/libc/dns/nameser/
Dns_ttl.c50 ns_format_ttl(u_long src, char *dst, size_t dstlen) { in ns_format_ttl() argument
55 secs = (int)(src % 60); src /= 60; in ns_format_ttl()
56 mins = (int)(src % 60); src /= 60; in ns_format_ttl()
57 hours = (int)(src % 24); src /= 24; in ns_format_ttl()
58 days = (int)(src % 7); src /= 7; in ns_format_ttl()
59 weeks = (int)src; src = 0; in ns_format_ttl()
97 ns_parse_ttl(const char *src, u_long *dst) { in ns_parse_ttl() argument
105 while ((ch = *src++) != '\0') { in ns_parse_ttl()
Dns_netint.c36 ns_get16(const u_char *src) { in ns_get16() argument
39 NS_GET16(dst, src); in ns_get16()
44 ns_get32(const u_char *src) { in ns_get32() argument
47 NS_GET32(dst, src); in ns_get32()
52 ns_put16(uint16_t src, u_char *dst) { in ns_put16() argument
53 NS_PUT16(src, dst); in ns_put16()
57 ns_put32(uint32_t src, u_char *dst) { in ns_put32() argument
58 NS_PUT32(src, dst); in ns_put32()
Dns_name.c98 ns_name_ntop(const u_char *src, char *dst, size_t dstsiz) in ns_name_ntop() argument
106 cp = src; in ns_name_ntop()
203 ns_name_pton(const char *src, u_char *dst, size_t dstsiz) { in ns_name_pton() argument
204 return (ns_name_pton2(src, dst, dstsiz, NULL)); in ns_name_pton()
221 ns_name_pton2(const char *src, u_char *dst, size_t dstsiz, size_t *dstlen) { in ns_name_pton2() argument
231 while ((c = *src++) != 0) { in ns_name_pton2()
234 if ((cp = strchr(src, ']')) == NULL) { in ns_name_pton2()
238 if ((e = encode_bitsring(&src, cp + 2, in ns_name_pton2()
246 if ((c = *src++) == 0) in ns_name_pton2()
256 if ((c = *src++) == 0 || in ns_name_pton2()
[all …]
/bionic/libc/dns/resolv/
Dres_comp.c104 dn_expand(const u_char *msg, const u_char *eom, const u_char *src, in dn_expand() argument
107 int n = ns_name_uncompress(msg, eom, src, dst, (size_t)dstsiz); in dn_expand()
120 dn_comp(const char *src, u_char *dst, int dstsiz, in dn_comp() argument
123 return (ns_name_compress(src, dst, (size_t)dstsiz, in dn_comp()
260 void __putlong(u_int32_t src, u_char *dst) { ns_put32(src, dst); } in __putlong() argument
261 void __putshort(u_int16_t src, u_char *dst) { ns_put16(src, dst); } in __putshort() argument
263 u_int32_t _getlong(const u_char *src) { return (ns_get32(src)); } in _getlong() argument
264 u_int16_t _getshort(const u_char *src) { return (ns_get16(src)); } in _getshort() argument
/bionic/libc/upstream-openbsd/lib/libc/string/
Dstrlcat.c30 strlcat(char *dst, const char *src, size_t dsize) in strlcat() argument
33 const char *osrc = src; in strlcat()
44 return(dlen + strlen(src)); in strlcat()
45 while (*src != '\0') { in strlcat()
47 *dst++ = *src; in strlcat()
50 src++; in strlcat()
54 return(dlen + (src - osrc)); /* count does not include NUL */ in strlcat()
Dstrlcpy.c28 strlcpy(char *dst, const char *src, size_t dsize) in strlcpy() argument
30 const char *osrc = src; in strlcpy()
36 if ((*dst++ = *src++) == '\0') in strlcpy()
45 while (*src++) in strlcpy()
49 return(src - osrc - 1); /* count does not include NUL */ in strlcpy()
Dwcslcpy.c28 wcslcpy(wchar_t *dst, const wchar_t *src, size_t dsize) in wcslcpy() argument
30 const wchar_t *osrc = src; in wcslcpy()
36 if ((*dst++ = *src++) == L'\0') in wcslcpy()
45 while (*src++) in wcslcpy()
49 return(src - osrc - 1); /* count does not include NUL */ in wcslcpy()
/bionic/libc/dns/include/
Dhostent.h77 #define HENT_COPY(dst, src, slen, ptr, len) \ argument
81 memcpy(ptr, src, (size_t)slen); \
87 #define HENT_SCOPY(dst, src, ptr, len) \ argument
89 size_t _len = strlen(src) + 1; \
90 HENT_COPY(dst, src, _len, ptr, len); \
/bionic/benchmarks/
Dstring_benchmark.cpp29 std::vector<char> src; in BM_string_memcmp() local
31 char* src_aligned = GetAlignedPtrFilled(&src, src_alignment, nbytes, 'x'); in BM_string_memcmp()
48 std::vector<char> src; in BM_string_memcpy() local
50 char* src_aligned = GetAlignedPtrFilled(&src, src_alignment, nbytes, 'x'); in BM_string_memcpy()
66 std::vector<char> src; in BM_string_memmove_non_overlapping() local
68 char* src_aligned = GetAlignedPtrFilled(&src, src_alignment, nbytes, 'x'); in BM_string_memmove_non_overlapping()
146 std::vector<char> src; in BM_string_strcat_copy_only() local
148 char* src_aligned = GetAlignedPtrFilled(&src, src_alignment, nbytes, 'x'); in BM_string_strcat_copy_only()
169 std::vector<char> src; in BM_string_strcat_seek_only() local
171 char* src_aligned = GetAlignedPtrFilled(&src, src_alignment, 3, 'x'); in BM_string_strcat_seek_only()
[all …]
/bionic/libc/upstream-netbsd/lib/libc/regex/
Dregexec.c127 #define FWD(dst, src, n) ((dst) |= ((unsigned long)(src)&(here)) << (n)) in __weak_alias() argument
128 #define BACK(dst, src, n) ((dst) |= ((unsigned long)(src)&(here)) >> (n)) in __weak_alias() argument
179 #define FWD(dst, src, n) ((dst)[here+(n)] |= (src)[here]) argument
180 #define BACK(dst, src, n) ((dst)[here-(n)] |= (src)[here]) argument

123