Searched defs:dst (Results 1 - 25 of 58) sorted by relevance

123

/bionic/libc/bionic/
H A Dmempcpy.cpp31 void* mempcpy(void* dst, const void* src, size_t n) { argument
32 return reinterpret_cast<char*>(memcpy(dst, src, n)) + n;
H A Dwmempcpy.cpp31 wchar_t* wmempcpy(wchar_t* dst, const wchar_t* src, size_t n) { argument
32 return wmemcpy(dst, src, n) + n;
H A D__memcpy_chk.cpp36 extern "C" void* __memcpy_chk(void* dst, const void* src, size_t count, size_t dst_len) { argument
39 return memcpy(dst, src, count);
H A D__strcat_chk.cpp34 extern "C" char* __strcat_chk(char* __restrict dst, const char* __restrict src, argument
36 char* save = dst;
37 size_t dst_len = __strlen_chk(dst, dst_buf_size);
39 dst += dst_len;
42 while ((*dst++ = *src++) != '\0') {
H A D__strcpy_chk.cpp36 extern "C" char* __strcpy_chk(char* dst, const char* src, size_t dst_len) { argument
40 return strcpy(dst, src);
/bionic/libc/upstream-freebsd/lib/libc/string/
H A Dwcpncpy.c33 wcpncpy(wchar_t * __restrict dst, const wchar_t * __restrict src, size_t n) argument
36 for (; n--; dst++, src++) {
37 if (!(*dst = *src)) {
38 wchar_t *ret = dst;
40 *++dst = L'\0';
44 return (dst);
H A Dwcsncpy.c44 * Copy src to dst, truncating or null-padding to always copy n bytes.
45 * Return dst.
48 wcsncpy(wchar_t * __restrict dst, const wchar_t * __restrict src, size_t n) argument
51 wchar_t *d = dst;
63 return (dst);
H A Dwcslcat.c42 * Appends src to string dst of size siz (unlike wcsncat, siz is the
43 * full size of dst, not space left). At most siz-1 characters
45 * Returns wcslen(initial dst) + wcslen(src); if retval >= siz,
49 wcslcat(wchar_t *dst, const wchar_t *src, size_t siz) argument
51 wchar_t *d = dst;
56 /* Find the end of dst and adjust bytes left but don't go past end */
59 dlen = d - dst;
/bionic/libc/dns/nameser/
H A Dns_netint.c37 uint16_t dst; local
39 NS_GET16(dst, src);
40 return dst;
45 u_int32_t dst; local
47 NS_GET32(dst, src);
48 return dst;
52 ns_put16(uint16_t src, u_char *dst) { argument
53 NS_PUT16(src, dst);
57 ns_put32(uint32_t src, u_char *dst) { argument
58 NS_PUT32(src, dst);
[all...]
H A Dns_samedomain.c170 ns_makecanon(const char *src, char *dst, size_t dstsize) { argument
177 strcpy(dst, src);
178 while (n >= 1U && dst[n - 1] == '.') /* Ends in "." */
179 if (n >= 2U && dst[n - 2] == '\\' && /* Ends in "\." */
180 (n < 3U || dst[n - 3] != '\\')) /* But not "\\." */
183 dst[--n] = '\0';
184 dst[n++] = '.';
185 dst[n] = '\0';
/bionic/libc/stdio/
H A Dfread.c80 char* dst = buf; variable
87 memcpy(dst, fp->_p, buffered_bytes);
90 dst += buffered_bytes;
127 ssize_t bytes_read = (*fp->_read)(fp->_cookie, dst, total);
132 dst += bytes_read;
/bionic/libc/upstream-netbsd/lib/libc/string/
H A Dstrxfrm.c48 * Transform src, storing the result in dst, such that
53 strxfrm(char *dst, const char *src, size_t n) argument
64 _DIAGASSERT(dst != NULL);
66 (void)memcpy(dst, src, copysize);
67 dst[copysize] = 0;
/bionic/libc/upstream-openbsd/lib/libc/string/
H A Dwcslcpy.c23 * Copy string src to buffer dst of size dsize. At most dsize-1
28 wcslcpy(wchar_t *dst, const wchar_t *src, size_t dsize) argument
36 if ((*dst++ = *src++) == L'\0')
41 /* Not enough room in dst, add NUL and traverse rest of src. */
44 *dst = L'\0'; /* NUL-terminate dst */
H A Dmemmove.c51 char *dst = dst0; variable
55 if (length == 0 || dst == src) /* nothing to do */
64 if ((unsigned long)dst < (unsigned long)src) {
69 if ((t | (long)dst) & wmask) {
74 if ((t ^ (long)dst) & wmask || length < wsize)
79 TLOOP1(*dst++ = *src++);
85 TLOOP(*(word *)dst = *(word *)src; src += wsize; dst += wsize);
87 TLOOP(*dst++ = *src++);
95 dst
[all...]
/bionic/benchmarks/
H A Dstring_benchmark.cpp31 char* src = new char[nbytes]; char* dst = new char[nbytes]; local
33 memset(dst, 'x', nbytes);
37 c += memcmp(dst, src, nbytes);
42 delete[] dst;
48 char* src = new char[nbytes]; char* dst = new char[nbytes]; local
52 memcpy(dst, src, nbytes);
57 delete[] dst;
77 char* dst = new char[nbytes]; local
80 memset(dst, 0, nbytes);
84 delete[] dst;
[all...]
/bionic/libc/arch-arm64/generic/bionic/
H A Dmemset.S77 #define dst x3 define
89 cmp count, dst
151 bic dst, dstin, 15
157 sub count, dstend, dst /* Count is 16 too large. */
158 add dst, dst, 16
160 1: stp q0, q0, [dst], 64
161 stp q0, q0, [dst, -32]
181 str q0, [dst, 16]
182 stp q0, q0, [dst, 3
[all...]
H A Dmemmove.S47 #define dst x6 define
73 add dst, dstin, count
85 sub dst, dst, tmp1
91 stp A_l, A_h, [dst, #32]
94 stp A_l, A_h, [dst, #16]
97 stp A_l, A_h, [dst]
103 str tmp1, [dst, #-8]!
107 str tmp1w, [dst, #-4]!
111 strh tmp1w, [dst, #
[all...]
H A Dmemcpy_base.S66 #define dst x3 define
83 #define F_h dst
178 bic dst, dstin, 15
190 stp A_l, A_h, [dst, 16]
192 stp B_l, B_h, [dst, 32]
194 stp C_l, C_h, [dst, 48]
196 stp D_l, D_h, [dst, 64]!
206 stp A_l, A_h, [dst, 16]
208 stp B_l, B_h, [dst, 32]
210 stp C_l, C_h, [dst, 4
[all...]
H A Dstring_copy.S70 #define dst x0 define
78 #define dst x2 define
106 mov dst, dstin
128 stp data1, data2, [dst], #16
138 str data1, [dst], #7
140 str data1, [dst]
145 str data1_w, [dst], #4
149 strh data1_w, [dst], #2
153 strb data1_w, [dst]
159 // Back up one so that dst point
[all...]
/bionic/libc/kernel/uapi/linux/
H A Divtv.h32 struct v4l2_rect dst; member in struct:ivtv_dma_frame
/bionic/libc/versioner-dependencies/common/kernel_uapi/linux/
H A Divtv.h32 struct v4l2_rect dst; member in struct:ivtv_dma_frame
/bionic/tests/
H A Dsys_uio_test.cpp76 char dst[1024] = ""; local
78 iovec local = { dst, sizeof dst };
81 ASSERT_EQ('T', dst[0]);
82 ASSERT_EQ(0, memcmp(src, dst, sizeof src));
85 remote = { nullptr, sizeof dst };
95 char dst[1024] = ""; local
96 iovec remote = { dst, sizeof dst };
100 ASSERT_EQ('T', dst[
[all...]
/bionic/libc/arch-arm64/denver64/bionic/
H A Dmemset.S62 #define dst x8 define
82 mov dst, dstin /* Preserve return value. */
103 stp QA_l, QA_l, [dst], #32
104 stp QA_l, QA_l, [dst], #32
106 stp QA_l, QA_l, [dst], #32
107 stp QA_l, QA_l, [dst], #32
109 stp QA_l, QA_l, [dst], #32
110 stp QA_l, QA_l, [dst], #32
114 add dst, dst, tmp
[all...]
H A Dmemcpy_base.S45 #define dst x6 define
61 mov dst, dstin
74 add dst, dst, tmp1
80 stp A_l, A_h, [dst, #-48]
83 stp A_l, A_h, [dst, #-32]
86 stp A_l, A_h, [dst, #-16]
93 add dst, dst, count
94 stp A_l, A_h, [dst, #
[all...]
/bionic/libc/upstream-openbsd/lib/libc/net/
H A Dinet_ntop.c34 static const char *inet_ntop4(const u_char *src, char *dst, size_t size);
35 static const char *inet_ntop6(const u_char *src, char *dst, size_t size);
38 * inet_ntop(af, src, dst, size)
41 * pointer to presentation format address (`dst'), or NULL (see errno).
46 inet_ntop(int af, const void *src, char *dst, socklen_t size) argument
50 return (inet_ntop4(src, dst, (size_t)size));
52 return (inet_ntop6(src, dst, (size_t)size));
61 * inet_ntop4(src, dst, size)
64 * `dst' (as a const)
72 inet_ntop4(const u_char *src, char *dst, size_ argument
94 inet_ntop6(const u_char *src, char *dst, size_t size) argument
[all...]

Completed in 384 milliseconds

123