/picolibc-latest/newlib/libc/machine/cris/ |
D | memcpy.c | 58 register unsigned const char *src __asm__ ("r11") = psrc; in memcpy() 72 *dst = *src; in memcpy() 73 src++; in memcpy() 80 *(short *) dst = *(short *) src; in memcpy() 81 src += 2; in memcpy() 132 : "=r" (dst), "=r" (src), "=r" (n) in memcpy() 135 : "0" (dst), "1" (src), "2" (n)); in memcpy() 140 *(long *) dst = *(long *) src; dst += 4; src += 4; in memcpy() 141 *(long *) dst = *(long *) src; dst += 4; src += 4; in memcpy() 142 *(long *) dst = *(long *) src; dst += 4; src += 4; in memcpy() [all …]
|
D | memmove.c | 59 register unsigned const char *src __asm__ ("r11") = psrc; in memmove() 63 if (src < dst && dst < src + n) in memmove() 67 src += n; in memmove() 71 *--dst = *--src; in memmove() 91 *dst = *src; in memmove() 92 src++; in memmove() 99 *(short *) dst = *(short *) src; in memmove() 100 src += 2; in memmove() 151 : "=r" (dst), "=r" (src), "=r" (n) in memmove() 154 : "0" (dst), "1" (src), "2" (n)); in memmove() [all …]
|
/picolibc-latest/newlib/libc/machine/crx/sys/ |
D | asm.h | 24 #define _absb_(src, dest) __asm__("absb %1, %0" : "=r" (dest) : \ argument 25 "r" ((char)src) , "0" (dest)) 26 #define _absw_(src, dest) __asm__("absw %1,%0" : "=r" (dest) : \ argument 27 "r" ((short)src) , "0" (dest)) 28 #define _absd_(src, dest) __asm__("absd %1, %0" : "=r" (dest) : \ argument 29 "r" ((int)src) , "0" (dest)) 32 #define _addb_(src, dest) __asm__("addb %1, %0" : "=r" (dest) : \ argument 33 "ri" ((unsigned char)src), "0" (dest) : "cc") 34 #define _addub_(src, dest) __asm__("addub %1, %0" : "=r" (dest) : \ argument 35 "ri" ((unsigned char)src), "0" (dest) : "cc") [all …]
|
/picolibc-latest/newlib/libc/machine/cr16/sys/ |
D | asm.h | 24 #define _addb_(src, dest) __asm__("addb %1, %0" : "=r" (dest) : \ argument 25 "ri" ((unsigned char)src), "0" (dest) : "cc") 26 #define _addub_(src, dest) __asm__("addub %1, %0" : "=r" (dest) : \ argument 27 "ri" ((unsigned char)src), "0" (dest) : "cc") 28 #define _addw_(src, dest) __asm__("addw %1, %0" : "=r" (dest) : \ argument 29 "ri" ((unsigned short)src), "0" (dest) : "cc") 30 #define _adduw_(src, dest) __asm__("adduw %1, %0" : "=r" (dest) : \ argument 31 "ri" ((unsigned short)src), "0" (dest) : "cc") 32 #define _addd_(src, dest) __asm__("addd %1, %0" : "=r" (dest) : \ argument 33 "ri" ((unsigned long)src), "0" (dest) : "cc") [all …]
|
/picolibc-latest/newlib/libc/machine/arm/ |
D | memcpy-armv7a.S | 87 #define src r1 macro 115 vldr \vreg, [src, #\base] 117 vldr d0, [src, #\base + 8] 119 vldr d1, [src, #\base + 16] 121 vldr d2, [src, #\base + 24] 123 vldr \vreg, [src, #\base + prefetch_lines * 64 - 32] 125 vldr d0, [src, #\base + 40] 127 vldr d1, [src, #\base + 48] 129 vldr d2, [src, #\base + 56] 134 vldr \vreg, [src, #\base] [all …]
|
/picolibc-latest/newlib/libc/include/ssp/ |
D | string.h | 51 #define __ssp_bos_check3(fun, dst, src, len) \ argument 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 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)); \ 71 __ ## fun ## _ichk(type1 dst, type2 src, size_t len) { \ 72 return __builtin___ ## fun ## _chk(dst, src, len, __ssp_bos0(dst)); \ [all …]
|
/picolibc-latest/newlib/libc/string/ |
D | memmove.c | 77 const char *src = src_void; in memmove() local 79 if (src < dst && dst < src + length) in memmove() 82 src += length; in memmove() 86 *--dst = *--src; in memmove() 93 *dst++ = *src++; in memmove() 100 const char *src = src_void; in memmove() 104 if (src < dst && dst < src + length) in memmove() 107 src += length; in memmove() 111 *--dst = *--src; in memmove() 119 if (!TOO_SMALL(length) && !UNALIGNED (src, dst)) in memmove() [all …]
|
D | rawmemchr.c | 69 const unsigned char *src = (const unsigned char *) src_void; in rawmemchr() local 78 while (UNALIGNED (src)) in rawmemchr() 80 if (*src == d) in rawmemchr() 81 return (void *) src; in rawmemchr() 82 src++; in rawmemchr() 92 asrc = (unsigned long *) src; in rawmemchr() 107 src = (unsigned char *) asrc; in rawmemchr() 113 if (*src == d) in rawmemchr() 114 return (void *) src; in rawmemchr() 115 src++; in rawmemchr()
|
D | memchr.c | 85 const unsigned char *src = (const unsigned char *) src_void; in memchr() local 94 while (UNALIGNED (src)) in memchr() 98 if (*src == d) in memchr() 99 return (void *) src; in memchr() 100 src++; in memchr() 113 asrc = (unsigned long *) src; in memchr() 130 src = (unsigned char *) asrc; in memchr() 137 if (*src == d) in memchr() 138 return (void *) src; in memchr() 139 src++; in memchr()
|
D | memrchr.c | 71 const unsigned char *src = (const unsigned char *) src_void + length - 1; in memrchr() local 80 while (UNALIGNED (src)) in memrchr() 84 if (*src == d) in memrchr() 85 return (void *) src; in memrchr() 86 src--; in memrchr() 99 asrc = (unsigned long *) (src - LBLOCKSIZE + 1); in memrchr() 116 src = (unsigned char *) asrc + LBLOCKSIZE - 1; in memrchr() 123 if (*src == d) in memrchr() 124 return (void *) src; in memrchr() 125 src--; in memrchr()
|
D | strlcat.c | 32 const char *src, in strlcat() argument 36 const char *osrc = src; in strlcat() 47 return(dlen + strlen(src)); in strlcat() 48 while (*src != '\0') { in strlcat() 50 *dst++ = *src; in strlcat() 53 src++; in strlcat() 57 return(dlen + (src - osrc)); /* count does not include NUL */ in strlcat()
|
D | wcslcat.c | 60 const wchar_t *src, in wcslcat() argument 64 const wchar_t *osrc = src; in wcslcat() 75 return(dlen + wcslen(src)); in wcslcat() 76 while (*src != L'\0') { in wcslcat() 78 *dst++ = *src; in wcslcat() 81 src++; in wcslcat() 85 return(dlen + (src - osrc)); /* count does not include NUL */ in wcslcat()
|
D | mempcpy.c | 56 char *src = (char *) src0; in mempcpy() local 60 *dst++ = *src++; in mempcpy() 66 const char *src = src0; in mempcpy() 72 if (!TOO_SMALL(len0) && !UNALIGNED (src, dst)) in mempcpy() 75 aligned_src = (long*)src; in mempcpy() 96 src = (char*)aligned_src; in mempcpy() 100 *dst++ = *src++; in mempcpy()
|
D | strlcpy.c | 30 const char *src, in strlcpy() argument 33 const char *osrc = src; in strlcpy() 39 if ((*dst++ = *src++) == '\0') in strlcpy() 48 while (*src++) in strlcpy() 52 return(src - osrc - 1); /* count does not include NUL */ in strlcpy()
|
D | memcpy.c | 73 char *src = (char *) src0; in memcpy() local 79 *dst++ = *src++; in memcpy() 85 const char *src = src0; in memcpy() 91 if (!TOO_SMALL(len0) && !UNALIGNED (src, dst)) in memcpy() 94 aligned_src = (long*)src; in memcpy() 115 src = (char*)aligned_src; in memcpy() 119 *dst++ = *src++; in memcpy()
|
D | wcslcpy.c | 54 const wchar_t *src, in wcslcpy() argument 57 const wchar_t *osrc = src; in wcslcpy() 63 if ((*dst++ = *src++) == L'\0') in wcslcpy() 72 while (*src++) in wcslcpy() 76 return(src - osrc - 1); /* count does not include NUL */ in wcslcpy()
|
/picolibc-latest/newlib/libc/machine/riscv/ |
D | strcpy.c | 20 char *strcpy(char *dst, const char *src) in strcpy() argument 25 int misaligned = ((uintptr_t)dst | (uintptr_t)src) & (sizeof (long) - 1); in strcpy() 29 const long *lsrc = (const long *)src; in strcpy() 35 src = (const char *)lsrc; in strcpy() 37 char c0 = src[0]; in strcpy() 38 char c1 = src[1]; in strcpy() 39 char c2 = src[2]; in strcpy() 42 char c3 = src[3]; in strcpy() 45 char c4 = src[4]; in strcpy() 47 char c5 = src[5]; in strcpy() [all …]
|
/picolibc-latest/newlib/testsuite/newlib.string/ |
D | strcmp-1.c | 139 char src[BUFF_SIZE], dest[BUFF_SIZE]; in main() local 166 src[i] = j; in main() 168 dest[i] = src[i]; in main() 170 memcpy (dest + da, src + sa, n); in main() 173 p = src + sa + n - 1; in main() 186 ret = strcmp (src + sa, dest + da); in main() 248 src[1] = 'A'; in main() 250 src[2] = 'B'; in main() 252 src[3] = 'C'; in main() 254 src[4] = '\0'; in main() [all …]
|
D | memmove1.c | 54 mymemmove (unsigned char *dest, unsigned char *src, size_t n) in mymemmove() argument 56 if ((src <= dest && src + n <= dest) in mymemmove() 57 || src >= dest) in mymemmove() 59 *dest++ = *src++; in mymemmove() 63 src += n; in mymemmove() 65 *--dest = *--src; in mymemmove() 72 xmemmove (unsigned char *dest, unsigned char *src, size_t n) 76 xmemmove (unsigned char *dest, unsigned char *src, size_t n) in xmemmove() argument 79 retp = memmove (dest, src, n); in xmemmove()
|
/picolibc-latest/newlib/libc/machine/aarch64/ |
D | memcpy.S | 22 #define src x1 macro 44 #define H_l src 66 add srcend, src, count 76 ldp A_l, A_h, [src] 85 ldr A_l, [src] 95 ldr A_lw, [src] 105 ldrb A_lw, [src] 107 ldrb B_lw, [src, tmp1] 117 ldp A_l, A_h, [src] 118 ldp B_l, B_h, [src, 16] [all …]
|
D | strnlen.S | 47 #define src x2 macro 68 bic src, srcin, 15 70 ld1 {vdata.16b}, [src] 90 sub tmp, src, srcin 97 sub src, src, 16 100 ldr qdata, [src, 32]! 106 ldr qdata, [src, 16] 114 add src, src, 16 117 sub result, src, srcin
|
/picolibc-latest/newlib/libc/machine/mips/ |
D | strncpy.c | 53 const char *src; in strncpy() local 57 src = src0; in strncpy() 61 *dst++ = ch = *src++; in strncpy() 76 const unsigned char *src; in strncpy() 85 src = (unsigned const char *)src0; in strncpy() 92 while (((uintptr_t) src & (UNROLL_FACTOR - 1)) != 0 && count > 0) in strncpy() 94 *dst++ = ch = *src++; in strncpy() 113 ch0 = src[0]; in strncpy() 114 ch1 = src[1]; in strncpy() 116 ch2 = src[2]; in strncpy() [all …]
|
/picolibc-latest/newlib/libc/stdlib/ |
D | mbsnrtowcs.c | 67 const char **src, in mbsnrtowcs() argument 91 tmp_src = *src; in mbsnrtowcs() 92 src = &tmp_src; in mbsnrtowcs() 98 bytes = mbrtowc (ptr, *src, nms, ps); in mbsnrtowcs() 101 *src += bytes; in mbsnrtowcs() 109 *src += nms; in mbsnrtowcs() 114 *src = NULL; in mbsnrtowcs()
|
/picolibc-latest/newlib/libc/stdio/ |
D | fgetws.c | 108 const char *src; in fgetws() local 127 src = (char *) fp->_p; in fgetws() 129 nconv = mbsnrtowcs (wsp, &src, in fgetws() 139 if (src == NULL) in fgetws() 148 src = memchr (fp->_p, '\0', fp->_r); in fgetws() 149 src++; in fgetws() 151 fp->_r -= (unsigned char *) src - fp->_p; in fgetws() 152 fp->_p = (unsigned char *) src; in fgetws()
|
/picolibc-latest/test/ |
D | test-memcpy_s.c | 104 char src[] = "Hello, world!"; in main() local 114 res = memcpy_s(dest, sizeof(dest), src, strlen(src) + 1); in main() 122 res = memcpy_s(dest, 5, src, strlen(src) + 1); in main() 130 res = memcpy_s(NULL, sizeof(dest), src, strlen(src) + 1); in main() 136 res = memcpy_s(dest, sizeof(dest), NULL, strlen(src) + 1); in main() 143 res = memcpy_s(dest, sizeof(dest), src, 0); in main()
|