/picolibc-3.7.0-3.6.0/newlib/libc/machine/cris/ |
D | memset.c | 72 register char *dst __asm__ ("r13") = pdst; in memset() 78 if ((unsigned long) dst & 1) in memset() 80 *dst = (char) lc; in memset() 82 dst++; in memset() 85 if ((unsigned long) dst & 2) in memset() 87 *(short *) dst = lc; in memset() 89 dst += 2; in memset() 150 : "=r" (dst), "=r" (n) in memset() 153 : "0" (dst), "1" (n), "r" (lc)); in memset() 159 *(long *) dst = lc; dst += 4; in memset() [all …]
|
D | memcpy.c | 55 register unsigned char *dst __asm__ ("r13") = pdst; in memcpy() 62 if (((unsigned long) dst & 3) != 0 in memcpy() 67 if ((unsigned long) dst & 1) in memcpy() 70 *dst = *src; in memcpy() 72 dst++; in memcpy() 75 if ((unsigned long) dst & 2) in memcpy() 78 *(short *) dst = *(short *) src; in memcpy() 80 dst += 2; in memcpy() 130 : "=r" (dst), "=r" (src), "=r" (n) in memcpy() 133 : "0" (dst), "1" (src), "2" (n)); in memcpy() [all …]
|
D | memmove.c | 56 register unsigned char *dst __asm__ ("r13") = pdst; in memmove() 61 if (src < dst && dst < src + n) in memmove() 66 dst += n; in memmove() 69 *--dst = *--src; in memmove() 81 if (((unsigned long) dst & 3) != 0 in memmove() 86 if ((unsigned long) dst & 1) in memmove() 89 *dst = *src; in memmove() 91 dst++; in memmove() 94 if ((unsigned long) dst & 2) in memmove() 97 *(short *) dst = *(short *) src; in memmove() [all …]
|
/picolibc-3.7.0-3.6.0/newlib/libc/machine/mips/ |
D | strncpy.c | 50 char *dst, *end; in strncpy() local 54 dst = dst0; in strncpy() 56 end = dst + count; in strncpy() 57 while (dst != end) in strncpy() 59 *dst++ = ch = *src++; in strncpy() 62 while (dst != end) in strncpy() 63 *dst++ = '\0'; in strncpy() 72 unsigned char *dst; in strncpy() 82 dst = (unsigned char *)dst0; in strncpy() 92 *dst++ = ch = *src++; in strncpy() [all …]
|
/picolibc-3.7.0-3.6.0/newlib/libc/machine/arm/ |
D | memcpy-armv7a.S | 88 #define dst ip macro 110 vstr \vreg, [dst, #\base] 112 vstr d0, [dst, #\base + 8] 114 vstr d1, [dst, #\base + 16] 116 vstr d2, [dst, #\base + 24] 118 vstr \vreg, [dst, #\base + 32] 120 vstr d0, [dst, #\base + 40] 122 vstr d1, [dst, #\base + 48] 124 vstr d2, [dst, #\base + 56] 129 vstr \vreg, [dst, #\base] [all …]
|
/picolibc-3.7.0-3.6.0/newlib/libc/include/ssp/ |
D | string.h | 51 #define __ssp_bos_check3(fun, dst, src, len) \ argument 52 ((__ssp_bos0(dst) != (size_t)-1) ? \ 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_bos0(dst) != (size_t)-1) ? \ 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 …]
|
D | strings.h | 39 #define bcopy(src, dst, len) \ argument 40 ((__ssp_bos0(dst) != (size_t)-1) ? \ 41 __builtin___memmove_chk(dst, src, len, __ssp_bos0(dst)) : \ 42 __memmove_ichk(dst, src, len)) 43 #define bzero(dst, len) \ argument 44 ((__ssp_bos0(dst) != (size_t)-1) ? \ 45 __builtin___memset_chk(dst, 0, len, __ssp_bos0(dst)) : \ 46 __memset_ichk(dst, 0, len))
|
/picolibc-3.7.0-3.6.0/newlib/libc/machine/riscv/ |
D | strcpy.c | 17 char *strcpy(char *dst, const char *src) in strcpy() argument 19 char *dst0 = dst; in strcpy() 22 int misaligned = ((uintptr_t)dst | (uintptr_t)src) & (sizeof (long) - 1); in strcpy() 25 long *ldst = (long *)dst; in strcpy() 31 dst = (char *)ldst; in strcpy() 37 if (!(*dst++ = c0)) return dst0; in strcpy() 38 if (!(*dst++ = c1)) return dst0; in strcpy() 40 if (!(*dst++ = c2)) return dst0; in strcpy() 43 if (!(*dst++ = c3)) return dst0; in strcpy() 45 if (!(*dst++ = c4)) return dst0; in strcpy() [all …]
|
/picolibc-3.7.0-3.6.0/newlib/libc/string/ |
D | memmove.c | 77 char *dst = dst_void; in memmove() local 80 if (src < dst && dst < src + length) in memmove() 84 dst += length; in memmove() 87 *--dst = *--src; in memmove() 94 *dst++ = *src++; in memmove() 100 char *dst = dst_void; in memmove() 105 if (src < dst && dst < src + length) in memmove() 109 dst += length; in memmove() 112 *--dst = *--src; in memmove() 120 if (!TOO_SMALL(length) && !UNALIGNED (src, dst)) in memmove() [all …]
|
D | mempcpy.c | 55 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()
|
D | strlcat.c | 30 strlcat (char *dst, in strlcat() argument 34 const char *odst = dst; in strlcat() 40 while (n-- != 0 && *dst != '\0') in strlcat() 41 dst++; in strlcat() 42 dlen = dst - odst; in strlcat() 49 *dst++ = *src; in strlcat() 54 *dst = '\0'; in strlcat()
|
D | wcslcat.c | 59 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()
|
D | stpncpy.c | 68 stpncpy (char *__restrict dst, in stpncpy() argument 80 if (!UNALIGNED (src, dst) && !TOO_SMALL (count)) in stpncpy() 82 aligned_dst = (long*)dst; in stpncpy() 93 dst = (char*)aligned_dst; in stpncpy() 101 if ((*dst++ = *src++) == '\0') in stpncpy() 103 ret = dst - 1; in stpncpy() 109 *dst++ = '\0'; in stpncpy() 111 return ret ? ret : dst; in stpncpy()
|
D | memccpy.c | 70 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()
|
D | memcpy.c | 73 char *dst = (char *) dst0; in memcpy() local 80 *dst++ = *src++; in memcpy() 85 char *dst = dst0; in memcpy() 92 if (!TOO_SMALL(len0) && !UNALIGNED (src, dst)) in memcpy() 94 aligned_dst = (long*)dst; in memcpy() 115 dst = (char*)aligned_dst; in memcpy() 120 *dst++ = *src++; in memcpy()
|
D | wcpncpy.c | 37 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()
|
D | stpcpy.c | 58 stpcpy (char *__restrict dst, in stpcpy() argument 67 if (!UNALIGNED (src, dst)) in stpcpy() 69 aligned_dst = (long*)dst; in stpcpy() 79 dst = (char*)aligned_dst; in stpcpy() 84 while ((*dst++ = *src++)) in stpcpy() 86 return --dst; in stpcpy()
|
D | strncpy.c | 103 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()
|
D | strcpy.c | 86 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-3.7.0-3.6.0/newlib/libc/machine/aarch64/ |
D | memset.S | 23 #define dst x3 macro 78 bic dst, dstin, 15 90 str q0, [dst, 16] 91 stp q0, q0, [dst, 32] 92 bic dst, dst, 63 93 sub count, dstend, dst /* Count is now 64 too large. */ 98 add dst, dst, 64 99 dc zva, dst 107 sub count, dstend, dst /* Count is 16 too large. */ 108 sub dst, dst, 16 /* Dst is biased by -32. */ [all …]
|
D | strcpy.S | 46 #define dst x3 macro 150 sub dst, src, tmp 153 str dataq, [dst], 32 159 str dataq, [dst, -16] 165 add dst, dst, 16 169 sub dst, dst, 31 175 add dst, dst, len 176 ldr dataq, [dst, tmp] 177 str dataq, [dst] 178 IFSTPCPY (add result, dst, 15)
|
/picolibc-3.7.0-3.6.0/newlib/libc/stdlib/ |
D | wcsnrtombs.c | 76 _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() 142 wcsnrtombs (char *__restrict dst, in wcsnrtombs() argument 148 return _wcsnrtombs_l (dst, src, nwc, len, ps, in wcsnrtombs()
|
/picolibc-3.7.0-3.6.0/newlib/libc/machine/visium/ |
D | memmove.c | 33 memmove (void *dst, const void *src, size_t len) in memmove() argument 35 char *d = dst; in memmove() 48 return dst; in memmove() 51 return memcpy (dst, src, len); in memmove()
|
/picolibc-3.7.0-3.6.0/newlib/libc/ssp/ |
D | stpcpy_chk.c | 46 __stpcpy_chk(char * __restrict dst, const char * __restrict src, size_t slen) in __stpcpy_chk() argument 53 if (__ssp_overlap(src, dst, len)) in __stpcpy_chk() 56 (void)memcpy(dst, src, len + 1); in __stpcpy_chk() 57 return dst + len; in __stpcpy_chk()
|
/picolibc-3.7.0-3.6.0/newlib/libc/machine/microblaze/ |
D | strcpy.c | 98 char *dst = dst0; in strcpy() 104 if (!UNALIGNED (src, dst)) in strcpy() 106 aligned_dst = (long*)dst; in strcpy() 116 dst = (char*)aligned_dst; in strcpy() 120 while ((*dst++ = *src++)) in strcpy()
|