Home
last modified time | relevance | path

Searched refs:dst (Results 1 – 25 of 53) sorted by relevance

123

/picolibc-latest/newlib/libc/machine/cris/
Dmemset.c74 register char *dst __asm__ ("r13") = pdst; in memset()
80 if ((unsigned long) dst & 1) in memset()
82 *dst = (char) lc; in memset()
84 dst++; in memset()
87 if ((unsigned long) dst & 2) in memset()
89 *(short *) dst = lc; in memset()
91 dst += 2; in memset()
154 : "=r" (dst), "=r" (n) in memset()
157 : "0" (dst), "1" (n), "r" (lc)); in memset()
163 *(long *) dst = lc; dst += 4; in memset()
[all …]
Dmemcpy.c57 register unsigned char *dst __asm__ ("r13") = pdst; in memcpy()
64 if (((unsigned long) dst & 3) != 0 in memcpy()
69 if ((unsigned long) dst & 1) in memcpy()
72 *dst = *src; in memcpy()
74 dst++; in memcpy()
77 if ((unsigned long) dst & 2) in memcpy()
80 *(short *) dst = *(short *) src; in memcpy()
82 dst += 2; in memcpy()
132 : "=r" (dst), "=r" (src), "=r" (n) in memcpy()
135 : "0" (dst), "1" (src), "2" (n)); in memcpy()
[all …]
Dmemmove.c58 register unsigned char *dst __asm__ ("r13") = pdst; in memmove()
63 if (src < dst && dst < src + n) in memmove()
68 dst += n; in memmove()
71 *--dst = *--src; in memmove()
83 if (((unsigned long) dst & 3) != 0 in memmove()
88 if ((unsigned long) dst & 1) in memmove()
91 *dst = *src; in memmove()
93 dst++; in memmove()
96 if ((unsigned long) dst & 2) in memmove()
99 *(short *) dst = *(short *) src; in memmove()
[all …]
/picolibc-latest/newlib/libc/machine/mips/
Dstrncpy.c52 char *dst, *end; in strncpy() local
56 dst = dst0; in strncpy()
58 end = dst + count; in strncpy()
59 while (dst != end) in strncpy()
61 *dst++ = ch = *src++; in strncpy()
64 while (dst != end) in strncpy()
65 *dst++ = '\0'; in strncpy()
74 unsigned char *dst; in strncpy()
84 dst = (unsigned char *)dst0; in strncpy()
94 *dst++ = ch = *src++; in strncpy()
[all …]
/picolibc-latest/newlib/libc/machine/arm/
Dmemcpy-armv7a.S92 #define dst ip macro
114 vstr \vreg, [dst, #\base]
116 vstr d0, [dst, #\base + 8]
118 vstr d1, [dst, #\base + 16]
120 vstr d2, [dst, #\base + 24]
122 vstr \vreg, [dst, #\base + 32]
124 vstr d0, [dst, #\base + 40]
126 vstr d1, [dst, #\base + 48]
128 vstr d2, [dst, #\base + 56]
133 vstr \vreg, [dst, #\base]
[all …]
/picolibc-latest/newlib/libc/include/ssp/
Dstring.h51 #define __ssp_bos_check3(fun, dst, src, len) \ argument
52 (__ssp_bos_known(dst) ? \
53 __builtin___ ## fun ## _chk(dst, src, len, __ssp_bos0(dst)) : \
54 __ ## fun ## _ichk(dst, src, len))
56 #define __ssp_bos_check2(fun, dst, src) \ argument
57 (__ssp_bos_known(dst) ? \
58 __builtin___ ## fun ## _chk(dst, src, __ssp_bos0(dst)) : \
59 __ ## fun ## _ichk(dst, src))
64 __ ## fun ## _ichk(type1 __restrict dst, type2 __restrict src, size_t len) { \
65 return __builtin___ ## fun ## _chk(dst, src, len, __ssp_bos0(dst)); \
[all …]
Dstrings.h39 #define bcopy(src, dst, len) \ argument
40 (__ssp_bos_known(dst) ? \
41 __builtin___memmove_chk(dst, src, len, __ssp_bos0(dst)) : \
42 __memmove_ichk(dst, src, len))
43 #define bzero(dst, len) \ argument
44 (__ssp_bos_known(dst) ? \
45 __builtin___memset_chk(dst, 0, len, __ssp_bos0(dst)) : \
46 __memset_ichk(dst, 0, len))
/picolibc-latest/newlib/libc/machine/riscv/
Dstrcpy.c20 char *strcpy(char *dst, const char *src) in strcpy() argument
22 char *dst0 = dst; in strcpy()
25 int misaligned = ((uintptr_t)dst | (uintptr_t)src) & (sizeof (long) - 1); in strcpy()
28 long *ldst = (long *)dst; in strcpy()
34 dst = (char *)ldst; in strcpy()
40 if (!(*dst++ = c0)) return dst0; in strcpy()
41 if (!(*dst++ = c1)) return dst0; in strcpy()
43 if (!(*dst++ = c2)) return dst0; in strcpy()
46 if (!(*dst++ = c3)) return dst0; in strcpy()
48 if (!(*dst++ = c4)) return dst0; in strcpy()
[all …]
/picolibc-latest/newlib/libc/string/
Dmemmove.c76 char *dst = dst_void; in memmove() local
79 if (src < dst && dst < src + length) in memmove()
83 dst += length; in memmove()
86 *--dst = *--src; in memmove()
93 *dst++ = *src++; in memmove()
99 char *dst = dst_void; in memmove()
104 if (src < dst && dst < src + length) in memmove()
108 dst += length; in memmove()
111 *--dst = *--src; in memmove()
119 if (!TOO_SMALL(length) && !UNALIGNED (src, dst)) in memmove()
[all …]
Dmempcpy.c55 char *dst = (char *) dst0; in mempcpy() local
60 *dst++ = *src++; in mempcpy()
63 return dst; in mempcpy()
65 char *dst = dst0; in mempcpy()
72 if (!TOO_SMALL(len0) && !UNALIGNED (src, dst)) in mempcpy()
74 aligned_dst = (long*)dst; in mempcpy()
95 dst = (char*)aligned_dst; in mempcpy()
100 *dst++ = *src++; in mempcpy()
102 return dst; in mempcpy()
Dstrlcat.c31 strlcat (char *dst, in strlcat() argument
35 const char *odst = dst; in strlcat()
41 while (n-- != 0 && *dst != '\0') in strlcat()
42 dst++; in strlcat()
43 dlen = dst - odst; in strlcat()
50 *dst++ = *src; in strlcat()
55 *dst = '\0'; in strlcat()
Dwcslcat.c59 wcslcat (wchar_t *dst, in wcslcat() argument
63 const wchar_t *odst = dst; in wcslcat()
69 while (n-- != 0 && *dst != L'\0') in wcslcat()
70 dst++; in wcslcat()
71 dlen = dst - odst; in wcslcat()
78 *dst++ = *src; in wcslcat()
83 *dst = L'\0'; in wcslcat()
Dstpncpy.c69 stpncpy (char *__restrict dst, in stpncpy() argument
81 if (!UNALIGNED (src, dst) && !TOO_SMALL (count)) in stpncpy()
83 aligned_dst = (long*)dst; in stpncpy()
94 dst = (char*)aligned_dst; in stpncpy()
102 if ((*dst++ = *src++) == '\0') in stpncpy()
104 ret = dst - 1; in stpncpy()
110 *dst++ = '\0'; in stpncpy()
112 return ret ? ret : dst; in stpncpy()
Dmemccpy.c70 char *dst = (char *) dst0; in memccpy() local
76 if ((*dst++ = *src++) == endchar) in memccpy()
78 ptr = dst; in memccpy()
86 unsigned char *dst = dst0; in memccpy()
94 if (!TOO_SMALL(len0) && !UNALIGNED (src, dst)) in memccpy()
99 aligned_dst = (long*)dst; in memccpy()
124 dst = (unsigned char*)aligned_dst; in memccpy()
130 if ((*dst++ = *src++) == endchar) in memccpy()
132 ptr = dst; in memccpy()
Dmemcpy.c72 char *dst = (char *) dst0; in memcpy() local
79 *dst++ = *src++; in memcpy()
84 char *dst = dst0; in memcpy()
91 if (!TOO_SMALL(len0) && !UNALIGNED (src, dst)) in memcpy()
93 aligned_dst = (long*)dst; in memcpy()
114 dst = (char*)aligned_dst; in memcpy()
119 *dst++ = *src++; in memcpy()
Dwcpncpy.c37 wcpncpy (wchar_t *__restrict dst, in wcpncpy() argument
46 if ((*dst++ = *src++) == L'\0') in wcpncpy()
48 ret = dst - 1; in wcpncpy()
53 *dst++ = L'\0'; in wcpncpy()
55 return ret ? ret : dst; in wcpncpy()
Dstpcpy.c60 stpcpy (char *__restrict dst, in stpcpy() argument
69 if (!UNALIGNED (src, dst)) in stpcpy()
71 aligned_dst = (long*)dst; in stpcpy()
81 dst = (char*)aligned_dst; in stpcpy()
86 while ((*dst++ = *src++)) in stpcpy()
88 return --dst; in stpcpy()
Dstrncpy.c103 char *dst = dst0; in strncpy()
109 if (!UNALIGNED (src, dst) && !TOO_SMALL (count)) in strncpy()
111 aligned_dst = (long*)dst; in strncpy()
122 dst = (char*)aligned_dst; in strncpy()
129 if ((*dst++ = *src++) == '\0') in strncpy()
134 *dst++ = '\0'; in strncpy()
Dstrcpy.c86 char *dst = dst0; in strcpy()
92 if (!UNALIGNED (src, dst)) in strcpy()
94 aligned_dst = (long*)dst; in strcpy()
104 dst = (char*)aligned_dst; in strcpy()
108 while ((*dst++ = *src++)) in strcpy()
/picolibc-latest/newlib/libc/machine/aarch64/
Dmemset.S25 #define dst x3 macro
80 bic dst, dstin, 15
92 str q0, [dst, 16]
93 stp q0, q0, [dst, 32]
94 bic dst, dst, 63
95 sub count, dstend, dst /* Count is now 64 too large. */
100 add dst, dst, 64
101 dc zva, dst
109 sub count, dstend, dst /* Count is 16 too large. */
110 sub dst, dst, 16 /* Dst is biased by -32. */
[all …]
Dstrcpy.S48 #define dst x3 macro
152 sub dst, src, tmp
155 str dataq, [dst], 32
161 str dataq, [dst, -16]
167 add dst, dst, 16
171 sub dst, dst, 31
177 add dst, dst, len
178 ldr dataq, [dst, tmp]
179 str dataq, [dst]
180 IFSTPCPY (add result, dst, 15)
/picolibc-latest/newlib/libc/stdlib/
Dwcsnrtombs.c76 _wcsnrtombs_l (char *dst, const wchar_t **src, size_t nwc, in _wcsnrtombs_l() argument
79 char *ptr = dst; in _wcsnrtombs_l()
94 if (dst == NULL) in _wcsnrtombs_l()
114 if (dst) in _wcsnrtombs_l()
122 if (dst) in _wcsnrtombs_l()
141 wcsnrtombs (char *__restrict dst, in wcsnrtombs() argument
147 return _wcsnrtombs_l (dst, src, nwc, len, ps, in wcsnrtombs()
/picolibc-latest/newlib/libc/machine/visium/
Dmemmove.c35 memmove (void *dst, const void *src, size_t len) in memmove() argument
37 char *d = dst; in memmove()
50 return dst; in memmove()
53 return memcpy (dst, src, len); in memmove()
/picolibc-latest/newlib/libc/ssp/
Dstpcpy_chk.c42 __stpcpy_chk(char * __restrict dst, const char * __restrict src, size_t slen) in __stpcpy_chk() argument
49 if (__ssp_overlap(src, dst, len)) in __stpcpy_chk()
52 (void)memcpy(dst, src, len + 1); in __stpcpy_chk()
53 return dst + len; in __stpcpy_chk()
/picolibc-latest/newlib/libc/machine/microblaze/
Dstrcpy.c100 char *dst = dst0; in strcpy()
106 if (!UNALIGNED (src, dst)) in strcpy()
108 aligned_dst = (long*)dst; in strcpy()
118 dst = (char*)aligned_dst; in strcpy()
122 while ((*dst++ = *src++)) in strcpy()

123