/picolibc-3.7.0-3.6.0/newlib/libc/machine/cris/ |
D | memcpy.c | 56 register unsigned const char *src __asm__ ("r11") = psrc; in memcpy() 70 *dst = *src; in memcpy() 71 src++; in memcpy() 78 *(short *) dst = *(short *) src; in memcpy() 79 src += 2; in memcpy() 130 : "=r" (dst), "=r" (src), "=r" (n) in memcpy() 133 : "0" (dst), "1" (src), "2" (n)); in memcpy() 138 *(long *) dst = *(long *) src; dst += 4; src += 4; in memcpy() 139 *(long *) dst = *(long *) src; dst += 4; src += 4; in memcpy() 140 *(long *) dst = *(long *) src; dst += 4; src += 4; in memcpy() [all …]
|
D | memmove.c | 57 register unsigned const char *src __asm__ ("r11") = psrc; in memmove() 61 if (src < dst && dst < src + n) in memmove() 65 src += n; in memmove() 69 *--dst = *--src; in memmove() 89 *dst = *src; in memmove() 90 src++; in memmove() 97 *(short *) dst = *(short *) src; in memmove() 98 src += 2; in memmove() 149 : "=r" (dst), "=r" (src), "=r" (n) in memmove() 152 : "0" (dst), "1" (src), "2" (n)); in memmove() [all …]
|
/picolibc-3.7.0-3.6.0/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-3.7.0-3.6.0/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-3.7.0-3.6.0/newlib/libc/machine/arm/ |
D | memcpy-armv7a.S | 83 #define src r1 macro 111 vldr \vreg, [src, #\base] 113 vldr d0, [src, #\base + 8] 115 vldr d1, [src, #\base + 16] 117 vldr d2, [src, #\base + 24] 119 vldr \vreg, [src, #\base + prefetch_lines * 64 - 32] 121 vldr d0, [src, #\base + 40] 123 vldr d1, [src, #\base + 48] 125 vldr d2, [src, #\base + 56] 130 vldr \vreg, [src, #\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 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-3.7.0-3.6.0/newlib/libc/string/ |
D | memmove.c | 78 const char *src = src_void; in memmove() local 80 if (src < dst && dst < src + length) in memmove() 83 src += length; in memmove() 87 *--dst = *--src; in memmove() 94 *dst++ = *src++; in memmove() 101 const char *src = src_void; in memmove() 105 if (src < dst && dst < src + length) in memmove() 108 src += length; in memmove() 112 *--dst = *--src; in memmove() 120 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 | 86 const unsigned char *src = (const unsigned char *) src_void; in memchr() local 95 while (UNALIGNED (src)) in memchr() 99 if (*src == d) in memchr() 100 return (void *) src; in memchr() 101 src++; in memchr() 114 asrc = (unsigned long *) src; in memchr() 131 src = (unsigned char *) asrc; in memchr() 138 if (*src == d) in memchr() 139 return (void *) src; in memchr() 140 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 | 31 const char *src, in strlcat() argument 35 const char *osrc = src; in strlcat() 46 return(dlen + strlen(src)); in strlcat() 47 while (*src != '\0') { in strlcat() 49 *dst++ = *src; in strlcat() 52 src++; in strlcat() 56 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 | 29 const char *src, in strlcpy() argument 32 const char *osrc = src; in strlcpy() 38 if ((*dst++ = *src++) == '\0') in strlcpy() 47 while (*src++) in strlcpy() 51 return(src - osrc - 1); /* count does not include NUL */ in strlcpy()
|
D | memcpy.c | 74 char *src = (char *) src0; in memcpy() local 80 *dst++ = *src++; in memcpy() 86 const char *src = src0; in memcpy() 92 if (!TOO_SMALL(len0) && !UNALIGNED (src, dst)) in memcpy() 95 aligned_src = (long*)src; in memcpy() 116 src = (char*)aligned_src; in memcpy() 120 *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()
|
D | memccpy.c | 71 char *src = (char *) src0; in memccpy() local 76 if ((*dst++ = *src++) == endchar) in memccpy() 87 const unsigned char *src = src0; in memccpy() 94 if (!TOO_SMALL(len0) && !UNALIGNED (src, dst)) in memccpy() 100 aligned_src = (long*)src; in memccpy() 125 src = (unsigned char*)aligned_src; in memccpy() 130 if ((*dst++ = *src++) == endchar) in memccpy()
|
/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 22 int misaligned = ((uintptr_t)dst | (uintptr_t)src) & (sizeof (long) - 1); in strcpy() 26 const long *lsrc = (const long *)src; in strcpy() 32 src = (const char *)lsrc; in strcpy() 34 char c0 = src[0]; in strcpy() 35 char c1 = src[1]; in strcpy() 36 char c2 = src[2]; in strcpy() 39 char c3 = src[3]; in strcpy() 42 char c4 = src[4]; in strcpy() 44 char c5 = src[5]; in strcpy() [all …]
|
/picolibc-3.7.0-3.6.0/newlib/testsuite/newlib.string/ |
D | strcmp-1.c | 137 char src[BUFF_SIZE], dest[BUFF_SIZE]; in main() local 164 src[i] = j; in main() 166 dest[i] = src[i]; in main() 168 memcpy (dest + da, src + sa, n); in main() 171 p = src + sa + n - 1; in main() 184 ret = strcmp (src + sa, dest + da); in main() 246 src[1] = 'A'; in main() 248 src[2] = 'B'; in main() 250 src[3] = 'C'; in main() 252 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-3.7.0-3.6.0/newlib/libc/machine/aarch64/ |
D | memcpy.S | 20 #define src x1 macro 42 #define H_l src 64 add srcend, src, count 74 ldp A_l, A_h, [src] 83 ldr A_l, [src] 93 ldr A_lw, [src] 103 ldrb A_lw, [src] 105 ldrb B_lw, [src, tmp1] 115 ldp A_l, A_h, [src] 116 ldp B_l, B_h, [src, 16] [all …]
|
D | strnlen.S | 45 #define src x2 macro 66 bic src, srcin, 15 68 ld1 {vdata.16b}, [src] 88 sub tmp, src, srcin 95 sub src, src, 16 98 ldr qdata, [src, 32]! 104 ldr qdata, [src, 16] 112 add src, src, 16 115 sub result, src, srcin
|
/picolibc-3.7.0-3.6.0/newlib/libc/machine/mips/ |
D | strncpy.c | 51 const char *src; in strncpy() local 55 src = src0; in strncpy() 59 *dst++ = ch = *src++; in strncpy() 74 const unsigned char *src; in strncpy() 83 src = (unsigned const char *)src0; in strncpy() 90 while (((uintptr_t) src & (UNROLL_FACTOR - 1)) != 0 && count > 0) in strncpy() 92 *dst++ = ch = *src++; in strncpy() 111 ch0 = src[0]; in strncpy() 112 ch1 = src[1]; in strncpy() 114 ch2 = src[2]; in strncpy() [all …]
|
/picolibc-3.7.0-3.6.0/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-3.7.0-3.6.0/newlib/libc/stdio/ |
D | fgetws.c | 109 const char *src; in fgetws() local 128 src = (char *) fp->_p; in fgetws() 130 nconv = mbsnrtowcs (wsp, &src, in fgetws() 140 if (src == NULL) in fgetws() 149 src = memchr (fp->_p, '\0', fp->_r); in fgetws() 150 src++; in fgetws() 152 fp->_r -= (unsigned char *) src - fp->_p; in fgetws() 153 fp->_p = (unsigned char *) src; in fgetws()
|