Home
last modified time | relevance | path

Searched refs:dest (Results 1 – 25 of 63) sorted by relevance

123

/picolibc-latest/newlib/libc/machine/crx/sys/
Dasm.h24 #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/
Dasm.h24 #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/test/
Dtest-strncat_s.c104 char dest[50] = "Hello"; in main() local
114 strcpy(dest, "Hello"); in main()
115 res = strncat_s(dest, sizeof(dest), src, 8); in main()
118 TEST_RES(strcmp(dest, "Hello, world!") == 0, in main()
123 strcpy(dest, "Hello"); in main()
124 res = strncat_s(dest, 10, src, 8); in main()
132 res = strncat_s(NULL, sizeof(dest), src, 8); in main()
135 res = strncat_s(dest, sizeof(dest), NULL, 8); in main()
141 strcpy(dest, "Hello"); in main()
142 res = strncat_s(dest, sizeof(dest), "", 0); in main()
[all …]
Dtest-strncpy_s.c104 char dest[50]; in main() local
114 res = strncpy_s(dest, sizeof(dest), src, 13); in main()
117 TEST_RES(strcmp(dest, "Hello, world!") == 0, "Normal Copy Contents", in main()
122 res = strncpy_s(dest, 5, src, 13); in main()
129 res = strncpy_s(NULL, sizeof(dest), src, 13); in main()
132 res = strncpy_s(dest, sizeof(dest), NULL, 13); in main()
138 res = strncpy_s(dest, sizeof(dest), "", 0); in main()
141 TEST_RES(strcmp(dest, "") == 0, "Copy of empty string Contents", in main()
146 res = strncpy_s(dest, sizeof(dest), "Hello, world!", 0); in main()
149 TEST_RES(strcmp(dest, "") == 0, "Copy with zero Characters Contents", in main()
Dtest-memcpy_s.c105 char dest[50]; in main() local
114 res = memcpy_s(dest, sizeof(dest), src, strlen(src) + 1); in main()
117 TEST_RES(strcmp(dest, "Hello, world!") == 0, "Normal Copy Contents", 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()
142 strcpy(dest, ""); in main()
143 res = memcpy_s(dest, sizeof(dest), src, 0); in main()
146 TEST_RES(dest[0] == '\0', "Copy with zero length Contents", handler_res, in main()
Dtest-strcat_s.c104 char dest[50] = "Hello"; in main() local
114 res = strcat_s(dest, sizeof(dest), src); in main()
117 TEST_RES(strcmp(dest, "Hello, world!") == 0, in main()
122 res = strcat_s(dest, 10, src); in main()
130 res = strcat_s(NULL, sizeof(dest), src); in main()
133 res = strcat_s(dest, sizeof(dest), NULL); in main()
139 strcpy(dest, "Hello"); in main()
140 res = strcat_s(dest, sizeof(dest), ""); in main()
144 TEST_RES(strcmp(dest, "Hello") == 0, in main()
Dtest-strcpy_s.c104 char dest[50]; in main() local
114 res = strcpy_s(dest, sizeof(dest), src); in main()
117 TEST_RES(strcmp(dest, "Hello, world!") == 0, "Normal Copy Contents", in main()
122 res = strcpy_s(dest, 5, src); in main()
129 res = strcpy_s(NULL, sizeof(dest), src); in main()
132 res = strcpy_s(dest, sizeof(dest), NULL); in main()
138 res = strcpy_s(dest, sizeof(dest), ""); in main()
141 TEST_RES(strcmp(dest, "") == 0, "Copy of empty string Contents", in main()
Dstack-smash.c57 static void __attribute__((noinline)) smash_array(char *source, char *dest) in smash_array() argument
63 my_strcpy(dest, local); in smash_array()
85 char dest[64]; in main() local
90 smash_array(source, dest); in main()
92 printf("short source %s dest %s\n", source, dest); in main()
97 smash_array(source, dest); in main()
/picolibc-latest/newlib/testsuite/newlib.string/
Dstrcmp-1.c139 char src[BUFF_SIZE], dest[BUFF_SIZE]; in main() local
168 dest[i] = src[i]; in main()
170 memcpy (dest + da, src + sa, n); in main()
180 p = dest + da + m - 1; in main()
186 ret = strcmp (src + sa, dest + da); in main()
249 dest[1] = 'A'; in main()
251 dest[2] = 'B'; in main()
253 dest[3] = 'C'; in main()
255 dest[4] = '\0'; in main()
258 dest[0] = 0x41; in main()
[all …]
Dmemmove1.c54 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()
62 dest += 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()
81 if (retp != dest) in xmemmove()
[all …]
Dmemcpy-1.c82 char src[BUFF_SIZE], dest[BUFF_SIZE], backup_src[BUFF_SIZE]; in main() local
106 dest[j] = 0; in main()
108 void *ret = memcpy (dest + START_COPY + da, src + sa, n); in main()
111 if (ret != (dest + START_COPY + da)) in main()
116 n, sa, da, ret, dest + START_COPY + da); in main()
124 if (dest[j] != 0) in main()
133 if (dest[j] != (src + sa)[i]) in main()
139 else if (dest[j] != 0) in main()
/picolibc-latest/newlib/libc/machine/i960/
Dmemcpy_ca.S118 cmpo g0,g1 # if dest starts earlier than src ...
121 be.f Lexit_code # no move necessary if src and dest are same
122 concmpo g5,g0 # ... or if dest starts after end of src ...
127 notand g0,3,g4 # extract word addr of start of dest
132 cmpo g0,g4 # check alignment of dest
133 subo 4,g4,g4 # store is pre-incrementing; back up dest addr
134 be.t Lcase_1 # branch if dest word aligned
136 Lcase_3: # src is word aligned; dest is not
137 addo 8,g4,g4 # move dest word ptr to first word boundary
138 lda (g0),g1 # copy dest byte ptr
[all …]
Dstrcpy_ca.S124 notand g0,3,g4 # extract word addr of start of dest
126 and g0,3,LSW # extract byte offset of dest
140 lda 4(g4),g4 # post-increment dest word pointer
142 ld (g4),MSW # fetch next word of dest
146 subo 4,g4,g4 # move dest word ptr back to word with null
148 lda (g4),g2 # set dest byte ptr to 1st byte of word w/ null
156 lda 1(g2),g2 # move dest byte ptr to next byte
170 notand g0,3,g4 # extract word addr of start of dest
172 cmpo g0,g4 # check alignment of dest
175 bne.f Lcase_235 # branch if dest is NOT word aligned
[all …]
Dmemccpy_ca.S99 notand g0,3,g4 # extract word addr of start of dest
105 cmpobe.t g0,g4,Lcase_1_setup # branch if dest word aligned
107 Lcase_3: # src is word aligned; dest is not
109 addo 4,g4,g1 # move dest word ptr to first word boundary
113 Lcase_3_cloop_at_start: # character copying loop for start of dest str
125 stob MSW,(g0) # store the byte in dest
127 lda 1(g0),g0 # post-increment dest ptr
155 st g1,(g0) # store 4 bytes to dest
156 addo 4,g0,g0 # post-increment dest ptr
170 st g1,(g0) # store 4 bytes to dest
[all …]
Dstrncpy_ca.S118 notand g0,3,g4 # extract word addr of start of dest
123 cmpo g0,g4 # check alignment of dest
125 subo 4,g4,g4 # store is pre-incrementing; back up dest addr
126 bne.f Lcase_3 # branch if dest not word aligned
128 Lcase_1: # src and dest are word aligned
132 addo 4,g4,g4 # pre-increment dest addr
139 st g1,(g4) # store word in dest string
152 stob g14,(g4) # store the byte in dest
156 lda 1(g4),g4 # post-increment dest byte addr
162 bx (g13) # g0 = addr of dest; g14 = 0
[all …]
/picolibc-latest/newlib/libc/machine/spu/
Dstrncpy_ea.c46 strncpy_ea (__ea char *dest, __ea const char *src, size_ea_t n) in strncpy_ea() argument
51 memcpy_ea ((__ea void *) dest, (__ea void *) src, length); in strncpy_ea()
52 memset_ea ((__ea void *) (dest + length), 0, n - length); in strncpy_ea()
56 memcpy_ea ((__ea void *) dest, (__ea void *) src, n); in strncpy_ea()
58 return dest; in strncpy_ea()
Dmemmove.c47 void * memmove(void * __restrict__ dest, const void * __restrict__ src, size_t n) in memmove() argument
56 doffset1 = (unsigned int)(dest) & 15; in memmove()
57 doffset2 = ((unsigned int)(dest) + n) & 15; in memmove()
72 vDst = (vec_uchar16 *)(dest); in memmove()
80 if (((unsigned int)dest - (unsigned int)src) >= (unsigned int)n) { in memmove()
88 vDst = (vec_uchar16 *)(dest); in memmove()
95 doffset1 = (unsigned int)(dest) & 15; in memmove()
96 doffset2 = ((unsigned int)(dest) + n) & 15; in memmove()
156 vDst = (vec_uchar16 *)((unsigned int)dest + n-1); in memmove()
164 doffset1 = (unsigned int)(dest) & 15; in memmove()
[all …]
Dstrcat_ea.c46 strcat_ea (__ea char *dest, __ea const char *src) in strcat_ea() argument
53 length_dest = strlen_ea (dest); in strcat_ea()
54 new_dest = dest + length_dest; in strcat_ea()
56 return dest; in strcat_ea()
Dstrncat_ea.c46 strncat_ea (__ea char *dest, __ea const char *src, size_ea_t n) in strncat_ea() argument
54 length_dest = strlen_ea (dest); in strncat_ea()
55 new_dest = dest + length_dest; in strncat_ea()
61 return dest; in strncat_ea()
Dstrcat.c44 char *strcat(char * __restrict__ dest, const char * __restrict__ src) in strcat() argument
46 _strncpy(_straddr(dest), src, 0, 0, 0); in strcat()
47 return dest; in strcat()
Dstrncat.c43 char * strncat(char * __restrict__ dest, const char * __restrict__ src, in strncat() argument
46 _strncpy(_straddr(dest), src, n, 1, 1); in strncat()
47 return dest; in strncat()
Dstrcpy_ea.c46 strcpy_ea (__ea char *dest, __ea const char *src) in strcpy_ea() argument
51 memcpy_ea ((__ea void *) dest, (__ea void *) src, length + 1); in strcpy_ea()
52 return dest; in strcpy_ea()
/picolibc-latest/newlib/libc/machine/arm/
Daeabi_memset.c36 void __aeabi_memset4 (void *dest, size_t n, int c)
39 void __aeabi_memset8 (void *dest, size_t n, int c)
51 void __attribute__((used, weak)) __aeabi_memset (void *dest, size_t n, int c);
53 void __attribute__((used, weak)) __aeabi_memset (void *dest, size_t n, int c) in __aeabi_memset() argument
57 memset (dest, c, n); in __aeabi_memset()
Dbzero.c36 void __aeabi_memclr4 (void *dest, size_t n)
39 void __aeabi_memclr8 (void *dest, size_t n)
42 void __aeabi_memclr (void *dest, size_t n)
Dmemmove.c42 void *__aeabi_memmove4 (void *__restrict dest, const void *source, size_t n)
45 void *__aeabi_memmove8 (void *dest, const void *source, size_t n)
48 void *__aeabi_memmove (void *dest, const void *source, size_t n)

123