/picolibc-latest/newlib/libc/string/ |
D | strndup.c | 15 char *copy; in strndup() local 22 copy = malloc (len + 1); in strndup() 23 if (copy) in strndup() 25 memcpy (copy, str, len); in strndup() 26 copy[len] = '\0'; in strndup() 28 return copy; in strndup()
|
D | strdup.c | 13 char *copy = malloc (len); in strdup() local 14 if (copy) in strdup() 16 memcpy (copy, str, len); in strdup() 18 return copy; in strdup()
|
D | wcsdup.c | 43 wchar_t *copy = malloc (len * sizeof (wchar_t)); in wcsdup() local 44 if (copy) in wcsdup() 45 wmemcpy (copy, str, len); in wcsdup() 46 return copy; in wcsdup()
|
/picolibc-latest/test/ |
D | try-ilp32.c | 41 char copy[128] = {"hello"}; in main() local 59 strcpy(get_str(copy).base, a); in main() 60 len = strlen(copy); in main() 61 printf("copy %s len %d\n", copy, len); in main()
|
/picolibc-latest/newlib/libc/machine/hppa/ |
D | strncat.S | 39 copy d_addr,ret0 /* The return value is the value of d_addr. DELAY SLOT*/ 75 copy s_addr,tmp6 /* save original s_addr in case we find null in first word */ 76 copy s_addr, tmp7 /* save s_addr in case we find null before first store */ 134 copy r0, tmp5 /* zero out tmp5 so we don't try to mask again*/ 135 copy r0, tmp7 /* zero out tmp7 so we don't try to use original s_addr anymore */ 173 copy r0,tmp5 /* zero out tmp5 so null3 does correct alignment */ 174 copy r0,tmp7 /* zero out tmp7 so we don't use orignal s_addr since no longer valid */ 179 copy tmp1,tmp2 /* switch registers for shift process */ 197 copy tmp6,s_addr /* restore orig s_addr (aligned only) */ 215 copy tmp7, s_addr
|
D | strncpy.S | 42 …copy d_addr,ret0 /* The return value is defined to be the value of d_addr. DELAY SLO… 99 copy r0, tmp5 /* zero out tmp5 so we don't try to mask again*/ 131 copy r0, tmp5 /* zero out tmp5 so we don't try to mask again*/ 139 copy tmp1,tmp2 /* switch registers used in the shift process.*/ 150 copy r0, tmp5 196 copy r0, tmp5 213 copy r0, tmp5 227 copy r0, tmp5 244 copy r0, tmp5
|
D | strncmp.S | 41 copy 0,ret0 /* return 0 (DELAY SLOT) */ 44 copy 0,ret0 /* return 0 (delay slot) */ 111 copy 0,28 /* return 0 */ 144 copy tmp7,s2word /* */ 180 copy tmp7,s1word /* */ 189 zero: copy r0,ret0
|
D | memcmp.S | 45 copy 0,ret0 /*return 0 (DELAY SLOT) */ 48 copy 0,ret0 /*return 0 (delay slot) */ 138 copy tmp7,s2word /**/ 174 copy tmp7,s1word /**/ 183 zero: copy r0,ret0
|
D | strcmp.S | 99 copy r0,ret0 222 copy tmp7,s1word /* move tmp7 to s1word */ 225 copy save,s1word /* delay slot */ 272 copy tmp7,s2word /* move tmp7 to s2word */ 275 copy save,s2word /* delay slot */
|
D | memchr.S | 36 copy r0,ret0 /* null if c not found in n chars */
|
D | memcpy.S | 109 copy tmp5,tmp1 126 bp_0: copy tmp1,tmp2 /* switch registers used in the shift process. */
|
/picolibc-latest/newlib/libc/machine/rx/ |
D | strncat.S | 14 ;; r3 => Max number of bytes to copy 36 mov r1, r4 ; Save a copy of the dest pointer. 37 mov r2, r5 ; Save a copy of the source pointer. 38 mov r3, r14 ; Save a copy of the byte count. 47 mov r1, r5 ; Save a copy of the dest pointer. 50 …add #0, r14, r3 ; Restore the number of bytes to copy (again), but this time set the Z flag as wel…
|
D | memmove.S | 24 blt 3f ; If SRC < DEST copy backwards 26 mov r1, r14 ; Save a copy of DEST 45 mov r1, r4 ; Save a copy of DEST 47 blt 2f ; If SRC (r2) is less than DEST (r1) then copy backwards
|
D | strcat.S | 15 mov r1, r4 ; Save a copy of the dest pointer. 30 mov r1, r4 ; Save a copy of the dest pointer. 31 mov r2, r5 ; Save a copy of the source pointer.
|
D | memcpy.S | 22 mov r1, r14 ; Save a copy of DEST 31 mov r1, r4 ; Save a copy of DEST
|
D | strncpy.S | 32 mov r1, r4 ; Save a copy of the dest pointer. 33 mov r3, r5 ; Save a copy of the byte count
|
/picolibc-latest/newlib/libc/machine/i960/ |
D | strdup.S | 59 mov g0,r3 # Keep a copy of the original string addr 64 mov r3,g1 # Original string addr is now src for copy
|
D | strncpy_ca.S | 131 lda (LSW),g1 # keep a copy of the src word 133 bl.f Lcase_1_cloop.a # branch if fewer than four bytes to copy 174 lda (g5),LSW # keep a copy of the current mask 180 andnot g5,g1,g1 # last bytes to copy, and null pad rest of word 182 subo 1,LSW,g5 # mask to get last bytes to copy, and null pad 183 and g5,g1,g1 # last bytes to copy, and null pad rest of word 190 bl.f Lcase_1_cloop.b # branch if fewer than four bytes to copy 197 lda (g0),g1 # copy dest byte ptr 198 mov LSW,MSW # make copy of first word of src
|
D | strrchr.S | 106 mov g4,g5 # copy word 112 bno Lsearch_for_word_with_char_or_null # branch if no copy of char
|
/picolibc-latest/newlib/libc/machine/h8300/ |
D | memset.S | 30 ; Fill er1 with the byte to copy. 35 ; the main loop. r2 >= 0 if there is a longword to copy.
|
D | memcpy.S | 33 ; See whether the copy is long enough to use the movmd.l code.
|
/picolibc-latest/newlib/ |
D | refcontainers.xslt | 9 <xsl:copy> 12 </xsl:copy>
|
/picolibc-latest/newlib/libc/machine/arc64/ |
D | memmove.S | 59 ; The only thing that changes between memcpy and memmove is copy direction 61 ; More detailed information is in the forwards copy and at the end of 104 mov r3, r0 ; work on a copy of "r0" 159 ; The only thing that changes between memcpy and memmove is copy direction 161 ; More detailed information is in the forwards copy and at the end of 259 ; The remainder bits indicating how many more bytes to copy
|
D | memcpy.S | 59 ;; - copy 16, 32, or 48 bytes of data using 128bit ops 60 ;; - copy the remaining 15 bytes of data using a single stdl/lddl pair 67 ;; copy: 3 -> 48bytes, 2 -> 32bytes, 1 -> 16bytes. 141 ; The remainder bits indicating how many more bytes to copy
|
/picolibc-latest/ |
D | COPYING.GPL2 | 6 Everyone is permitted to copy and distribute verbatim copies 40 (2) offer you this license which gives you legal permission to copy, 79 1. You may copy and distribute verbatim copies of the Program's 81 conspicuously and appropriately publish on each copy an appropriate 84 and give any other recipients of the Program a copy of this License 87 You may charge a fee for the physical act of transferring a copy, and 90 2. You may modify your copy or copies of the Program or any portion 91 of it, thus forming a work based on the Program, and copy and 109 these conditions, and telling the user how to view a copy of this 134 3. You may copy and distribute the Program (or a work based on it, [all …]
|